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(6, getChaincodeEvent());
hash = (53 * hash) + getChaincodeEvent().hashCode();
result = result && getChaincodeEvent() .equals(other.getChaincodeEvent());
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; }
/** * <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.ChaincodeEventOrBuilder getChaincodeEventOrBuilder() { return getChaincodeEvent(); }