public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
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 setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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(
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) { return mergeFrom((org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)other); } else { super.mergeFrom(other); return this; } }
public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload buildPartial() { org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload result = new org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload(this); result.proposalHash_ = proposalHash_; result.extension_ = extension_; onBuilt(); return result; }