/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public Builder setResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } return this; } /**
/** * <pre> * This field contains the ChaincodeID of executing this invocation. Endorser * will set it with the ChaincodeID called by endorser while simulating proposal. * Committer will validate the version matching with latest chaincode version. * Adding ChaincodeID to keep version opens up the possibility of multiple * ChaincodeAction per transaction. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 4;</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> * This field contains the events generated by the chaincode executing this * invocation. * </pre> * * <code>optional bytes events = 2;</code> */ public Builder setEvents(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } events_ = value; onChanged(); return this; } /**
/** * <pre> * This field contains the events generated by the chaincode executing this * invocation. * </pre> * * <code>optional bytes events = 2;</code> */ public Builder clearEvents() { events_ = getDefaultInstance().getEvents(); onChanged(); return this; }
/** * <pre> * This field contains the read set and the write set produced by the * chaincode executing this invocation. * </pre> * * <code>optional bytes results = 1;</code> */ public Builder clearResults() { results_ = getDefaultInstance().getResults(); onChanged(); return this; }
/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /**
/** * <pre> * This field contains the read set and the write set produced by the * chaincode executing this invocation. * </pre> * * <code>optional bytes results = 1;</code> */ public Builder clearResults() { results_ = getDefaultInstance().getResults(); onChanged(); return this; }
/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /**
/** * <pre> * This field contains the ChaincodeID of executing this invocation. Endorser * will set it with the ChaincodeID called by endorser while simulating proposal. * Committer will validate the version matching with latest chaincode version. * Adding ChaincodeID to keep version opens up the possibility of multiple * ChaincodeAction per transaction. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 4;</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> * This field contains the ChaincodeID of executing this invocation. Endorser * will set it with the ChaincodeID called by endorser while simulating proposal. * Committer will validate the version matching with latest chaincode version. * Adding ChaincodeID to keep version opens up the possibility of multiple * ChaincodeAction per transaction. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 4;</code> */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /**
/** * <pre> * This field contains the ChaincodeID of executing this invocation. Endorser * will set it with the ChaincodeID called by endorser while simulating proposal. * Committer will validate the version matching with latest chaincode version. * Adding ChaincodeID to keep version opens up the possibility of multiple * ChaincodeAction per transaction. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 4;</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> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public Builder mergeResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /**
/** * <pre> * This field contains the read set and the write set produced by the * chaincode executing this invocation. * </pre> * * <code>optional bytes results = 1;</code> */ public Builder setResults(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } results_ = value; onChanged(); return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeAction.getDefaultInstance()) return this; if (other.getResults() != com.google.protobuf.ByteString.EMPTY) { setResults(other.getResults()); } if (other.getEvents() != com.google.protobuf.ByteString.EMPTY) { setEvents(other.getEvents()); } if (other.hasResponse()) { mergeResponse(other.getResponse()); } if (other.hasChaincodeId()) { mergeChaincodeId(other.getChaincodeId()); } onChanged(); return this; }
/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public Builder setResponse( org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <pre> * This field contains the ChaincodeID of executing this invocation. Endorser * will set it with the ChaincodeID called by endorser while simulating proposal. * Committer will validate the version matching with latest chaincode version. * Adding ChaincodeID to keep version opens up the possibility of multiple * ChaincodeAction per transaction. * </pre> * * <code>optional .protos.ChaincodeID chaincode_id = 4;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /**
/** * <pre> * This field contains the events generated by the chaincode executing this * invocation. * </pre> * * <code>optional bytes events = 2;</code> */ public Builder clearEvents() { events_ = getDefaultInstance().getEvents(); onChanged(); return this; }
/** * <pre> * This field contains the read set and the write set produced by the * chaincode executing this invocation. * </pre> * * <code>optional bytes results = 1;</code> */ public Builder clearResults() { results_ = getDefaultInstance().getResults(); onChanged(); return this; }
/** * <pre> * This field contains the result of executing this invocation. * </pre> * * <code>optional .protos.Response response = 3;</code> */ public org.hyperledger.fabric.protos.peer.FabricProposalResponse.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /**