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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: peer/chaincode.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.peer;

/**
 * 
 * Carries the chaincode function and its arguments.
 * UnmarshalJSON in transaction.go converts the string-based REST/JSON input to
 * the []byte-based current ChaincodeInput structure.
 * 
* * Protobuf type {@code protos.ChaincodeInput} */ public final class ChaincodeInput extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:protos.ChaincodeInput) ChaincodeInputOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", ChaincodeInput.class.getName()); } // Use ChaincodeInput.newBuilder() to construct. private ChaincodeInput(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChaincodeInput() { args_ = emptyList(com.google.protobuf.ByteString.class); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeInput.class, org.hyperledger.fabric.protos.peer.ChaincodeInput.Builder.class); } public static final int ARGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList args_ = emptyList(com.google.protobuf.ByteString.class); /** * repeated bytes args = 1 [json_name = "args"]; * @return A list containing the args. */ @java.lang.Override public java.util.List getArgsList() { return args_; } /** * repeated bytes args = 1 [json_name = "args"]; * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** * repeated bytes args = 1 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ public com.google.protobuf.ByteString getArgs(int index) { return args_.get(index); } public static final int DECORATIONS_FIELD_NUMBER = 2; private static final class DecorationsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_DecorationsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> decorations_; private com.google.protobuf.MapField internalGetDecorations() { if (decorations_ == null) { return com.google.protobuf.MapField.emptyMapField( DecorationsDefaultEntryHolder.defaultEntry); } return decorations_; } public int getDecorationsCount() { return internalGetDecorations().getMap().size(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public boolean containsDecorations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetDecorations().getMap().containsKey(key); } /** * Use {@link #getDecorationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDecorations() { return getDecorationsMap(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public java.util.Map getDecorationsMap() { return internalGetDecorations().getMap(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getDecorationsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDecorations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public com.google.protobuf.ByteString getDecorationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDecorations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int IS_INIT_FIELD_NUMBER = 3; private boolean isInit_ = false; /** *
   * is_init is used for the application to signal that an invocation is to be routed
   * to the legacy 'Init' function for compatibility with chaincodes which handled
   * Init in the old way.  New applications should manage their initialized state
   * themselves.
   * 
* * bool is_init = 3 [json_name = "isInit"]; * @return The isInit. */ @java.lang.Override public boolean getIsInit() { return isInit_; } 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 { for (int i = 0; i < args_.size(); i++) { output.writeBytes(1, args_.get(i)); } com.google.protobuf.GeneratedMessage .serializeStringMapTo( output, internalGetDecorations(), DecorationsDefaultEntryHolder.defaultEntry, 2); if (isInit_ != false) { output.writeBool(3, isInit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry decorations__ = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations__); } if (isInit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isInit_); } size += getUnknownFields().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.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.ChaincodeInput) obj; if (!getArgsList() .equals(other.getArgsList())) return false; if (!internalGetDecorations().equals( other.internalGetDecorations())) return false; if (getIsInit() != other.getIsInit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().hashCode(); } hash = (37 * hash) + IS_INIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsInit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput 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.ChaincodeInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput 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.ChaincodeInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput 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.ChaincodeInput parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .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.ChaincodeInput 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Carries the chaincode function and its arguments.
   * UnmarshalJSON in transaction.go converts the string-based REST/JSON input to
   * the []byte-based current ChaincodeInput structure.
   * 
* * Protobuf type {@code protos.ChaincodeInput} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:protos.ChaincodeInput) org.hyperledger.fabric.protos.peer.ChaincodeInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableDecorations(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.ChaincodeInput.class, org.hyperledger.fabric.protos.peer.ChaincodeInput.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.ChaincodeInput.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; args_ = emptyList(com.google.protobuf.ByteString.class); internalGetMutableDecorations().clear(); isInit_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.ChaincodeProto.internal_static_protos_ChaincodeInput_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeInput getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.ChaincodeInput.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeInput build() { org.hyperledger.fabric.protos.peer.ChaincodeInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.ChaincodeInput buildPartial() { org.hyperledger.fabric.protos.peer.ChaincodeInput result = new org.hyperledger.fabric.protos.peer.ChaincodeInput(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.ChaincodeInput result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { args_.makeImmutable(); result.args_ = args_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.decorations_ = internalGetDecorations(); result.decorations_.makeImmutable(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.isInit_ = isInit_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.ChaincodeInput) { return mergeFrom((org.hyperledger.fabric.protos.peer.ChaincodeInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeInput other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeInput.getDefaultInstance()) return this; if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; args_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } internalGetMutableDecorations().mergeFrom( other.internalGetDecorations()); bitField0_ |= 0x00000002; if (other.getIsInit() != false) { setIsInit(other.getIsInit()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString v = input.readBytes(); ensureArgsIsMutable(); args_.add(v); break; } // case 10 case 18: { com.google.protobuf.MapEntry decorations__ = input.readMessage( DecorationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableDecorations().getMutableMap().put( decorations__.getKey(), decorations__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 case 24: { isInit_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.ProtobufList args_ = emptyList(com.google.protobuf.ByteString.class); private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = makeMutableCopy(args_); } bitField0_ |= 0x00000001; } /** * repeated bytes args = 1 [json_name = "args"]; * @return A list containing the args. */ public java.util.List getArgsList() { args_.makeImmutable(); return args_; } /** * repeated bytes args = 1 [json_name = "args"]; * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** * repeated bytes args = 1 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ public com.google.protobuf.ByteString getArgs(int index) { return args_.get(index); } /** * repeated bytes args = 1 [json_name = "args"]; * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ public Builder setArgs( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes args = 1 [json_name = "args"]; * @param value The args to add. * @return This builder for chaining. */ public Builder addArgs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes args = 1 [json_name = "args"]; * @param values The args to add. * @return This builder for chaining. */ public Builder addAllArgs( java.lang.Iterable values) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes args = 1 [json_name = "args"]; * @return This builder for chaining. */ public Builder clearArgs() { args_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> decorations_; private com.google.protobuf.MapField internalGetDecorations() { if (decorations_ == null) { return com.google.protobuf.MapField.emptyMapField( DecorationsDefaultEntryHolder.defaultEntry); } return decorations_; } private com.google.protobuf.MapField internalGetMutableDecorations() { if (decorations_ == null) { decorations_ = com.google.protobuf.MapField.newMapField( DecorationsDefaultEntryHolder.defaultEntry); } if (!decorations_.isMutable()) { decorations_ = decorations_.copy(); } bitField0_ |= 0x00000002; onChanged(); return decorations_; } public int getDecorationsCount() { return internalGetDecorations().getMap().size(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public boolean containsDecorations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetDecorations().getMap().containsKey(key); } /** * Use {@link #getDecorationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDecorations() { return getDecorationsMap(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public java.util.Map getDecorationsMap() { return internalGetDecorations().getMap(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public /* nullable */ com.google.protobuf.ByteString getDecorationsOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDecorations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ @java.lang.Override public com.google.protobuf.ByteString getDecorationsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetDecorations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDecorations() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableDecorations().getMutableMap() .clear(); return this; } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ public Builder removeDecorations( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableDecorations().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDecorations() { bitField0_ |= 0x00000002; return internalGetMutableDecorations().getMutableMap(); } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ public Builder putDecorations( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableDecorations().getMutableMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** * map<string, bytes> decorations = 2 [json_name = "decorations"]; */ public Builder putAllDecorations( java.util.Map values) { internalGetMutableDecorations().getMutableMap() .putAll(values); bitField0_ |= 0x00000002; return this; } private boolean isInit_ ; /** *
     * is_init is used for the application to signal that an invocation is to be routed
     * to the legacy 'Init' function for compatibility with chaincodes which handled
     * Init in the old way.  New applications should manage their initialized state
     * themselves.
     * 
* * bool is_init = 3 [json_name = "isInit"]; * @return The isInit. */ @java.lang.Override public boolean getIsInit() { return isInit_; } /** *
     * is_init is used for the application to signal that an invocation is to be routed
     * to the legacy 'Init' function for compatibility with chaincodes which handled
     * Init in the old way.  New applications should manage their initialized state
     * themselves.
     * 
* * bool is_init = 3 [json_name = "isInit"]; * @param value The isInit to set. * @return This builder for chaining. */ public Builder setIsInit(boolean value) { isInit_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * is_init is used for the application to signal that an invocation is to be routed
     * to the legacy 'Init' function for compatibility with chaincodes which handled
     * Init in the old way.  New applications should manage their initialized state
     * themselves.
     * 
* * bool is_init = 3 [json_name = "isInit"]; * @return This builder for chaining. */ public Builder clearIsInit() { bitField0_ = (bitField0_ & ~0x00000004); isInit_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protos.ChaincodeInput) } // @@protoc_insertion_point(class_scope:protos.ChaincodeInput) private static final org.hyperledger.fabric.protos.peer.ChaincodeInput DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.ChaincodeInput(); } public static org.hyperledger.fabric.protos.peer.ChaincodeInput getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.ChaincodeInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy