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

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

Go to download

Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.

There is a newer version: 2.2.26
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: peer/collection.proto

package org.hyperledger.fabric.protos.peer;

public final class Collection {
  private Collection() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface CollectionConfigPackageOrBuilder extends
      // @@protoc_insertion_point(interface_extends:protos.CollectionConfigPackage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .protos.CollectionConfig config = 1;
     */
    java.util.List 
        getConfigList();
    /**
     * repeated .protos.CollectionConfig config = 1;
     */
    org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getConfig(int index);
    /**
     * repeated .protos.CollectionConfig config = 1;
     */
    int getConfigCount();
    /**
     * repeated .protos.CollectionConfig config = 1;
     */
    java.util.List 
        getConfigOrBuilderList();
    /**
     * repeated .protos.CollectionConfig config = 1;
     */
    org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder getConfigOrBuilder(
        int index);
  }
  /**
   * 
   * CollectionConfigPackage represents an array of CollectionConfig
   * messages; the extra struct is required because repeated oneof is
   * forbidden by the protobuf syntax
   * 
* * Protobuf type {@code protos.CollectionConfigPackage} */ public static final class CollectionConfigPackage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.CollectionConfigPackage) CollectionConfigPackageOrBuilder { private static final long serialVersionUID = 0L; // Use CollectionConfigPackage.newBuilder() to construct. private CollectionConfigPackage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionConfigPackage() { config_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CollectionConfigPackage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { config_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } config_.add( input.readMessage(org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { config_ = java.util.Collections.unmodifiableList(config_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfigPackage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfigPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.class, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private java.util.List config_; /** * repeated .protos.CollectionConfig config = 1; */ public java.util.List getConfigList() { return config_; } /** * repeated .protos.CollectionConfig config = 1; */ public java.util.List getConfigOrBuilderList() { return config_; } /** * repeated .protos.CollectionConfig config = 1; */ public int getConfigCount() { return config_.size(); } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getConfig(int index) { return config_.get(index); } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder getConfigOrBuilder( int index) { return config_.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 < config_.size(); i++) { output.writeMessage(1, config_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < config_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, config_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage other = (org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage) obj; if (!getConfigList() .equals(other.getConfigList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConfigCount() > 0) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfigList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage 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.Collection.CollectionConfigPackage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage 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.Collection.CollectionConfigPackage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage 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.Collection.CollectionConfigPackage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * CollectionConfigPackage represents an array of CollectionConfig
     * messages; the extra struct is required because repeated oneof is
     * forbidden by the protobuf syntax
     * 
* * Protobuf type {@code protos.CollectionConfigPackage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.CollectionConfigPackage) org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfigPackage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfigPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.class, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (configBuilder_ == null) { config_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { configBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfigPackage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage build() { org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage buildPartial() { org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage result = new org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage(this); int from_bitField0_ = bitField0_; if (configBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { config_ = java.util.Collections.unmodifiableList(config_); bitField0_ = (bitField0_ & ~0x00000001); } result.config_ = config_; } else { result.config_ = configBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage) { return mergeFrom((org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage other) { if (other == org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance()) return this; if (configBuilder_ == null) { if (!other.config_.isEmpty()) { if (config_.isEmpty()) { config_ = other.config_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConfigIsMutable(); config_.addAll(other.config_); } onChanged(); } } else { if (!other.config_.isEmpty()) { if (configBuilder_.isEmpty()) { configBuilder_.dispose(); configBuilder_ = null; config_ = other.config_; bitField0_ = (bitField0_ & ~0x00000001); configBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConfigFieldBuilder() : null; } else { configBuilder_.addAllMessages(other.config_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List config_ = java.util.Collections.emptyList(); private void ensureConfigIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { config_ = new java.util.ArrayList(config_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder> configBuilder_; /** * repeated .protos.CollectionConfig config = 1; */ public java.util.List getConfigList() { if (configBuilder_ == null) { return java.util.Collections.unmodifiableList(config_); } else { return configBuilder_.getMessageList(); } } /** * repeated .protos.CollectionConfig config = 1; */ public int getConfigCount() { if (configBuilder_ == null) { return config_.size(); } else { return configBuilder_.getCount(); } } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getConfig(int index) { if (configBuilder_ == null) { return config_.get(index); } else { return configBuilder_.getMessage(index); } } /** * repeated .protos.CollectionConfig config = 1; */ public Builder setConfig( int index, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigIsMutable(); config_.set(index, value); onChanged(); } else { configBuilder_.setMessage(index, value); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder setConfig( int index, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.set(index, builderForValue.build()); onChanged(); } else { configBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder addConfig(org.hyperledger.fabric.protos.peer.Collection.CollectionConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigIsMutable(); config_.add(value); onChanged(); } else { configBuilder_.addMessage(value); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder addConfig( int index, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigIsMutable(); config_.add(index, value); onChanged(); } else { configBuilder_.addMessage(index, value); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder addConfig( org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.add(builderForValue.build()); onChanged(); } else { configBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder addConfig( int index, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.add(index, builderForValue.build()); onChanged(); } else { configBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder addAllConfig( java.lang.Iterable values) { if (configBuilder_ == null) { ensureConfigIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, config_); onChanged(); } else { configBuilder_.addAllMessages(values); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { configBuilder_.clear(); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public Builder removeConfig(int index) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.remove(index); onChanged(); } else { configBuilder_.remove(index); } return this; } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder getConfigBuilder( int index) { return getConfigFieldBuilder().getBuilder(index); } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder getConfigOrBuilder( int index) { if (configBuilder_ == null) { return config_.get(index); } else { return configBuilder_.getMessageOrBuilder(index); } } /** * repeated .protos.CollectionConfig config = 1; */ public java.util.List getConfigOrBuilderList() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(config_); } } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder addConfigBuilder() { return getConfigFieldBuilder().addBuilder( org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.getDefaultInstance()); } /** * repeated .protos.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder addConfigBuilder( int index) { return getConfigFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.getDefaultInstance()); } /** * repeated .protos.CollectionConfig config = 1; */ public java.util.List getConfigBuilderList() { return getConfigFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder>( config_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.CollectionConfigPackage) } // @@protoc_insertion_point(class_scope:protos.CollectionConfigPackage) private static final org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage(); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CollectionConfigPackage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CollectionConfigPackage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.CollectionConfig) com.google.protobuf.MessageOrBuilder { /** * .protos.StaticCollectionConfig static_collection_config = 1; */ boolean hasStaticCollectionConfig(); /** * .protos.StaticCollectionConfig static_collection_config = 1; */ org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getStaticCollectionConfig(); /** * .protos.StaticCollectionConfig static_collection_config = 1; */ org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder(); public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.PayloadCase getPayloadCase(); } /** *
   * CollectionConfig defines the configuration of a collection object;
   * it currently contains a single, static type.
   * Dynamic collections are deferred.
   * 
* * Protobuf type {@code protos.CollectionConfig} */ public static final class CollectionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.CollectionConfig) CollectionConfigOrBuilder { private static final long serialVersionUID = 0L; // Use CollectionConfig.newBuilder() to construct. private CollectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionConfig() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CollectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder subBuilder = null; if (payloadCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_).toBuilder(); } payload_ = input.readMessage(org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_); payload_ = subBuilder.buildPartial(); } payloadCase_ = 1; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.class, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite { STATIC_COLLECTION_CONFIG(1), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 1: return STATIC_COLLECTION_CONFIG; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int STATIC_COLLECTION_CONFIG_FIELD_NUMBER = 1; /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public boolean hasStaticCollectionConfig() { return payloadCase_ == 1; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getStaticCollectionConfig() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } 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 (payloadCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payloadCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Collection.CollectionConfig other = (org.hyperledger.fabric.protos.peer.Collection.CollectionConfig) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: if (!getStaticCollectionConfig() .equals(other.getStaticCollectionConfig())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (payloadCase_) { case 1: hash = (37 * hash) + STATIC_COLLECTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStaticCollectionConfig().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig 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.Collection.CollectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig 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.Collection.CollectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig 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.Collection.CollectionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Collection.CollectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * CollectionConfig defines the configuration of a collection object;
     * it currently contains a single, static type.
     * Dynamic collections are deferred.
     * 
* * Protobuf type {@code protos.CollectionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.CollectionConfig) org.hyperledger.fabric.protos.peer.Collection.CollectionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.class, org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionConfig_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig build() { org.hyperledger.fabric.protos.peer.Collection.CollectionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig buildPartial() { org.hyperledger.fabric.protos.peer.Collection.CollectionConfig result = new org.hyperledger.fabric.protos.peer.Collection.CollectionConfig(this); if (payloadCase_ == 1) { if (staticCollectionConfigBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = staticCollectionConfigBuilder_.build(); } } result.payloadCase_ = payloadCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionConfig) { return mergeFrom((org.hyperledger.fabric.protos.peer.Collection.CollectionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Collection.CollectionConfig other) { if (other == org.hyperledger.fabric.protos.peer.Collection.CollectionConfig.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case STATIC_COLLECTION_CONFIG: { mergeStaticCollectionConfig(other.getStaticCollectionConfig()); break; } case PAYLOAD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Collection.CollectionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Collection.CollectionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder> staticCollectionConfigBuilder_; /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public boolean hasStaticCollectionConfig() { return payloadCase_ == 1; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getStaticCollectionConfig() { if (staticCollectionConfigBuilder_ == null) { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } else { if (payloadCase_ == 1) { return staticCollectionConfigBuilder_.getMessage(); } return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public Builder setStaticCollectionConfig(org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig value) { if (staticCollectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { staticCollectionConfigBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public Builder setStaticCollectionConfig( org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder builderForValue) { if (staticCollectionConfigBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { staticCollectionConfigBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; return this; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public Builder mergeStaticCollectionConfig(org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig value) { if (staticCollectionConfigBuilder_ == null) { if (payloadCase_ == 1 && payload_ != org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.newBuilder((org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { staticCollectionConfigBuilder_.mergeFrom(value); } staticCollectionConfigBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public Builder clearStaticCollectionConfig() { if (staticCollectionConfigBuilder_ == null) { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; } staticCollectionConfigBuilder_.clear(); } return this; } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder getStaticCollectionConfigBuilder() { return getStaticCollectionConfigFieldBuilder().getBuilder(); } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder() { if ((payloadCase_ == 1) && (staticCollectionConfigBuilder_ != null)) { return staticCollectionConfigBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } } /** * .protos.StaticCollectionConfig static_collection_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder> getStaticCollectionConfigFieldBuilder() { if (staticCollectionConfigBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } staticCollectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder>( (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged();; return staticCollectionConfigBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.CollectionConfig) } // @@protoc_insertion_point(class_scope:protos.CollectionConfig) private static final org.hyperledger.fabric.protos.peer.Collection.CollectionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Collection.CollectionConfig(); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CollectionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CollectionConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StaticCollectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.StaticCollectionConfig) com.google.protobuf.MessageOrBuilder { /** *
     * the name of the collection inside the denoted chaincode
     * 
* * string name = 1; */ java.lang.String getName(); /** *
     * the name of the collection inside the denoted chaincode
     * 
* * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ boolean hasMemberOrgsPolicy(); /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getMemberOrgsPolicy(); /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder(); /** *
     * The minimum number of peers private data will be sent to upon
     * endorsement. The endorsement would fail if dissemination to at least
     * this number of peers is not achieved.
     * 
* * int32 required_peer_count = 3; */ int getRequiredPeerCount(); /** *
     * The maximum number of peers that private data will be sent to
     * upon endorsement. This number has to be bigger than required_peer_count.
     * 
* * int32 maximum_peer_count = 4; */ int getMaximumPeerCount(); /** *
     * The number of blocks after which the collection data expires.
     * For instance if the value is set to 10, a key last modified by block number 100
     * will be purged at block number 111. A zero value is treated same as MaxUint64
     * 
* * uint64 block_to_live = 5; */ long getBlockToLive(); /** *
     * The member only read access denotes whether only collection member clients
     * can read the private data (if set to true), or even non members can
     * read the data (if set to false, for example if you want to implement more granular
     * access logic in the chaincode)
     * 
* * bool member_only_read = 6; */ boolean getMemberOnlyRead(); /** *
     * The member only write access denotes whether only collection member clients
     * can write the private data (if set to true), or even non members can
     * write the data (if set to false, for example if you want to implement more granular
     * access logic in the chaincode)
     * 
* * bool member_only_write = 7; */ boolean getMemberOnlyWrite(); /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ boolean hasEndorsementPolicy(); /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy getEndorsementPolicy(); /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder(); } /** *
   * StaticCollectionConfig constitutes the configuration parameters of a
   * static collection object. Static collections are collections that are
   * known at chaincode instantiation time, and that cannot be changed.
   * Dynamic collections are deferred.
   * 
* * Protobuf type {@code protos.StaticCollectionConfig} */ public static final class StaticCollectionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.StaticCollectionConfig) StaticCollectionConfigOrBuilder { private static final long serialVersionUID = 0L; // Use StaticCollectionConfig.newBuilder() to construct. private StaticCollectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StaticCollectionConfig() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StaticCollectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder subBuilder = null; if (memberOrgsPolicy_ != null) { subBuilder = memberOrgsPolicy_.toBuilder(); } memberOrgsPolicy_ = input.readMessage(org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(memberOrgsPolicy_); memberOrgsPolicy_ = subBuilder.buildPartial(); } break; } case 24: { requiredPeerCount_ = input.readInt32(); break; } case 32: { maximumPeerCount_ = input.readInt32(); break; } case 40: { blockToLive_ = input.readUInt64(); break; } case 48: { memberOnlyRead_ = input.readBool(); break; } case 56: { memberOnlyWrite_ = input.readBool(); break; } case 66: { org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder subBuilder = null; if (endorsementPolicy_ != null) { subBuilder = endorsementPolicy_.toBuilder(); } endorsementPolicy_ = input.readMessage(org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(endorsementPolicy_); endorsementPolicy_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_StaticCollectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_StaticCollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.class, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * the name of the collection inside the denoted chaincode
     * 
* * string name = 1; */ 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; } } /** *
     * the name of the collection inside the denoted chaincode
     * 
* * string name = 1; */ 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 MEMBER_ORGS_POLICY_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig memberOrgsPolicy_; /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public boolean hasMemberOrgsPolicy() { return memberOrgsPolicy_ != null; } /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getMemberOrgsPolicy() { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_; } /** *
     * a reference to a policy residing / managed in the config block
     * to define which orgs have access to this collection’s private data
     * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder() { return getMemberOrgsPolicy(); } public static final int REQUIRED_PEER_COUNT_FIELD_NUMBER = 3; private int requiredPeerCount_; /** *
     * The minimum number of peers private data will be sent to upon
     * endorsement. The endorsement would fail if dissemination to at least
     * this number of peers is not achieved.
     * 
* * int32 required_peer_count = 3; */ public int getRequiredPeerCount() { return requiredPeerCount_; } public static final int MAXIMUM_PEER_COUNT_FIELD_NUMBER = 4; private int maximumPeerCount_; /** *
     * The maximum number of peers that private data will be sent to
     * upon endorsement. This number has to be bigger than required_peer_count.
     * 
* * int32 maximum_peer_count = 4; */ public int getMaximumPeerCount() { return maximumPeerCount_; } public static final int BLOCK_TO_LIVE_FIELD_NUMBER = 5; private long blockToLive_; /** *
     * The number of blocks after which the collection data expires.
     * For instance if the value is set to 10, a key last modified by block number 100
     * will be purged at block number 111. A zero value is treated same as MaxUint64
     * 
* * uint64 block_to_live = 5; */ public long getBlockToLive() { return blockToLive_; } public static final int MEMBER_ONLY_READ_FIELD_NUMBER = 6; private boolean memberOnlyRead_; /** *
     * The member only read access denotes whether only collection member clients
     * can read the private data (if set to true), or even non members can
     * read the data (if set to false, for example if you want to implement more granular
     * access logic in the chaincode)
     * 
* * bool member_only_read = 6; */ public boolean getMemberOnlyRead() { return memberOnlyRead_; } public static final int MEMBER_ONLY_WRITE_FIELD_NUMBER = 7; private boolean memberOnlyWrite_; /** *
     * The member only write access denotes whether only collection member clients
     * can write the private data (if set to true), or even non members can
     * write the data (if set to false, for example if you want to implement more granular
     * access logic in the chaincode)
     * 
* * bool member_only_write = 7; */ public boolean getMemberOnlyWrite() { return memberOnlyWrite_; } public static final int ENDORSEMENT_POLICY_FIELD_NUMBER = 8; private org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy endorsementPolicy_; /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public boolean hasEndorsementPolicy() { return endorsementPolicy_ != null; } /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy getEndorsementPolicy() { return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_; } /** *
     * a reference to a policy residing / managed in the config block
     * to define the endorsement policy for this collection
     * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder() { return getEndorsementPolicy(); } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (memberOrgsPolicy_ != null) { output.writeMessage(2, getMemberOrgsPolicy()); } if (requiredPeerCount_ != 0) { output.writeInt32(3, requiredPeerCount_); } if (maximumPeerCount_ != 0) { output.writeInt32(4, maximumPeerCount_); } if (blockToLive_ != 0L) { output.writeUInt64(5, blockToLive_); } if (memberOnlyRead_ != false) { output.writeBool(6, memberOnlyRead_); } if (memberOnlyWrite_ != false) { output.writeBool(7, memberOnlyWrite_); } if (endorsementPolicy_ != null) { output.writeMessage(8, getEndorsementPolicy()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (memberOrgsPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMemberOrgsPolicy()); } if (requiredPeerCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, requiredPeerCount_); } if (maximumPeerCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, maximumPeerCount_); } if (blockToLive_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, blockToLive_); } if (memberOnlyRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, memberOnlyRead_); } if (memberOnlyWrite_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, memberOnlyWrite_); } if (endorsementPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getEndorsementPolicy()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig other = (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) obj; if (!getName() .equals(other.getName())) return false; if (hasMemberOrgsPolicy() != other.hasMemberOrgsPolicy()) return false; if (hasMemberOrgsPolicy()) { if (!getMemberOrgsPolicy() .equals(other.getMemberOrgsPolicy())) return false; } if (getRequiredPeerCount() != other.getRequiredPeerCount()) return false; if (getMaximumPeerCount() != other.getMaximumPeerCount()) return false; if (getBlockToLive() != other.getBlockToLive()) return false; if (getMemberOnlyRead() != other.getMemberOnlyRead()) return false; if (getMemberOnlyWrite() != other.getMemberOnlyWrite()) return false; if (hasEndorsementPolicy() != other.hasEndorsementPolicy()) return false; if (hasEndorsementPolicy()) { if (!getEndorsementPolicy() .equals(other.getEndorsementPolicy())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasMemberOrgsPolicy()) { hash = (37 * hash) + MEMBER_ORGS_POLICY_FIELD_NUMBER; hash = (53 * hash) + getMemberOrgsPolicy().hashCode(); } hash = (37 * hash) + REQUIRED_PEER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRequiredPeerCount(); hash = (37 * hash) + MAXIMUM_PEER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaximumPeerCount(); hash = (37 * hash) + BLOCK_TO_LIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockToLive()); hash = (37 * hash) + MEMBER_ONLY_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMemberOnlyRead()); hash = (37 * hash) + MEMBER_ONLY_WRITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMemberOnlyWrite()); if (hasEndorsementPolicy()) { hash = (37 * hash) + ENDORSEMENT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getEndorsementPolicy().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig 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.Collection.StaticCollectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig 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.Collection.StaticCollectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig 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.Collection.StaticCollectionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StaticCollectionConfig constitutes the configuration parameters of a
     * static collection object. Static collections are collections that are
     * known at chaincode instantiation time, and that cannot be changed.
     * Dynamic collections are deferred.
     * 
* * Protobuf type {@code protos.StaticCollectionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.StaticCollectionConfig) org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_StaticCollectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_StaticCollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.class, org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicy_ = null; } else { memberOrgsPolicy_ = null; memberOrgsPolicyBuilder_ = null; } requiredPeerCount_ = 0; maximumPeerCount_ = 0; blockToLive_ = 0L; memberOnlyRead_ = false; memberOnlyWrite_ = false; if (endorsementPolicyBuilder_ == null) { endorsementPolicy_ = null; } else { endorsementPolicy_ = null; endorsementPolicyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_StaticCollectionConfig_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig build() { org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig buildPartial() { org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig result = new org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig(this); result.name_ = name_; if (memberOrgsPolicyBuilder_ == null) { result.memberOrgsPolicy_ = memberOrgsPolicy_; } else { result.memberOrgsPolicy_ = memberOrgsPolicyBuilder_.build(); } result.requiredPeerCount_ = requiredPeerCount_; result.maximumPeerCount_ = maximumPeerCount_; result.blockToLive_ = blockToLive_; result.memberOnlyRead_ = memberOnlyRead_; result.memberOnlyWrite_ = memberOnlyWrite_; if (endorsementPolicyBuilder_ == null) { result.endorsementPolicy_ = endorsementPolicy_; } else { result.endorsementPolicy_ = endorsementPolicyBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) { return mergeFrom((org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig other) { if (other == org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasMemberOrgsPolicy()) { mergeMemberOrgsPolicy(other.getMemberOrgsPolicy()); } if (other.getRequiredPeerCount() != 0) { setRequiredPeerCount(other.getRequiredPeerCount()); } if (other.getMaximumPeerCount() != 0) { setMaximumPeerCount(other.getMaximumPeerCount()); } if (other.getBlockToLive() != 0L) { setBlockToLive(other.getBlockToLive()); } if (other.getMemberOnlyRead() != false) { setMemberOnlyRead(other.getMemberOnlyRead()); } if (other.getMemberOnlyWrite() != false) { setMemberOnlyWrite(other.getMemberOnlyWrite()); } if (other.hasEndorsementPolicy()) { mergeEndorsementPolicy(other.getEndorsementPolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * the name of the collection inside the denoted chaincode
       * 
* * string name = 1; */ 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; } } /** *
       * the name of the collection inside the denoted chaincode
       * 
* * string name = 1; */ 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; } } /** *
       * the name of the collection inside the denoted chaincode
       * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * the name of the collection inside the denoted chaincode
       * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * the name of the collection inside the denoted chaincode
       * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig memberOrgsPolicy_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder> memberOrgsPolicyBuilder_; /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public boolean hasMemberOrgsPolicy() { return memberOrgsPolicyBuilder_ != null || memberOrgsPolicy_ != null; } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getMemberOrgsPolicy() { if (memberOrgsPolicyBuilder_ == null) { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_; } else { return memberOrgsPolicyBuilder_.getMessage(); } } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder setMemberOrgsPolicy(org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig value) { if (memberOrgsPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memberOrgsPolicy_ = value; onChanged(); } else { memberOrgsPolicyBuilder_.setMessage(value); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder setMemberOrgsPolicy( org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder builderForValue) { if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicy_ = builderForValue.build(); onChanged(); } else { memberOrgsPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder mergeMemberOrgsPolicy(org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig value) { if (memberOrgsPolicyBuilder_ == null) { if (memberOrgsPolicy_ != null) { memberOrgsPolicy_ = org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.newBuilder(memberOrgsPolicy_).mergeFrom(value).buildPartial(); } else { memberOrgsPolicy_ = value; } onChanged(); } else { memberOrgsPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder clearMemberOrgsPolicy() { if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicy_ = null; onChanged(); } else { memberOrgsPolicy_ = null; memberOrgsPolicyBuilder_ = null; } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder getMemberOrgsPolicyBuilder() { onChanged(); return getMemberOrgsPolicyFieldBuilder().getBuilder(); } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder() { if (memberOrgsPolicyBuilder_ != null) { return memberOrgsPolicyBuilder_.getMessageOrBuilder(); } else { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.getDefaultInstance() : memberOrgsPolicy_; } } /** *
       * a reference to a policy residing / managed in the config block
       * to define which orgs have access to this collection’s private data
       * 
* * .protos.CollectionPolicyConfig member_orgs_policy = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder> getMemberOrgsPolicyFieldBuilder() { if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder>( getMemberOrgsPolicy(), getParentForChildren(), isClean()); memberOrgsPolicy_ = null; } return memberOrgsPolicyBuilder_; } private int requiredPeerCount_ ; /** *
       * The minimum number of peers private data will be sent to upon
       * endorsement. The endorsement would fail if dissemination to at least
       * this number of peers is not achieved.
       * 
* * int32 required_peer_count = 3; */ public int getRequiredPeerCount() { return requiredPeerCount_; } /** *
       * The minimum number of peers private data will be sent to upon
       * endorsement. The endorsement would fail if dissemination to at least
       * this number of peers is not achieved.
       * 
* * int32 required_peer_count = 3; */ public Builder setRequiredPeerCount(int value) { requiredPeerCount_ = value; onChanged(); return this; } /** *
       * The minimum number of peers private data will be sent to upon
       * endorsement. The endorsement would fail if dissemination to at least
       * this number of peers is not achieved.
       * 
* * int32 required_peer_count = 3; */ public Builder clearRequiredPeerCount() { requiredPeerCount_ = 0; onChanged(); return this; } private int maximumPeerCount_ ; /** *
       * The maximum number of peers that private data will be sent to
       * upon endorsement. This number has to be bigger than required_peer_count.
       * 
* * int32 maximum_peer_count = 4; */ public int getMaximumPeerCount() { return maximumPeerCount_; } /** *
       * The maximum number of peers that private data will be sent to
       * upon endorsement. This number has to be bigger than required_peer_count.
       * 
* * int32 maximum_peer_count = 4; */ public Builder setMaximumPeerCount(int value) { maximumPeerCount_ = value; onChanged(); return this; } /** *
       * The maximum number of peers that private data will be sent to
       * upon endorsement. This number has to be bigger than required_peer_count.
       * 
* * int32 maximum_peer_count = 4; */ public Builder clearMaximumPeerCount() { maximumPeerCount_ = 0; onChanged(); return this; } private long blockToLive_ ; /** *
       * The number of blocks after which the collection data expires.
       * For instance if the value is set to 10, a key last modified by block number 100
       * will be purged at block number 111. A zero value is treated same as MaxUint64
       * 
* * uint64 block_to_live = 5; */ public long getBlockToLive() { return blockToLive_; } /** *
       * The number of blocks after which the collection data expires.
       * For instance if the value is set to 10, a key last modified by block number 100
       * will be purged at block number 111. A zero value is treated same as MaxUint64
       * 
* * uint64 block_to_live = 5; */ public Builder setBlockToLive(long value) { blockToLive_ = value; onChanged(); return this; } /** *
       * The number of blocks after which the collection data expires.
       * For instance if the value is set to 10, a key last modified by block number 100
       * will be purged at block number 111. A zero value is treated same as MaxUint64
       * 
* * uint64 block_to_live = 5; */ public Builder clearBlockToLive() { blockToLive_ = 0L; onChanged(); return this; } private boolean memberOnlyRead_ ; /** *
       * The member only read access denotes whether only collection member clients
       * can read the private data (if set to true), or even non members can
       * read the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_read = 6; */ public boolean getMemberOnlyRead() { return memberOnlyRead_; } /** *
       * The member only read access denotes whether only collection member clients
       * can read the private data (if set to true), or even non members can
       * read the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_read = 6; */ public Builder setMemberOnlyRead(boolean value) { memberOnlyRead_ = value; onChanged(); return this; } /** *
       * The member only read access denotes whether only collection member clients
       * can read the private data (if set to true), or even non members can
       * read the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_read = 6; */ public Builder clearMemberOnlyRead() { memberOnlyRead_ = false; onChanged(); return this; } private boolean memberOnlyWrite_ ; /** *
       * The member only write access denotes whether only collection member clients
       * can write the private data (if set to true), or even non members can
       * write the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_write = 7; */ public boolean getMemberOnlyWrite() { return memberOnlyWrite_; } /** *
       * The member only write access denotes whether only collection member clients
       * can write the private data (if set to true), or even non members can
       * write the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_write = 7; */ public Builder setMemberOnlyWrite(boolean value) { memberOnlyWrite_ = value; onChanged(); return this; } /** *
       * The member only write access denotes whether only collection member clients
       * can write the private data (if set to true), or even non members can
       * write the data (if set to false, for example if you want to implement more granular
       * access logic in the chaincode)
       * 
* * bool member_only_write = 7; */ public Builder clearMemberOnlyWrite() { memberOnlyWrite_ = false; onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy endorsementPolicy_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder> endorsementPolicyBuilder_; /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public boolean hasEndorsementPolicy() { return endorsementPolicyBuilder_ != null || endorsementPolicy_ != null; } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy getEndorsementPolicy() { if (endorsementPolicyBuilder_ == null) { return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_; } else { return endorsementPolicyBuilder_.getMessage(); } } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public Builder setEndorsementPolicy(org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy value) { if (endorsementPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endorsementPolicy_ = value; onChanged(); } else { endorsementPolicyBuilder_.setMessage(value); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public Builder setEndorsementPolicy( org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder builderForValue) { if (endorsementPolicyBuilder_ == null) { endorsementPolicy_ = builderForValue.build(); onChanged(); } else { endorsementPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public Builder mergeEndorsementPolicy(org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy value) { if (endorsementPolicyBuilder_ == null) { if (endorsementPolicy_ != null) { endorsementPolicy_ = org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.newBuilder(endorsementPolicy_).mergeFrom(value).buildPartial(); } else { endorsementPolicy_ = value; } onChanged(); } else { endorsementPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public Builder clearEndorsementPolicy() { if (endorsementPolicyBuilder_ == null) { endorsementPolicy_ = null; onChanged(); } else { endorsementPolicy_ = null; endorsementPolicyBuilder_ = null; } return this; } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder getEndorsementPolicyBuilder() { onChanged(); return getEndorsementPolicyFieldBuilder().getBuilder(); } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ public org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder getEndorsementPolicyOrBuilder() { if (endorsementPolicyBuilder_ != null) { return endorsementPolicyBuilder_.getMessageOrBuilder(); } else { return endorsementPolicy_ == null ? org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.getDefaultInstance() : endorsementPolicy_; } } /** *
       * a reference to a policy residing / managed in the config block
       * to define the endorsement policy for this collection
       * 
* * .protos.ApplicationPolicy endorsement_policy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder> getEndorsementPolicyFieldBuilder() { if (endorsementPolicyBuilder_ == null) { endorsementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicy.Builder, org.hyperledger.fabric.protos.peer.Policy.ApplicationPolicyOrBuilder>( getEndorsementPolicy(), getParentForChildren(), isClean()); endorsementPolicy_ = null; } return endorsementPolicyBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.StaticCollectionConfig) } // @@protoc_insertion_point(class_scope:protos.StaticCollectionConfig) private static final org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig(); } public static org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StaticCollectionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StaticCollectionConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.StaticCollectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionPolicyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:protos.CollectionPolicyConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ boolean hasSignaturePolicy(); /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope getSignaturePolicy(); /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder getSignaturePolicyOrBuilder(); public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.PayloadCase getPayloadCase(); } /** *
   * Collection policy configuration. Initially, the configuration can only
   * contain a SignaturePolicy. In the future, the SignaturePolicy may be a
   * more general Policy. Instead of containing the actual policy, the
   * configuration may in the future contain a string reference to a policy.
   * 
* * Protobuf type {@code protos.CollectionPolicyConfig} */ public static final class CollectionPolicyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:protos.CollectionPolicyConfig) CollectionPolicyConfigOrBuilder { private static final long serialVersionUID = 0L; // Use CollectionPolicyConfig.newBuilder() to construct. private CollectionPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionPolicyConfig() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CollectionPolicyConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder subBuilder = null; if (payloadCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_).toBuilder(); } payload_ = input.readMessage(org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_); payload_ = subBuilder.buildPartial(); } payloadCase_ = 1; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionPolicyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.class, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder.class); } private int payloadCase_ = 0; private java.lang.Object payload_; public enum PayloadCase implements com.google.protobuf.Internal.EnumLite { SIGNATURE_POLICY(1), PAYLOAD_NOT_SET(0); private final int value; private PayloadCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PayloadCase valueOf(int value) { return forNumber(value); } public static PayloadCase forNumber(int value) { switch (value) { case 1: return SIGNATURE_POLICY; case 0: return PAYLOAD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public static final int SIGNATURE_POLICY_FIELD_NUMBER = 1; /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public boolean hasSignaturePolicy() { return payloadCase_ == 1; } /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope getSignaturePolicy() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_; } return org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } /** *
     * Initially, only a signature policy is supported.
     * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder getSignaturePolicyOrBuilder() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_; } return org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } 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 (payloadCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payloadCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig other = (org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig) obj; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 1: if (!getSignaturePolicy() .equals(other.getSignaturePolicy())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (payloadCase_) { case 1: hash = (37 * hash) + SIGNATURE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSignaturePolicy().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig 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.Collection.CollectionPolicyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig 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.Collection.CollectionPolicyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig 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.Collection.CollectionPolicyConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Collection policy configuration. Initially, the configuration can only
     * contain a SignaturePolicy. In the future, the SignaturePolicy may be a
     * more general Policy. Instead of containing the actual policy, the
     * configuration may in the future contain a string reference to a policy.
     * 
* * Protobuf type {@code protos.CollectionPolicyConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:protos.CollectionPolicyConfig) org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionPolicyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.class, org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); payloadCase_ = 0; payload_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.peer.Collection.internal_static_protos_CollectionPolicyConfig_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig build() { org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig buildPartial() { org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig result = new org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig(this); if (payloadCase_ == 1) { if (signaturePolicyBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = signaturePolicyBuilder_.build(); } } result.payloadCase_ = payloadCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig) { return mergeFrom((org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig other) { if (other == org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case SIGNATURE_POLICY: { mergeSignaturePolicy(other.getSignaturePolicy()); break; } case PAYLOAD_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int payloadCase_ = 0; private java.lang.Object payload_; public PayloadCase getPayloadCase() { return PayloadCase.forNumber( payloadCase_); } public Builder clearPayload() { payloadCase_ = 0; payload_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder> signaturePolicyBuilder_; /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public boolean hasSignaturePolicy() { return payloadCase_ == 1; } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope getSignaturePolicy() { if (signaturePolicyBuilder_ == null) { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_; } return org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } else { if (payloadCase_ == 1) { return signaturePolicyBuilder_.getMessage(); } return org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public Builder setSignaturePolicy(org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope value) { if (signaturePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { signaturePolicyBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public Builder setSignaturePolicy( org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder builderForValue) { if (signaturePolicyBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { signaturePolicyBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; return this; } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public Builder mergeSignaturePolicy(org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope value) { if (signaturePolicyBuilder_ == null) { if (payloadCase_ == 1 && payload_ != org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.newBuilder((org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { signaturePolicyBuilder_.mergeFrom(value); } signaturePolicyBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public Builder clearSignaturePolicy() { if (signaturePolicyBuilder_ == null) { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; onChanged(); } } else { if (payloadCase_ == 1) { payloadCase_ = 0; payload_ = null; } signaturePolicyBuilder_.clear(); } return this; } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder getSignaturePolicyBuilder() { return getSignaturePolicyFieldBuilder().getBuilder(); } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ public org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder getSignaturePolicyOrBuilder() { if ((payloadCase_ == 1) && (signaturePolicyBuilder_ != null)) { return signaturePolicyBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_; } return org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } } /** *
       * Initially, only a signature policy is supported.
       * 
* * .common.SignaturePolicyEnvelope signature_policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder> getSignaturePolicyFieldBuilder() { if (signaturePolicyBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.getDefaultInstance(); } signaturePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope.Builder, org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder>( (org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged();; return signaturePolicyBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:protos.CollectionPolicyConfig) } // @@protoc_insertion_point(class_scope:protos.CollectionPolicyConfig) private static final org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig(); } public static org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CollectionPolicyConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CollectionPolicyConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionPolicyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_CollectionConfigPackage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_CollectionConfigPackage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_CollectionConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_CollectionConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_StaticCollectionConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_StaticCollectionConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_protos_CollectionPolicyConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_protos_CollectionPolicyConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\025peer/collection.proto\022\006protos\032\025common/" + "policies.proto\032\021peer/policy.proto\"C\n\027Col" + "lectionConfigPackage\022(\n\006config\030\001 \003(\0132\030.p" + "rotos.CollectionConfig\"a\n\020CollectionConf" + "ig\022B\n\030static_collection_config\030\001 \001(\0132\036.p" + "rotos.StaticCollectionConfigH\000B\t\n\007payloa" + "d\"\236\002\n\026StaticCollectionConfig\022\014\n\004name\030\001 \001" + "(\t\022:\n\022member_orgs_policy\030\002 \001(\0132\036.protos." + "CollectionPolicyConfig\022\033\n\023required_peer_" + "count\030\003 \001(\005\022\032\n\022maximum_peer_count\030\004 \001(\005\022" + "\025\n\rblock_to_live\030\005 \001(\004\022\030\n\020member_only_re" + "ad\030\006 \001(\010\022\031\n\021member_only_write\030\007 \001(\010\0225\n\022e" + "ndorsement_policy\030\010 \001(\0132\031.protos.Applica" + "tionPolicy\"`\n\026CollectionPolicyConfig\022;\n\020" + "signature_policy\030\001 \001(\0132\037.common.Signatur" + "ePolicyEnvelopeH\000B\t\n\007payloadBR\n\"org.hype" + "rledger.fabric.protos.peerZ,github.com/h" + "yperledger/fabric-protos-go/peerb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Policies.getDescriptor(), org.hyperledger.fabric.protos.peer.Policy.getDescriptor(), }, assigner); internal_static_protos_CollectionConfigPackage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protos_CollectionConfigPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_CollectionConfigPackage_descriptor, new java.lang.String[] { "Config", }); internal_static_protos_CollectionConfig_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protos_CollectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_CollectionConfig_descriptor, new java.lang.String[] { "StaticCollectionConfig", "Payload", }); internal_static_protos_StaticCollectionConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protos_StaticCollectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_StaticCollectionConfig_descriptor, new java.lang.String[] { "Name", "MemberOrgsPolicy", "RequiredPeerCount", "MaximumPeerCount", "BlockToLive", "MemberOnlyRead", "MemberOnlyWrite", "EndorsementPolicy", }); internal_static_protos_CollectionPolicyConfig_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_protos_CollectionPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_protos_CollectionPolicyConfig_descriptor, new java.lang.String[] { "SignaturePolicy", "Payload", }); org.hyperledger.fabric.protos.common.Policies.getDescriptor(); org.hyperledger.fabric.protos.peer.Policy.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy