@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getPayloadVisibility().hashCode(); if (hasChaincodeId()) { hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().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.ChaincodeHeaderExtension)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension) obj; boolean result = true; result = result && getPayloadVisibility() .equals(other.getPayloadVisibility()); result = result && (hasChaincodeId() == other.hasChaincodeId()); if (hasChaincodeId()) { result = result && getChaincodeId() .equals(other.getChaincodeId()); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getPayloadVisibility().hashCode(); if (hasChaincodeId()) { hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * The PayloadVisibility field controls to what extent the Proposal's payload * (recall that for the type CHAINCODE, it is ChaincodeProposalPayload * message) field will be visible in the final transaction and in the ledger. * Ideally, it would be configurable, supporting at least 3 main visibility * modes: * 1. all bytes of the payload are visible; * 2. only a hash of the payload is visible; * 3. nothing is visible. * Notice that the visibility function may be potentially part of the ESCC. * In that case it overrides PayloadVisibility field. Finally notice that * this field impacts the content of ProposalResponsePayload.proposalHash. * </pre> * * <code>optional bytes payload_visibility = 1;</code> */ public Builder clearPayloadVisibility() { payloadVisibility_ = getDefaultInstance().getPayloadVisibility(); onChanged(); return this; }
/** * <pre> * The PayloadVisibility field controls to what extent the Proposal's payload * (recall that for the type CHAINCODE, it is ChaincodeProposalPayload * message) field will be visible in the final transaction and in the ledger. * Ideally, it would be configurable, supporting at least 3 main visibility * modes: * 1. all bytes of the payload are visible; * 2. only a hash of the payload is visible; * 3. nothing is visible. * Notice that the visibility function may be potentially part of the ESCC. * In that case it overrides PayloadVisibility field. Finally notice that * this field impacts the content of ProposalResponsePayload.proposalHash. * </pre> * * <code>optional bytes payload_visibility = 1;</code> */ public Builder clearPayloadVisibility() { payloadVisibility_ = getDefaultInstance().getPayloadVisibility(); 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.FabricProposal.ChaincodeHeaderExtension)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension) obj; boolean result = true; result = result && getPayloadVisibility() .equals(other.getPayloadVisibility()); result = result && (hasChaincodeId() == other.hasChaincodeId()); if (hasChaincodeId()) { result = result && getChaincodeId() .equals(other.getChaincodeId()); } 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.ChaincodeHeaderExtension)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension) obj; boolean result = true; result = result && getPayloadVisibility() .equals(other.getPayloadVisibility()); result = result && (hasChaincodeId() == other.hasChaincodeId()); if (hasChaincodeId()) { result = result && getChaincodeId() .equals(other.getChaincodeId()); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getPayloadVisibility().hashCode(); if (hasChaincodeId()) { hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }
/** * <pre> * The PayloadVisibility field controls to what extent the Proposal's payload * (recall that for the type CHAINCODE, it is ChaincodeProposalPayload * message) field will be visible in the final transaction and in the ledger. * Ideally, it would be configurable, supporting at least 3 main visibility * modes: * 1. all bytes of the payload are visible; * 2. only a hash of the payload is visible; * 3. nothing is visible. * Notice that the visibility function may be potentially part of the ESCC. * In that case it overrides PayloadVisibility field. Finally notice that * this field impacts the content of ProposalResponsePayload.proposalHash. * </pre> * * <code>optional bytes payload_visibility = 1;</code> */ public Builder clearPayloadVisibility() { payloadVisibility_ = getDefaultInstance().getPayloadVisibility(); onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }