/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /**
onChanged(); return this;
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /**
onChanged(); return this;
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; }
/** * <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> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /**
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
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; }
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
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; }