/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); } else { chaincodeIdBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The PayloadVisibility field controls to what extent the Proposal's payload * (recall that for the type CHAINCODE, it is ChaincodeProposalPayload * message) field will be visible in the final transaction and in the ledger. * Ideally, it would be configurable, supporting at least 3 main visibility * modes: * 1. all bytes of the payload are visible; * 2. only a hash of the payload is visible; * 3. nothing is visible. * Notice that the visibility function may be potentially part of the ESCC. * In that case it overrides PayloadVisibility field. Finally notice that * this field impacts the content of ProposalResponsePayload.proposalHash. * </pre> * * <code>optional bytes payload_visibility = 1;</code> */ public Builder setPayloadVisibility(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payloadVisibility_ = value; onChanged(); return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder mergeChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (chaincodeId_ != null) { chaincodeId_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.newBuilder(chaincodeId_).mergeFrom(value).buildPartial(); } else { chaincodeId_ = value; } onChanged(); } else { chaincodeIdBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder mergeChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (chaincodeId_ != null) { chaincodeId_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.newBuilder(chaincodeId_).mergeFrom(value).buildPartial(); } else { chaincodeId_ = value; } onChanged(); } else { chaincodeIdBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); } else { chaincodeIdBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); } else { chaincodeIdBuilder_.setMessage(value); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder builderForValue) { if (chaincodeIdBuilder_ == null) { chaincodeId_ = builderForValue.build(); onChanged(); } else { chaincodeIdBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder builderForValue) { if (chaincodeIdBuilder_ == null) { chaincodeId_ = builderForValue.build(); onChanged(); } else { chaincodeIdBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder mergeChaincodeId(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (chaincodeId_ != null) { chaincodeId_ = org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.newBuilder(chaincodeId_).mergeFrom(value).buildPartial(); } else { chaincodeId_ = value; } onChanged(); } else { chaincodeIdBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * The PayloadVisibility field controls to what extent the Proposal's payload * (recall that for the type CHAINCODE, it is ChaincodeProposalPayload * message) field will be visible in the final transaction and in the ledger. * Ideally, it would be configurable, supporting at least 3 main visibility * modes: * 1. all bytes of the payload are visible; * 2. only a hash of the payload is visible; * 3. nothing is visible. * Notice that the visibility function may be potentially part of the ESCC. * In that case it overrides PayloadVisibility field. Finally notice that * this field impacts the content of ProposalResponsePayload.proposalHash. * </pre> * * <code>optional bytes payload_visibility = 1;</code> */ public Builder clearPayloadVisibility() { payloadVisibility_ = getDefaultInstance().getPayloadVisibility(); onChanged(); return this; }
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /**
/** * <pre> * The ID of the chaincode to target. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 2;</code> */ public Builder setChaincodeId( org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder builderForValue) { if (chaincodeIdBuilder_ == null) { chaincodeId_ = builderForValue.build(); onChanged(); } else { chaincodeIdBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeHeaderExtension.getDefaultInstance()) return this; if (other.getPayloadVisibility() != com.google.protobuf.ByteString.EMPTY) { setPayloadVisibility(other.getPayloadVisibility()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }