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

org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult Maven / Gradle / Ivy

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

package org.hyperledger.fabric.protos.peer.lifecycle;

/**
 * 
 * QueryChaincodeDefinitionsResult is the message returned by
 * `_lifecycle.QueryChaincodeDefinitions`.
 * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult} */ public final class QueryChaincodeDefinitionsResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionsResult) QueryChaincodeDefinitionsResultOrBuilder { 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= */ "", QueryChaincodeDefinitionsResult.class.getName()); } // Use QueryChaincodeDefinitionsResult.newBuilder() to construct. private QueryChaincodeDefinitionsResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private QueryChaincodeDefinitionsResult() { chaincodeDefinitions_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.Builder.class); } public interface ChaincodeDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) com.google.protobuf.MessageOrBuilder { /** * string name = 1 [json_name = "name"]; * @return The name. */ java.lang.String getName(); /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * int64 sequence = 2 [json_name = "sequence"]; * @return The sequence. */ long getSequence(); /** * string version = 3 [json_name = "version"]; * @return The version. */ java.lang.String getVersion(); /** * string version = 3 [json_name = "version"]; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The endorsementPlugin. */ java.lang.String getEndorsementPlugin(); /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The bytes for endorsementPlugin. */ com.google.protobuf.ByteString getEndorsementPluginBytes(); /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The validationPlugin. */ java.lang.String getValidationPlugin(); /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The bytes for validationPlugin. */ com.google.protobuf.ByteString getValidationPluginBytes(); /** * bytes validation_parameter = 6 [json_name = "validationParameter"]; * @return The validationParameter. */ com.google.protobuf.ByteString getValidationParameter(); /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return Whether the collections field is set. */ boolean hasCollections(); /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return The collections. */ org.hyperledger.fabric.protos.peer.CollectionConfigPackage getCollections(); /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder getCollectionsOrBuilder(); /** * bool init_required = 8 [json_name = "initRequired"]; * @return The initRequired. */ boolean getInitRequired(); } /** * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition} */ public static final class ChaincodeDefinition extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) ChaincodeDefinitionOrBuilder { 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= */ "", ChaincodeDefinition.class.getName()); } // Use ChaincodeDefinition.newBuilder() to construct. private ChaincodeDefinition(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChaincodeDefinition() { name_ = ""; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1 [json_name = "name"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEQUENCE_FIELD_NUMBER = 2; private long sequence_ = 0L; /** * int64 sequence = 2 [json_name = "sequence"]; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** * string version = 3 [json_name = "version"]; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * string version = 3 [json_name = "version"]; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENDORSEMENT_PLUGIN_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The endorsementPlugin. */ @java.lang.Override public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } } /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The bytes for endorsementPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PLUGIN_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The validationPlugin. */ @java.lang.Override public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } } /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The bytes for validationPlugin. */ @java.lang.Override public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDATION_PARAMETER_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6 [json_name = "validationParameter"]; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } public static final int COLLECTIONS_FIELD_NUMBER = 7; private org.hyperledger.fabric.protos.peer.CollectionConfigPackage collections_; /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return Whether the collections field is set. */ @java.lang.Override public boolean hasCollections() { return ((bitField0_ & 0x00000001) != 0); } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return The collections. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.CollectionConfigPackage getCollections() { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } public static final int INIT_REQUIRED_FIELD_NUMBER = 8; private boolean initRequired_ = false; /** * bool init_required = 8 [json_name = "initRequired"]; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (sequence_ != 0L) { output.writeInt64(2, sequence_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, version_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endorsementPlugin_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationPlugin_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, validationPlugin_); } if (!validationParameter_.isEmpty()) { output.writeBytes(6, validationParameter_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCollections()); } if (initRequired_ != false) { output.writeBool(8, initRequired_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, sequence_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, version_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endorsementPlugin_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, endorsementPlugin_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationPlugin_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, validationPlugin_); } if (!validationParameter_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validationParameter_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCollections()); } if (initRequired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, initRequired_); } 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition other = (org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) obj; if (!getName() .equals(other.getName())) return false; if (getSequence() != other.getSequence()) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEndorsementPlugin() .equals(other.getEndorsementPlugin())) return false; if (!getValidationPlugin() .equals(other.getValidationPlugin())) return false; if (!getValidationParameter() .equals(other.getValidationParameter())) return false; if (hasCollections() != other.hasCollections()) return false; if (hasCollections()) { if (!getCollections() .equals(other.getCollections())) return false; } if (getInitRequired() != other.getInitRequired()) 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(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + ENDORSEMENT_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PLUGIN_FIELD_NUMBER; hash = (53 * hash) + getValidationPlugin().hashCode(); hash = (37 * hash) + VALIDATION_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getValidationParameter().hashCode(); if (hasCollections()) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollections().hashCode(); } hash = (37 * hash) + INIT_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInitRequired()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition 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; } /** * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getCollectionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; sequence_ = 0L; version_ = ""; endorsementPlugin_ = ""; validationPlugin_ = ""; validationParameter_ = com.google.protobuf.ByteString.EMPTY; collections_ = null; if (collectionsBuilder_ != null) { collectionsBuilder_.dispose(); collectionsBuilder_ = null; } initRequired_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_ChaincodeDefinition_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition build() { org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition result = new org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sequence_ = sequence_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endorsementPlugin_ = endorsementPlugin_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.validationPlugin_ = validationPlugin_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.validationParameter_ = validationParameter_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.collections_ = collectionsBuilder_ == null ? collections_ : collectionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.initRequired_ = initRequired_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getEndorsementPlugin().isEmpty()) { endorsementPlugin_ = other.endorsementPlugin_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getValidationPlugin().isEmpty()) { validationPlugin_ = other.validationPlugin_; bitField0_ |= 0x00000010; onChanged(); } if (other.getValidationParameter() != com.google.protobuf.ByteString.EMPTY) { setValidationParameter(other.getValidationParameter()); } if (other.hasCollections()) { mergeCollections(other.getCollections()); } if (other.getInitRequired() != false) { setInitRequired(other.getInitRequired()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { sequence_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { endorsementPlugin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { validationPlugin_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { validationParameter_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getCollectionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 64: { initRequired_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 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 java.lang.Object name_ = ""; /** * string name = 1 [json_name = "name"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1 [json_name = "name"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1 [json_name = "name"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1 [json_name = "name"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long sequence_ ; /** * int64 sequence = 2 [json_name = "sequence"]; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * int64 sequence = 2 [json_name = "sequence"]; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 sequence = 2 [json_name = "sequence"]; * @return This builder for chaining. */ public Builder clearSequence() { bitField0_ = (bitField0_ & ~0x00000002); sequence_ = 0L; onChanged(); return this; } private java.lang.Object version_ = ""; /** * string version = 3 [json_name = "version"]; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 3 [json_name = "version"]; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 3 [json_name = "version"]; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string version = 3 [json_name = "version"]; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string version = 3 [json_name = "version"]; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object endorsementPlugin_ = ""; /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The endorsementPlugin. */ public java.lang.String getEndorsementPlugin() { java.lang.Object ref = endorsementPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endorsementPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return The bytes for endorsementPlugin. */ public com.google.protobuf.ByteString getEndorsementPluginBytes() { java.lang.Object ref = endorsementPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endorsementPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @param value The endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorsementPlugin_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @return This builder for chaining. */ public Builder clearEndorsementPlugin() { endorsementPlugin_ = getDefaultInstance().getEndorsementPlugin(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string endorsement_plugin = 4 [json_name = "endorsementPlugin"]; * @param value The bytes for endorsementPlugin to set. * @return This builder for chaining. */ public Builder setEndorsementPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorsementPlugin_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object validationPlugin_ = ""; /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The validationPlugin. */ public java.lang.String getValidationPlugin() { java.lang.Object ref = validationPlugin_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); validationPlugin_ = s; return s; } else { return (java.lang.String) ref; } } /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return The bytes for validationPlugin. */ public com.google.protobuf.ByteString getValidationPluginBytes() { java.lang.Object ref = validationPlugin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); validationPlugin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @param value The validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPlugin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } validationPlugin_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @return This builder for chaining. */ public Builder clearValidationPlugin() { validationPlugin_ = getDefaultInstance().getValidationPlugin(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string validation_plugin = 5 [json_name = "validationPlugin"]; * @param value The bytes for validationPlugin to set. * @return This builder for chaining. */ public Builder setValidationPluginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); validationPlugin_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.ByteString validationParameter_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validation_parameter = 6 [json_name = "validationParameter"]; * @return The validationParameter. */ @java.lang.Override public com.google.protobuf.ByteString getValidationParameter() { return validationParameter_; } /** * bytes validation_parameter = 6 [json_name = "validationParameter"]; * @param value The validationParameter to set. * @return This builder for chaining. */ public Builder setValidationParameter(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validationParameter_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes validation_parameter = 6 [json_name = "validationParameter"]; * @return This builder for chaining. */ public Builder clearValidationParameter() { bitField0_ = (bitField0_ & ~0x00000020); validationParameter_ = getDefaultInstance().getValidationParameter(); onChanged(); return this; } private org.hyperledger.fabric.protos.peer.CollectionConfigPackage collections_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder> collectionsBuilder_; /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return Whether the collections field is set. */ public boolean hasCollections() { return ((bitField0_ & 0x00000040) != 0); } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; * @return The collections. */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackage getCollections() { if (collectionsBuilder_ == null) { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } else { return collectionsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public Builder setCollections(org.hyperledger.fabric.protos.peer.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collections_ = value; } else { collectionsBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public Builder setCollections( org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder builderForValue) { if (collectionsBuilder_ == null) { collections_ = builderForValue.build(); } else { collectionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public Builder mergeCollections(org.hyperledger.fabric.protos.peer.CollectionConfigPackage value) { if (collectionsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && collections_ != null && collections_ != org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance()) { getCollectionsBuilder().mergeFrom(value); } else { collections_ = value; } } else { collectionsBuilder_.mergeFrom(value); } if (collections_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public Builder clearCollections() { bitField0_ = (bitField0_ & ~0x00000040); collections_ = null; if (collectionsBuilder_ != null) { collectionsBuilder_.dispose(); collectionsBuilder_ = null; } onChanged(); return this; } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder getCollectionsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCollectionsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ public org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder getCollectionsOrBuilder() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilder(); } else { return collections_ == null ? org.hyperledger.fabric.protos.peer.CollectionConfigPackage.getDefaultInstance() : collections_; } } /** * .protos.CollectionConfigPackage collections = 7 [json_name = "collections"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.CollectionConfigPackageOrBuilder>( getCollections(), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private boolean initRequired_ ; /** * bool init_required = 8 [json_name = "initRequired"]; * @return The initRequired. */ @java.lang.Override public boolean getInitRequired() { return initRequired_; } /** * bool init_required = 8 [json_name = "initRequired"]; * @param value The initRequired to set. * @return This builder for chaining. */ public Builder setInitRequired(boolean value) { initRequired_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * bool init_required = 8 [json_name = "initRequired"]; * @return This builder for chaining. */ public Builder clearInitRequired() { bitField0_ = (bitField0_ & ~0x00000080); initRequired_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition) private static final org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition(); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChaincodeDefinition 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.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int CHAINCODE_DEFINITIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List chaincodeDefinitions_; /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ @java.lang.Override public java.util.List getChaincodeDefinitionsList() { return chaincodeDefinitions_; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ @java.lang.Override public java.util.List getChaincodeDefinitionsOrBuilderList() { return chaincodeDefinitions_; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ @java.lang.Override public int getChaincodeDefinitionsCount() { return chaincodeDefinitions_.size(); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getChaincodeDefinitions(int index) { return chaincodeDefinitions_.get(index); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder getChaincodeDefinitionsOrBuilder( int index) { return chaincodeDefinitions_.get(index); } 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 < chaincodeDefinitions_.size(); i++) { output.writeMessage(1, chaincodeDefinitions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodeDefinitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodeDefinitions_.get(i)); } 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.lifecycle.QueryChaincodeDefinitionsResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult other = (org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult) obj; if (!getChaincodeDefinitionsList() .equals(other.getChaincodeDefinitionsList())) 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 (getChaincodeDefinitionsCount() > 0) { hash = (37 * hash) + CHAINCODE_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getChaincodeDefinitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult 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; } /** *
   * QueryChaincodeDefinitionsResult is the message returned by
   * `_lifecycle.QueryChaincodeDefinitions`.
   * 
* * Protobuf type {@code lifecycle.QueryChaincodeDefinitionsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryChaincodeDefinitionsResult) org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitions_ = java.util.Collections.emptyList(); } else { chaincodeDefinitions_ = null; chaincodeDefinitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryChaincodeDefinitionsResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult build() { org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult result = new org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult result) { if (chaincodeDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chaincodeDefinitions_ = java.util.Collections.unmodifiableList(chaincodeDefinitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodeDefinitions_ = chaincodeDefinitions_; } else { result.chaincodeDefinitions_ = chaincodeDefinitionsBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.getDefaultInstance()) return this; if (chaincodeDefinitionsBuilder_ == null) { if (!other.chaincodeDefinitions_.isEmpty()) { if (chaincodeDefinitions_.isEmpty()) { chaincodeDefinitions_ = other.chaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.addAll(other.chaincodeDefinitions_); } onChanged(); } } else { if (!other.chaincodeDefinitions_.isEmpty()) { if (chaincodeDefinitionsBuilder_.isEmpty()) { chaincodeDefinitionsBuilder_.dispose(); chaincodeDefinitionsBuilder_ = null; chaincodeDefinitions_ = other.chaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); chaincodeDefinitionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChaincodeDefinitionsFieldBuilder() : null; } else { chaincodeDefinitionsBuilder_.addAllMessages(other.chaincodeDefinitions_); } } } 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: { org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.parser(), extensionRegistry); if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(m); } else { chaincodeDefinitionsBuilder_.addMessage(m); } break; } // case 10 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 java.util.List chaincodeDefinitions_ = java.util.Collections.emptyList(); private void ensureChaincodeDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodeDefinitions_ = new java.util.ArrayList(chaincodeDefinitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder> chaincodeDefinitionsBuilder_; /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public java.util.List getChaincodeDefinitionsList() { if (chaincodeDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodeDefinitions_); } else { return chaincodeDefinitionsBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public int getChaincodeDefinitionsCount() { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.size(); } else { return chaincodeDefinitionsBuilder_.getCount(); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition getChaincodeDefinitions(int index) { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.get(index); } else { return chaincodeDefinitionsBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder setChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.set(index, value); onChanged(); } else { chaincodeDefinitionsBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder setChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.set(index, builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder addChaincodeDefinitions(org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(value); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder addChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition value) { if (chaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(index, value); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder addChaincodeDefinitions( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder addChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder builderForValue) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.add(index, builderForValue.build()); onChanged(); } else { chaincodeDefinitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder addAllChaincodeDefinitions( java.lang.Iterable values) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chaincodeDefinitions_); onChanged(); } else { chaincodeDefinitionsBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder clearChaincodeDefinitions() { if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chaincodeDefinitionsBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public Builder removeChaincodeDefinitions(int index) { if (chaincodeDefinitionsBuilder_ == null) { ensureChaincodeDefinitionsIsMutable(); chaincodeDefinitions_.remove(index); onChanged(); } else { chaincodeDefinitionsBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder getChaincodeDefinitionsBuilder( int index) { return getChaincodeDefinitionsFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder getChaincodeDefinitionsOrBuilder( int index) { if (chaincodeDefinitionsBuilder_ == null) { return chaincodeDefinitions_.get(index); } else { return chaincodeDefinitionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public java.util.List getChaincodeDefinitionsOrBuilderList() { if (chaincodeDefinitionsBuilder_ != null) { return chaincodeDefinitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodeDefinitions_); } } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder addChaincodeDefinitionsBuilder() { return getChaincodeDefinitionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder addChaincodeDefinitionsBuilder( int index) { return getChaincodeDefinitionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition chaincode_definitions = 1 [json_name = "chaincodeDefinitions"]; */ public java.util.List getChaincodeDefinitionsBuilderList() { return getChaincodeDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder> getChaincodeDefinitionsFieldBuilder() { if (chaincodeDefinitionsBuilder_ == null) { chaincodeDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult.ChaincodeDefinitionOrBuilder>( chaincodeDefinitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); chaincodeDefinitions_ = null; } return chaincodeDefinitionsBuilder_; } // @@protoc_insertion_point(builder_scope:lifecycle.QueryChaincodeDefinitionsResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryChaincodeDefinitionsResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryChaincodeDefinitionsResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryChaincodeDefinitionsResult 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.lifecycle.QueryChaincodeDefinitionsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy