/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder clearEndorsements() { if (endorsementsBuilder_ == null) { endorsements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { endorsementsBuilder_.clear(); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder addEndorsements(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndorsementsIsMutable(); endorsements_.add(value); onChanged(); } else { endorsementsBuilder_.addMessage(value); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder setEndorsements( int index, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndorsementsIsMutable(); endorsements_.set(index, value); onChanged(); } else { endorsementsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder clearEndorsements() { if (endorsementsBuilder_ == null) { endorsements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { endorsementsBuilder_.clear(); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder removeEndorsements(int index) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.remove(index); onChanged(); } else { endorsementsBuilder_.remove(index); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder clearEndorsements() { if (endorsementsBuilder_ == null) { endorsements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { endorsementsBuilder_.clear(); } return this; } /**
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder setProposalResponsePayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposalResponsePayload_ = value; onChanged(); return this; } /**
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder setProposalResponsePayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposalResponsePayload_ = value; onChanged(); return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder removeEndorsements(int index) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.remove(index); onChanged(); } else { endorsementsBuilder_.remove(index); } return this; } /**
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder clearProposalResponsePayload() { proposalResponsePayload_ = getDefaultInstance().getProposalResponsePayload(); onChanged(); return this; }
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder clearProposalResponsePayload() { proposalResponsePayload_ = getDefaultInstance().getProposalResponsePayload(); onChanged(); return this; }
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder addEndorsements( int index, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement value) { if (endorsementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndorsementsIsMutable(); endorsements_.add(index, value); onChanged(); } else { endorsementsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder addAllEndorsements( java.lang.Iterable<? extends org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement> values) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endorsements_); onChanged(); } else { endorsementsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder addEndorsements( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder builderForValue) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.add(builderForValue.build()); onChanged(); } else { endorsementsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder setEndorsements( int index, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder builderForValue) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.set(index, builderForValue.build()); onChanged(); } else { endorsementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder addEndorsements( int index, org.hyperledger.fabric.protos.peer.FabricProposalResponse.Endorsement.Builder builderForValue) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.add(index, builderForValue.build()); onChanged(); } else { endorsementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder setProposalResponsePayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposalResponsePayload_ = value; onChanged(); return this; } /**
/** * <pre> * The endorsement of the proposal, basically the endorser's signature over * proposalResponsePayload * </pre> * * <code>repeated .protos.Endorsement endorsements = 2;</code> */ public Builder removeEndorsements(int index) { if (endorsementsBuilder_ == null) { ensureEndorsementsIsMutable(); endorsements_.remove(index); onChanged(); } else { endorsementsBuilder_.remove(index); } return this; } /**
/** * <pre> * This is the bytes of the ProposalResponsePayload message signed by the * endorsers. Recall that for the CHAINCODE type, the * ProposalResponsePayload's extenstion field carries a ChaincodeAction * </pre> * * <code>optional bytes proposal_response_payload = 1;</code> */ public Builder clearProposalResponsePayload() { proposalResponsePayload_ = getDefaultInstance().getProposalResponsePayload(); onChanged(); return this; }