/** * <pre> * The endorsement of the proposal, basically * the endorser's signature over the payload * </pre> * * <code>optional .protos.Endorsement endorsement = 6;</code> */ public Builder setEndorsement(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endorsement_ = value; onChanged(); } else { endorsementBuilder_.setMessage(value); } return this; } /**
/** * <pre> * Timestamp is the time that the message * was created as defined by the sender * </pre> * * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /**
/** * <pre> * A response message indicating whether the * endorsement of the action was successful * </pre> * * <code>optional .protos.Response response = 4;</code> */ public Builder setResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically * the endorser's signature over the payload * </pre> * * <code>optional .protos.Endorsement endorsement = 6;</code> */ public Builder mergeEndorsement(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementBuilder_ == null) { if (endorsement_ != null) { endorsement_ = org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.newBuilder(endorsement_).mergeFrom(value).buildPartial(); } else { endorsement_ = value; } onChanged(); } else { endorsementBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * A response message indicating whether the * endorsement of the action was successful * </pre> * * <code>optional .protos.Response response = 4;</code> */ public Builder mergeResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * Timestamp is the time that the message * was created as defined by the sender * </pre> * * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse.getDefaultInstance()) return this; if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.hasResponse()) { mergeResponse(other.getResponse()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.hasEndorsement()) { mergeEndorsement(other.getEndorsement()); } onChanged(); return this; }
/** * <pre> * The endorsement of the proposal, basically * the endorser's signature over the payload * </pre> * * <code>optional .protos.Endorsement endorsement = 6;</code> */ public Builder setEndorsement( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder builderForValue) { if (endorsementBuilder_ == null) { endorsement_ = builderForValue.build(); onChanged(); } else { endorsementBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically * the endorser's signature over the payload * </pre> * * <code>optional .protos.Endorsement endorsement = 6;</code> */ public Builder clearEndorsement() { if (endorsementBuilder_ == null) { endorsement_ = null; onChanged(); } else { endorsement_ = null; endorsementBuilder_ = null; } return this; } /**
/** * <pre> * A response message indicating whether the * endorsement of the action was successful * </pre> * * <code>optional .protos.Response response = 4;</code> */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /**
/** * <pre> * A response message indicating whether the * endorsement of the action was successful * </pre> * * <code>optional .protos.Response response = 4;</code> */ public Builder setResponse( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * Timestamp is the time that the message * was created as defined by the sender * </pre> * * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /**
/** * <pre> * Timestamp is the time that the message * was created as defined by the sender * </pre> * * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The payload of response. It is the bytes of ProposalResponsePayload * </pre> * * <code>optional bytes payload = 5;</code> */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /**
/** * <pre> * A response message indicating whether the * endorsement of the action was successful * </pre> * * <code>optional .protos.Response response = 4;</code> */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /**
/** * <pre> * The endorsement of the proposal, basically * the endorser's signature over the payload * </pre> * * <code>optional .protos.Endorsement endorsement = 6;</code> */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder getEndorsementBuilder() { onChanged(); return getEndorsementFieldBuilder().getBuilder(); } /**
/** * <pre> * Timestamp is the time that the message * was created as defined by the sender * </pre> * * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /**
/** * <pre> * Version indicates message protocol version * </pre> * * <code>optional int32 version = 1;</code> */ public Builder setVersion(int value) { version_ = value; onChanged(); return this; } /**
/** * <pre> * The payload of response. It is the bytes of ProposalResponsePayload * </pre> * * <code>optional bytes payload = 5;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; }
/** * <pre> * Version indicates message protocol version * </pre> * * <code>optional int32 version = 1;</code> */ public Builder clearVersion() { version_ = 0; onChanged(); return this; }