@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; }
@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 void setProposal(FabricProposal.SignedProposal signedProposal) throws ProposalException { try { this.proposal = FabricProposal.Proposal.parseFrom(signedProposal.getProposalBytes()); } catch (InvalidProtocolBufferException e) { throw new ProposalException(format("%s transaction: %s Proposal exception", peer, getTransactionID()), e); } }
@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; }
@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; }
@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 Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance()) return this; if (other.getProposalBytes() != com.google.protobuf.ByteString.EMPTY) { setProposalBytes(other.getProposalBytes()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; }
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 void setProposal(FabricProposal.SignedProposal signedProposal) throws ProposalException { try { this.proposal = FabricProposal.Proposal.parseFrom(signedProposal.getProposalBytes()); } catch (InvalidProtocolBufferException e) { throw new ProposalException(format("%s transaction: %s Proposal exception", peer, getTransactionID()), e); } }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance()) return this; if (other.getProposalBytes() != com.google.protobuf.ByteString.EMPTY) { setProposalBytes(other.getProposalBytes()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; }
/** * <pre> * The bytes of Proposal * </pre> * * <code>optional bytes proposal_bytes = 1;</code> */ public Builder clearProposalBytes() { proposalBytes_ = getDefaultInstance().getProposalBytes(); onChanged(); return this; }
/** * <pre> * The bytes of Proposal * </pre> * * <code>optional bytes proposal_bytes = 1;</code> */ public Builder clearProposalBytes() { proposalBytes_ = getDefaultInstance().getProposalBytes(); onChanged(); return this; }
/** * <pre> * The bytes of Proposal * </pre> * * <code>optional bytes proposal_bytes = 1;</code> */ public Builder clearProposalBytes() { proposalBytes_ = getDefaultInstance().getProposalBytes(); onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal.getDefaultInstance()) return this; if (other.getProposalBytes() != com.google.protobuf.ByteString.EMPTY) { setProposalBytes(other.getProposalBytes()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; }