All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.protos.peer.ChaincodeAction Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: peer/proposal.proto

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * ChaincodeAction contains the executed chaincode results, response, and event.
 * 
* * Protobuf type {@code protos.ChaincodeAction} */ public final class ChaincodeAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.ChaincodeAction) ChaincodeActionOrBuilder { private static final long serialVersionUID = 0L; // Use ChaincodeAction.newBuilder() to construct. private ChaincodeAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeAction() { results_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChaincodeAction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { results_ = input.readBytes(); break; } case 18: { events_ = input.readBytes(); break; } case 26: { org.hyperledger.fabric.protos.peer.Response.Builder subBuilder = null; if (response_ != null) { subBuilder = response_.toBuilder(); } response_ = input.readMessage(org.hyperledger.fabric.protos.peer.Response.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(response_); response_ = subBuilder.buildPartial(); } break; } case 34: { org.hyperledger.fabric.protos.peer.ChaincodeID.Builder subBuilder = null; if (chaincodeId_ != null) { subBuilder = chaincodeId_.toBuilder(); } chaincodeId_ = input.readMessage(org.hyperledger.fabric.protos.peer.ChaincodeID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(chaincodeId_); chaincodeId_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeAction.class, org.hyperledger.fabric.protos.peer.ChaincodeAction.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString results_; /** *
   * This field contains the read set and the write set produced by the
   * chaincode executing this invocation.
   * 
* * bytes results = 1 [json_name = "results"]; * @return The results. */ @java.lang.Override public com.google.protobuf.ByteString getResults() { return results_; } public static final int EVENTS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString events_; /** *
   * This field contains the event generated by the chaincode.
   * Only a single marshaled ChaincodeEvent is included.
   * 
* * bytes events = 2 [json_name = "events"]; * @return The events. */ @java.lang.Override public com.google.protobuf.ByteString getEvents() { return events_; } public static final int RESPONSE_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.peer.Response response_; /** *
   * This field contains the result of executing this invocation.
   * 
* * .protos.Response response = 3 [json_name = "response"]; * @return Whether the response field is set. */ @java.lang.Override public boolean hasResponse() { return response_ != null; } /** *
   * This field contains the result of executing this invocation.
   * 
* * .protos.Response response = 3 [json_name = "response"]; * @return The response. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Response getResponse() { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } /** *
   * This field contains the result of executing this invocation.
   * 
* * .protos.Response response = 3 [json_name = "response"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ResponseOrBuilder getResponseOrBuilder() { return getResponse(); } public static final int CHAINCODE_ID_FIELD_NUMBER = 4; private org.hyperledger.fabric.protos.peer.ChaincodeID chaincodeId_; /** *
   * 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.
   * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; * @return Whether the chaincodeId field is set. */ @java.lang.Override public boolean hasChaincodeId() { return chaincodeId_ != null; } /** *
   * 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.
   * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; * @return The chaincodeId. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeID getChaincodeId() { return chaincodeId_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeID.getDefaultInstance() : chaincodeId_; } /** *
   * 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.
   * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { return getChaincodeId(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!results_.isEmpty()) { output.writeBytes(1, results_); } if (!events_.isEmpty()) { output.writeBytes(2, events_); } if (response_ != null) { output.writeMessage(3, getResponse()); } if (chaincodeId_ != null) { output.writeMessage(4, getChaincodeId()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!results_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, results_); } if (!events_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, events_); } if (response_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getResponse()); } if (chaincodeId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChaincodeId()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.ChaincodeAction)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeAction other = (org.hyperledger.fabric.protos.peer.ChaincodeAction) obj; if (!getResults() .equals(other.getResults())) return false; if (!getEvents() .equals(other.getEvents())) return false; if (hasResponse() != other.hasResponse()) return false; if (hasResponse()) { if (!getResponse() .equals(other.getResponse())) return false; } if (hasChaincodeId() != other.hasChaincodeId()) return false; if (hasChaincodeId()) { if (!getChaincodeId() .equals(other.getChaincodeId())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResults().hashCode(); hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEvents().hashCode(); if (hasResponse()) { hash = (37 * hash) + RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getResponse().hashCode(); } if (hasChaincodeId()) { hash = (37 * hash) + CHAINCODE_ID_FIELD_NUMBER; hash = (53 * hash) + getChaincodeId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.ChaincodeAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * ChaincodeAction contains the executed chaincode results, response, and event.
   * 
* * Protobuf type {@code protos.ChaincodeAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeAction) org.hyperledger.fabric.protos.peer.ChaincodeActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeAction_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeAction.class, org.hyperledger.fabric.protos.peer.ChaincodeAction.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ChaincodeAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); results_ = com.google.protobuf.ByteString.EMPTY; events_ = com.google.protobuf.ByteString.EMPTY; if (responseBuilder_ == null) { response_ = null; } else { response_ = null; responseBuilder_ = null; } if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.ProposalProto.internal_static_protos_ChaincodeAction_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeAction getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ChaincodeAction.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeAction build() { org.hyperledger.fabric.protos.peer.ChaincodeAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeAction buildPartial() { org.hyperledger.fabric.protos.peer.ChaincodeAction result = new org.hyperledger.fabric.protos.peer.ChaincodeAction(this); result.results_ = results_; result.events_ = events_; if (responseBuilder_ == null) { result.response_ = response_; } else { result.response_ = responseBuilder_.build(); } if (chaincodeIdBuilder_ == null) { result.chaincodeId_ = chaincodeId_; } else { result.chaincodeId_ = chaincodeIdBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ChaincodeAction) { return mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeAction other) { if (other == org.hyperledger.fabric.protos.peer.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()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.ChaincodeAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.ChaincodeAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString results_ = com.google.protobuf.ByteString.EMPTY; /** *
     * This field contains the read set and the write set produced by the
     * chaincode executing this invocation.
     * 
* * bytes results = 1 [json_name = "results"]; * @return The results. */ @java.lang.Override public com.google.protobuf.ByteString getResults() { return results_; } /** *
     * This field contains the read set and the write set produced by the
     * chaincode executing this invocation.
     * 
* * bytes results = 1 [json_name = "results"]; * @param value The results to set. * @return This builder for chaining. */ public Builder setResults(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } results_ = value; onChanged(); return this; } /** *
     * This field contains the read set and the write set produced by the
     * chaincode executing this invocation.
     * 
* * bytes results = 1 [json_name = "results"]; * @return This builder for chaining. */ public Builder clearResults() { results_ = getDefaultInstance().getResults(); onChanged(); return this; } private com.google.protobuf.ByteString events_ = com.google.protobuf.ByteString.EMPTY; /** *
     * This field contains the event generated by the chaincode.
     * Only a single marshaled ChaincodeEvent is included.
     * 
* * bytes events = 2 [json_name = "events"]; * @return The events. */ @java.lang.Override public com.google.protobuf.ByteString getEvents() { return events_; } /** *
     * This field contains the event generated by the chaincode.
     * Only a single marshaled ChaincodeEvent is included.
     * 
* * bytes events = 2 [json_name = "events"]; * @param value The events to set. * @return This builder for chaining. */ public Builder setEvents(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } events_ = value; onChanged(); return this; } /** *
     * This field contains the event generated by the chaincode.
     * Only a single marshaled ChaincodeEvent is included.
     * 
* * bytes events = 2 [json_name = "events"]; * @return This builder for chaining. */ public Builder clearEvents() { events_ = getDefaultInstance().getEvents(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Response response_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder> responseBuilder_; /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; * @return Whether the response field is set. */ public boolean hasResponse() { return responseBuilder_ != null || response_ != null; } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; * @return The response. */ public org.hyperledger.fabric.protos.peer.Response getResponse() { if (responseBuilder_ == null) { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } else { return responseBuilder_.getMessage(); } } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public Builder setResponse(org.hyperledger.fabric.protos.peer.Response value) { if (responseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { responseBuilder_.setMessage(value); } return this; } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public Builder setResponse( org.hyperledger.fabric.protos.peer.Response.Builder builderForValue) { if (responseBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { responseBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public Builder mergeResponse(org.hyperledger.fabric.protos.peer.Response value) { if (responseBuilder_ == null) { if (response_ != null) { response_ = org.hyperledger.fabric.protos.peer.Response.newBuilder(response_).mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { responseBuilder_.mergeFrom(value); } return this; } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public Builder clearResponse() { if (responseBuilder_ == null) { response_ = null; onChanged(); } else { response_ = null; responseBuilder_ = null; } return this; } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public org.hyperledger.fabric.protos.peer.Response.Builder getResponseBuilder() { onChanged(); return getResponseFieldBuilder().getBuilder(); } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ public org.hyperledger.fabric.protos.peer.ResponseOrBuilder getResponseOrBuilder() { if (responseBuilder_ != null) { return responseBuilder_.getMessageOrBuilder(); } else { return response_ == null ? org.hyperledger.fabric.protos.peer.Response.getDefaultInstance() : response_; } } /** *
     * This field contains the result of executing this invocation.
     * 
* * .protos.Response response = 3 [json_name = "response"]; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Response, org.hyperledger.fabric.protos.peer.Response.Builder, org.hyperledger.fabric.protos.peer.ResponseOrBuilder>( getResponse(), getParentForChildren(), isClean()); response_ = null; } return responseBuilder_; } private org.hyperledger.fabric.protos.peer.ChaincodeID chaincodeId_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeID, org.hyperledger.fabric.protos.peer.ChaincodeID.Builder, org.hyperledger.fabric.protos.peer.ChaincodeIDOrBuilder> chaincodeIdBuilder_; /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; * @return Whether the chaincodeId field is set. */ public boolean hasChaincodeId() { return chaincodeIdBuilder_ != null || chaincodeId_ != null; } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; * @return The chaincodeId. */ public org.hyperledger.fabric.protos.peer.ChaincodeID getChaincodeId() { if (chaincodeIdBuilder_ == null) { return chaincodeId_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeID.getDefaultInstance() : chaincodeId_; } else { return chaincodeIdBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public Builder setChaincodeId(org.hyperledger.fabric.protos.peer.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } chaincodeId_ = value; onChanged(); } else { chaincodeIdBuilder_.setMessage(value); } return this; } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public Builder setChaincodeId( org.hyperledger.fabric.protos.peer.ChaincodeID.Builder builderForValue) { if (chaincodeIdBuilder_ == null) { chaincodeId_ = builderForValue.build(); onChanged(); } else { chaincodeIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public Builder mergeChaincodeId(org.hyperledger.fabric.protos.peer.ChaincodeID value) { if (chaincodeIdBuilder_ == null) { if (chaincodeId_ != null) { chaincodeId_ = org.hyperledger.fabric.protos.peer.ChaincodeID.newBuilder(chaincodeId_).mergeFrom(value).buildPartial(); } else { chaincodeId_ = value; } onChanged(); } else { chaincodeIdBuilder_.mergeFrom(value); } return this; } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public Builder clearChaincodeId() { if (chaincodeIdBuilder_ == null) { chaincodeId_ = null; onChanged(); } else { chaincodeId_ = null; chaincodeIdBuilder_ = null; } return this; } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeID.Builder getChaincodeIdBuilder() { onChanged(); return getChaincodeIdFieldBuilder().getBuilder(); } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ public org.hyperledger.fabric.protos.peer.ChaincodeIDOrBuilder getChaincodeIdOrBuilder() { if (chaincodeIdBuilder_ != null) { return chaincodeIdBuilder_.getMessageOrBuilder(); } else { return chaincodeId_ == null ? org.hyperledger.fabric.protos.peer.ChaincodeID.getDefaultInstance() : chaincodeId_; } } /** *
     * 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.
     * 
* * .protos.ChaincodeID chaincode_id = 4 [json_name = "chaincodeId"]; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeID, org.hyperledger.fabric.protos.peer.ChaincodeID.Builder, org.hyperledger.fabric.protos.peer.ChaincodeIDOrBuilder> getChaincodeIdFieldBuilder() { if (chaincodeIdBuilder_ == null) { chaincodeIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.ChaincodeID, org.hyperledger.fabric.protos.peer.ChaincodeID.Builder, org.hyperledger.fabric.protos.peer.ChaincodeIDOrBuilder>( getChaincodeId(), getParentForChildren(), isClean()); chaincodeId_ = null; } return chaincodeIdBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.ChaincodeAction) } // @@protoc_insertion_point(class_scope:protos.ChaincodeAction) private static final org.hyperledger.fabric.protos.peer.ChaincodeAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ChaincodeAction(); } public static org.hyperledger.fabric.protos.peer.ChaincodeAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeAction(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy