@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROPOSAL_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().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.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); 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_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * Hash of the proposal that triggered this response. The hash is used to * link a response with its proposal, both for bookeeping purposes on an * asynchronous system and for security reasons (accountability, * non-repudiation). The hash usually covers the entire Proposal message * (byte-by-byte). However this implies that the hash can only be verified * if the entire proposal message is available when ProposalResponsePayload is * included in a transaction or stored in the ledger. For confidentiality * reasons, with chaincodes it might be undesirable to store the proposal * payload in the ledger. If the type is CHAINCODE, this is handled by * separating the proposal's header and * the payload: the header is always hashed in its entirety whereas the * payload can either be hashed fully, or only its hash may be hashed, or * nothing from the payload can be hashed. The PayloadVisibility field in the * Header's extension controls to which extent the proposal payload is * "visible" in the sense that was just explained. * </pre> * * <code>optional bytes proposal_hash = 1;</code> */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; }
/** * <pre> * Hash of the proposal that triggered this response. The hash is used to * link a response with its proposal, both for bookeeping purposes on an * asynchronous system and for security reasons (accountability, * non-repudiation). The hash usually covers the entire Proposal message * (byte-by-byte). However this implies that the hash can only be verified * if the entire proposal message is available when ProposalResponsePayload is * included in a transaction or stored in the ledger. For confidentiality * reasons, with chaincodes it might be undesirable to store the proposal * payload in the ledger. If the type is CHAINCODE, this is handled by * separating the proposal's header and * the payload: the header is always hashed in its entirety whereas the * payload can either be hashed fully, or only its hash may be hashed, or * nothing from the payload can be hashed. The PayloadVisibility field in the * Header's extension controls to which extent the proposal payload is * "visible" in the sense that was just explained. * </pre> * * <code>optional bytes proposal_hash = 1;</code> */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); 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.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); 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_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }
/** * <pre> * Hash of the proposal that triggered this response. The hash is used to * link a response with its proposal, both for bookeeping purposes on an * asynchronous system and for security reasons (accountability, * non-repudiation). The hash usually covers the entire Proposal message * (byte-by-byte). However this implies that the hash can only be verified * if the entire proposal message is available when ProposalResponsePayload is * included in a transaction or stored in the ledger. For confidentiality * reasons, with chaincodes it might be undesirable to store the proposal * payload in the ledger. If the type is CHAINCODE, this is handled by * separating the proposal's header and * the payload: the header is always hashed in its entirety whereas the * payload can either be hashed fully, or only its hash may be hashed, or * nothing from the payload can be hashed. The PayloadVisibility field in the * Header's extension controls to which extent the proposal payload is * "visible" in the sense that was just explained. * </pre> * * <code>optional bytes proposal_hash = 1;</code> */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }