public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.hyperledger.fabric.protos.peer.ChaincodeShim.ChaincodeMessage.Type.UNDEFINED.getNumber()) { output.writeEnum(1, type_); } if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } if (!payload_.isEmpty()) { output.writeBytes(3, payload_); } if (!getTxidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, txid_); } if (proposal_ != null) { output.writeMessage(5, getProposal()); } if (chaincodeEvent_ != null) { output.writeMessage(6, getChaincodeEvent()); } if (!getChannelIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, channelId_); } }
.computeMessageSize(5, getProposal());
if (hasProposal()) { hash = (37 * hash) + PROPOSAL_FIELD_NUMBER; hash = (53 * hash) + getProposal().hashCode();
final ChaincodeStub stub = new ChaincodeStubImpl(message.getChannelId(), message.getTxid(), this, input.getArgsList(), message.getProposal());
result = result && (hasProposal() == other.hasProposal()); if (hasProposal()) { result = result && getProposal() .equals(other.getProposal());
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeShim.ChaincodeMessage other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeShim.ChaincodeMessage.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (!other.getTxid().isEmpty()) { txid_ = other.txid_; onChanged(); } if (other.hasProposal()) { mergeProposal(other.getProposal()); } if (other.hasChaincodeEvent()) { mergeChaincodeEvent(other.getChaincodeEvent()); } if (!other.getChannelId().isEmpty()) { channelId_ = other.channelId_; onChanged(); } onChanged(); return this; }
final ChaincodeStub stub = new ChaincodeStubImpl(message.getChannelId(), message.getTxid(), this, input.getArgsList(), message.getProposal());
/** * <code>optional .protos.SignedProposal proposal = 5;</code> */ public org.hyperledger.fabric.protos.peer.ProposalPackage.SignedProposalOrBuilder getProposalOrBuilder() { return getProposal(); }