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

org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult 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;

/**
 * 
 * QueryApprovedChaincodeDefinitionsResult is the message returned by
 * `_lifecycle.QueryApprovedChaincodeDefinitions`.
 * 
* * Protobuf type {@code lifecycle.QueryApprovedChaincodeDefinitionsResult} */ public final class QueryApprovedChaincodeDefinitionsResult extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.QueryApprovedChaincodeDefinitionsResult) QueryApprovedChaincodeDefinitionsResultOrBuilder { 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= */ "", QueryApprovedChaincodeDefinitionsResult.class.getName()); } // Use QueryApprovedChaincodeDefinitionsResult.newBuilder() to construct. private QueryApprovedChaincodeDefinitionsResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private QueryApprovedChaincodeDefinitionsResult() { approvedChaincodeDefinitions_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.Builder.class); } public interface ApprovedChaincodeDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) 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(); /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return Whether the source field is set. */ boolean hasSource(); /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return The source. */ org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource getSource(); /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder(); } /** * Protobuf type {@code lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition} */ public static final class ApprovedChaincodeDefinition extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) ApprovedChaincodeDefinitionOrBuilder { 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= */ "", ApprovedChaincodeDefinition.class.getName()); } // Use ApprovedChaincodeDefinition.newBuilder() to construct. private ApprovedChaincodeDefinition(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ApprovedChaincodeDefinition() { 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_QueryApprovedChaincodeDefinitionsResult_ApprovedChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_ApprovedChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.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_; } public static final int SOURCE_FIELD_NUMBER = 9; private org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource source_; /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return The source. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource getSource() { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } 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_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getSource()); } 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_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getSource()); } 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition other = (org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) 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 (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) 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()); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_ApprovedChaincodeDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_ApprovedChaincodeDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.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(); getSourceFieldBuilder(); } } @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; source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_ApprovedChaincodeDefinition_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition build() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition result = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition 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_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.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()); } if (other.hasSource()) { mergeSource(other.getSource()); } 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 case 74: { input.readMessage( getSourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 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; } private org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource source_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder> sourceBuilder_; /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000100) != 0); } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; * @return The source. */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public Builder setSource(org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public Builder setSource( org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public Builder mergeSource(org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && source_ != null && source_ != org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance()) { getSourceBuilder().mergeFrom(value); } else { source_ = value; } } else { sourceBuilder_.mergeFrom(value); } if (source_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000100); source_ = null; if (sourceBuilder_ != null) { sourceBuilder_.dispose(); sourceBuilder_ = null; } onChanged(); return this; } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder getSourceBuilder() { bitField0_ |= 0x00000100; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.getDefaultInstance() : source_; } } /** * .lifecycle.ChaincodeSource source = 9 [json_name = "source"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSource.Builder, org.hyperledger.fabric.protos.peer.lifecycle.ChaincodeSourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } // @@protoc_insertion_point(builder_scope:lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) } // @@protoc_insertion_point(class_scope:lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition) private static final org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition(); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApprovedChaincodeDefinition 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int APPROVED_CHAINCODE_DEFINITIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List approvedChaincodeDefinitions_; /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ @java.lang.Override public java.util.List getApprovedChaincodeDefinitionsList() { return approvedChaincodeDefinitions_; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ @java.lang.Override public java.util.List getApprovedChaincodeDefinitionsOrBuilderList() { return approvedChaincodeDefinitions_; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ @java.lang.Override public int getApprovedChaincodeDefinitionsCount() { return approvedChaincodeDefinitions_.size(); } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition getApprovedChaincodeDefinitions(int index) { return approvedChaincodeDefinitions_.get(index); } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder getApprovedChaincodeDefinitionsOrBuilder( int index) { return approvedChaincodeDefinitions_.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 < approvedChaincodeDefinitions_.size(); i++) { output.writeMessage(1, approvedChaincodeDefinitions_.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 < approvedChaincodeDefinitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, approvedChaincodeDefinitions_.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.QueryApprovedChaincodeDefinitionsResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult other = (org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult) obj; if (!getApprovedChaincodeDefinitionsList() .equals(other.getApprovedChaincodeDefinitionsList())) 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 (getApprovedChaincodeDefinitionsCount() > 0) { hash = (37 * hash) + APPROVED_CHAINCODE_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getApprovedChaincodeDefinitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult 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; } /** *
   * QueryApprovedChaincodeDefinitionsResult is the message returned by
   * `_lifecycle.QueryApprovedChaincodeDefinitions`.
   * 
* * Protobuf type {@code lifecycle.QueryApprovedChaincodeDefinitionsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:lifecycle.QueryApprovedChaincodeDefinitionsResult) org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.lifecycle.LifecycleProto.internal_static_lifecycle_QueryApprovedChaincodeDefinitionsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.class, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (approvedChaincodeDefinitionsBuilder_ == null) { approvedChaincodeDefinitions_ = java.util.Collections.emptyList(); } else { approvedChaincodeDefinitions_ = null; approvedChaincodeDefinitionsBuilder_.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_QueryApprovedChaincodeDefinitionsResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult build() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult buildPartial() { org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult result = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult result) { if (approvedChaincodeDefinitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { approvedChaincodeDefinitions_ = java.util.Collections.unmodifiableList(approvedChaincodeDefinitions_); bitField0_ = (bitField0_ & ~0x00000001); } result.approvedChaincodeDefinitions_ = approvedChaincodeDefinitions_; } else { result.approvedChaincodeDefinitions_ = approvedChaincodeDefinitionsBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult) { return mergeFrom((org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult other) { if (other == org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.getDefaultInstance()) return this; if (approvedChaincodeDefinitionsBuilder_ == null) { if (!other.approvedChaincodeDefinitions_.isEmpty()) { if (approvedChaincodeDefinitions_.isEmpty()) { approvedChaincodeDefinitions_ = other.approvedChaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.addAll(other.approvedChaincodeDefinitions_); } onChanged(); } } else { if (!other.approvedChaincodeDefinitions_.isEmpty()) { if (approvedChaincodeDefinitionsBuilder_.isEmpty()) { approvedChaincodeDefinitionsBuilder_.dispose(); approvedChaincodeDefinitionsBuilder_ = null; approvedChaincodeDefinitions_ = other.approvedChaincodeDefinitions_; bitField0_ = (bitField0_ & ~0x00000001); approvedChaincodeDefinitionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getApprovedChaincodeDefinitionsFieldBuilder() : null; } else { approvedChaincodeDefinitionsBuilder_.addAllMessages(other.approvedChaincodeDefinitions_); } } } 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.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition m = input.readMessage( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.parser(), extensionRegistry); if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.add(m); } else { approvedChaincodeDefinitionsBuilder_.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 approvedChaincodeDefinitions_ = java.util.Collections.emptyList(); private void ensureApprovedChaincodeDefinitionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { approvedChaincodeDefinitions_ = new java.util.ArrayList(approvedChaincodeDefinitions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder> approvedChaincodeDefinitionsBuilder_; /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public java.util.List getApprovedChaincodeDefinitionsList() { if (approvedChaincodeDefinitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(approvedChaincodeDefinitions_); } else { return approvedChaincodeDefinitionsBuilder_.getMessageList(); } } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public int getApprovedChaincodeDefinitionsCount() { if (approvedChaincodeDefinitionsBuilder_ == null) { return approvedChaincodeDefinitions_.size(); } else { return approvedChaincodeDefinitionsBuilder_.getCount(); } } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition getApprovedChaincodeDefinitions(int index) { if (approvedChaincodeDefinitionsBuilder_ == null) { return approvedChaincodeDefinitions_.get(index); } else { return approvedChaincodeDefinitionsBuilder_.getMessage(index); } } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder setApprovedChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition value) { if (approvedChaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.set(index, value); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.setMessage(index, value); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder setApprovedChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder builderForValue) { if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.set(index, builderForValue.build()); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder addApprovedChaincodeDefinitions(org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition value) { if (approvedChaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.add(value); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.addMessage(value); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder addApprovedChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition value) { if (approvedChaincodeDefinitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.add(index, value); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.addMessage(index, value); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder addApprovedChaincodeDefinitions( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder builderForValue) { if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.add(builderForValue.build()); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder addApprovedChaincodeDefinitions( int index, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder builderForValue) { if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.add(index, builderForValue.build()); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder addAllApprovedChaincodeDefinitions( java.lang.Iterable values) { if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, approvedChaincodeDefinitions_); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.addAllMessages(values); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder clearApprovedChaincodeDefinitions() { if (approvedChaincodeDefinitionsBuilder_ == null) { approvedChaincodeDefinitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.clear(); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public Builder removeApprovedChaincodeDefinitions(int index) { if (approvedChaincodeDefinitionsBuilder_ == null) { ensureApprovedChaincodeDefinitionsIsMutable(); approvedChaincodeDefinitions_.remove(index); onChanged(); } else { approvedChaincodeDefinitionsBuilder_.remove(index); } return this; } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder getApprovedChaincodeDefinitionsBuilder( int index) { return getApprovedChaincodeDefinitionsFieldBuilder().getBuilder(index); } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder getApprovedChaincodeDefinitionsOrBuilder( int index) { if (approvedChaincodeDefinitionsBuilder_ == null) { return approvedChaincodeDefinitions_.get(index); } else { return approvedChaincodeDefinitionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public java.util.List getApprovedChaincodeDefinitionsOrBuilderList() { if (approvedChaincodeDefinitionsBuilder_ != null) { return approvedChaincodeDefinitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(approvedChaincodeDefinitions_); } } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder addApprovedChaincodeDefinitionsBuilder() { return getApprovedChaincodeDefinitionsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder addApprovedChaincodeDefinitionsBuilder( int index) { return getApprovedChaincodeDefinitionsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.getDefaultInstance()); } /** * repeated .lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition approved_chaincode_definitions = 1 [json_name = "approvedChaincodeDefinitions"]; */ public java.util.List getApprovedChaincodeDefinitionsBuilderList() { return getApprovedChaincodeDefinitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder> getApprovedChaincodeDefinitionsFieldBuilder() { if (approvedChaincodeDefinitionsBuilder_ == null) { approvedChaincodeDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinition.Builder, org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult.ApprovedChaincodeDefinitionOrBuilder>( approvedChaincodeDefinitions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); approvedChaincodeDefinitions_ = null; } return approvedChaincodeDefinitionsBuilder_; } // @@protoc_insertion_point(builder_scope:lifecycle.QueryApprovedChaincodeDefinitionsResult) } // @@protoc_insertion_point(class_scope:lifecycle.QueryApprovedChaincodeDefinitionsResult) private static final org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult(); } public static org.hyperledger.fabric.protos.peer.lifecycle.QueryApprovedChaincodeDefinitionsResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryApprovedChaincodeDefinitionsResult 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.QueryApprovedChaincodeDefinitionsResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy