@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROPOSAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + getProposalBytes().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ProcessProposal", requestType = org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.class, responseType = org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse> getProcessProposalMethod() { io.grpc.MethodDescriptor<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse> getProcessProposalMethod; if ((getProcessProposalMethod = EndorserGrpc.getProcessProposalMethod) == null) { synchronized (EndorserGrpc.class) { if ((getProcessProposalMethod = EndorserGrpc.getProcessProposalMethod) == null) { EndorserGrpc.getProcessProposalMethod = getProcessProposalMethod = io.grpc.MethodDescriptor.<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "protos.Endorser", "ProcessProposal")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.getDefaultInstance())) .setSchemaDescriptor(new EndorserMethodDescriptorSupplier("ProcessProposal")) .build(); } } } return getProcessProposalMethod; }
private static io.grpc.MethodDescriptor<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse> getProcessProposalMethodHelper() { io.grpc.MethodDescriptor<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse> getProcessProposalMethod; if ((getProcessProposalMethod = EndorserGrpc.getProcessProposalMethod) == null) { synchronized (EndorserGrpc.class) { if ((getProcessProposalMethod = EndorserGrpc.getProcessProposalMethod) == null) { EndorserGrpc.getProcessProposalMethod = getProcessProposalMethod = io.grpc.MethodDescriptor.<org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal, org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "protos.Endorser", "ProcessProposal")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.getDefaultInstance())) .setSchemaDescriptor(new EndorserMethodDescriptorSupplier("ProcessProposal")) .build(); } } } return getProcessProposalMethod; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal other = (org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal) obj; boolean result = true; result = result && getProposalBytes() .equals(other.getProposalBytes()); result = result && getSignature() .equals(other.getSignature()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal other = (org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal) obj; boolean result = true; result = result && getProposalBytes() .equals(other.getProposalBytes()); result = result && getSignature() .equals(other.getSignature()); return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
/** * <pre> * Signaure over proposalBytes; this signature is to be verified against * the creator identity contained in the header of the Proposal message * marshaled as proposalBytes * </pre> * * <code>optional bytes signature = 2;</code> */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Signaure over proposalBytes; this signature is to be verified against * the creator identity contained in the header of the Proposal message * marshaled as proposalBytes * </pre> * * <code>optional bytes signature = 2;</code> */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } public final Builder setUnknownFields(
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROPOSAL_BYTES_FIELD_NUMBER; hash = (53 * hash) + getProposalBytes().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal prototype) {
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public void setProposal(FabricProposal.SignedProposal signedProposal) throws ProposalException { try { this.proposal = FabricProposal.Proposal.parseFrom(signedProposal.getProposalBytes()); } catch (InvalidProtocolBufferException e) { throw new ProposalException("Proposal exception", e); } }
public org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal result = new org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal(this); result.proposalBytes_ = proposalBytes_; result.signature_ = signature_; onBuilt(); return result; }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal prototype) {