chaincodeEndorsedActionBuilder.setProposalResponsePayload(proposalResponsePayload); chaincodeEndorsedActionBuilder.addAllEndorsements(endorsements); chaincodeActionPayloadBuilder.setAction(chaincodeEndorsedActionBuilder.build());
subBuilder.mergeFrom(action_); action_ = subBuilder.buildPartial();
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction other) { if (other == org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction.getDefaultInstance()) return this; if (other.getProposalResponsePayload() != com.google.protobuf.ByteString.EMPTY) { setProposalResponsePayload(other.getProposalResponsePayload()); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndorsementsIsMutable(); endorsements_.addAll(other.endorsements_); onChanged(); endorsementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndorsementsFieldBuilder() : null; } else { endorsementsBuilder_.addAllMessages(other.endorsements_); onChanged(); return this;
subBuilder.mergeFrom(action_); action_ = subBuilder.buildPartial();
subBuilder.mergeFrom(action_); action_ = subBuilder.buildPartial();
chaincodeEndorsedActionBuilder.setProposalResponsePayload(proposalResponsePayload); chaincodeEndorsedActionBuilder.addAllEndorsements(endorsements); chaincodeActionPayloadBuilder.setAction(chaincodeEndorsedActionBuilder.build());
chaincodeEndorsedActionBuilder.setProposalResponsePayload(proposalResponsePayload); chaincodeEndorsedActionBuilder.addAllEndorsements(endorsements); chaincodeActionPayloadBuilder.setAction(chaincodeEndorsedActionBuilder.build());
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction other) { if (other == org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction.getDefaultInstance()) return this; if (other.getProposalResponsePayload() != com.google.protobuf.ByteString.EMPTY) { setProposalResponsePayload(other.getProposalResponsePayload()); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndorsementsIsMutable(); endorsements_.addAll(other.endorsements_); onChanged(); endorsementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndorsementsFieldBuilder() : null; } else { endorsementsBuilder_.addAllMessages(other.endorsements_); onChanged(); return this;
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction other) { if (other == org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction.getDefaultInstance()) return this; if (other.getProposalResponsePayload() != com.google.protobuf.ByteString.EMPTY) { setProposalResponsePayload(other.getProposalResponsePayload()); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureEndorsementsIsMutable(); endorsements_.addAll(other.endorsements_); onChanged(); endorsementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndorsementsFieldBuilder() : null; } else { endorsementsBuilder_.addAllMessages(other.endorsements_); 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 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 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 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 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 list of actions to apply to the ledger * </pre> * * <code>optional .protos.ChaincodeEndorsedAction action = 2;</code> */ public Builder mergeAction(org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction value) { if (actionBuilder_ == null) { if (action_ != null) { action_ = org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction.newBuilder(action_).mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { actionBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The list of actions to apply to the ledger * </pre> * * <code>optional .protos.ChaincodeEndorsedAction action = 2;</code> */ public Builder mergeAction(org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction value) { if (actionBuilder_ == null) { if (action_ != null) { action_ = org.hyperledger.fabric.protos.peer.FabricTransaction.ChaincodeEndorsedAction.newBuilder(action_).mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { actionBuilder_.mergeFrom(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( 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 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; } /**