/** * <pre> * The header of the proposal. It is the bytes of the Header * </pre> * * <code>optional bytes header = 1;</code> */ public Builder setHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); return this; } /**
/** * <pre> * Optional extensions to the proposal. Its content depends on the Header's * type field. For the type CHAINCODE, it might be the bytes of a * ChaincodeAction message. * </pre> * * <code>optional bytes extension = 3;</code> */ public Builder setExtension(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } extension_ = value; onChanged(); return this; } /**
/** * <pre> * The payload of the proposal as defined by the type in the proposal * header. * </pre> * * <code>optional bytes payload = 2;</code> */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ProposalPackage.Proposal other) { if (other == org.hyperledger.fabric.protos.peer.ProposalPackage.Proposal.getDefaultInstance()) return this; if (other.getHeader() != com.google.protobuf.ByteString.EMPTY) { setHeader(other.getHeader()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }
/** * <pre> * Optional extensions to the proposal. Its content depends on the Header's * type field. For the type CHAINCODE, it might be the bytes of a * ChaincodeAction message. * </pre> * * <code>optional bytes extension = 3;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The header of the proposal. It is the bytes of the Header * </pre> * * <code>optional bytes header = 1;</code> */ public Builder clearHeader() { header_ = getDefaultInstance().getHeader(); onChanged(); return this; }
/** * <pre> * The payload of the proposal as defined by the type in the proposal * header. * </pre> * * <code>optional bytes payload = 2;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; }