/** * <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; } /**
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public Builder setProposal(org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposal value) { if (proposalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proposal_ = value; onChanged(); } else { proposalBuilder_.setMessage(value); } return this; } /**
/** * <code>optional bytes payload = 3;</code> */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public Builder mergeProposal(org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposal value) { if (proposalBuilder_ == null) { if (proposal_ != null) { proposal_ = org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposal.newBuilder(proposal_).mergeFrom(value).buildPartial(); } else { proposal_ = value; } onChanged(); } else { proposalBuilder_.mergeFrom(value); } return this; } /**
/** * <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; } /**
/** * <pre> *event emitted by chaincode. Used only with Init or Invoke. * This event is then stored (currently) *with Block.NonHashData.TransactionResult * </pre> * * <code>optional .protos.ChaincodeEvent chaincode_event = 6;</code> */ public org.hyperledger.fabric.protos.peer.ChaincodeEventPackage.ChaincodeEvent.Builder getChaincodeEventBuilder() { onChanged(); return getChaincodeEventFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public Builder setProposal( org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposal.Builder builderForValue) { if (proposalBuilder_ == null) { proposal_ = builderForValue.build(); onChanged(); } else { proposalBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <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> *channel id * </pre> * * <code>optional string channel_id = 7;</code> */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /**
/** * <code>optional string txid = 4;</code> */ public Builder setTxid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txid_ = value; onChanged(); return this; } /**
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposal.Builder getProposalBuilder() { onChanged(); return getProposalFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.ChaincodeMessage.Type type = 1;</code> */ public Builder clearType() { type_ = 0; onChanged(); return this; }
/** * <code>optional .protos.ChaincodeMessage.Type type = 1;</code> */ public Builder setType(org.hyperledger.fabric.protos.peer.ChaincodeShim.ChaincodeMessage.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional string txid = 4;</code> */ public Builder setTxidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txid_ = value; onChanged(); return this; }
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public Builder clearProposal() { if (proposalBuilder_ == null) { proposal_ = null; onChanged(); } else { proposal_ = null; proposalBuilder_ = null; } return this; } /**
/** * <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; } /**
/** * <code>optional string txid = 4;</code> */ public Builder clearTxid() { txid_ = getDefaultInstance().getTxid(); onChanged(); return this; } /**
/** * <code>optional .protos.ChaincodeMessage.Type type = 1;</code> */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /**
/** * <code>optional bytes payload = 3;</code> */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; }
/** * <code>optional .google.protobuf.Timestamp timestamp = 2;</code> */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /**