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

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

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

package org.hyperledger.fabric.protos.common;

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:common.CollectionConfigPackage)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .common.CollectionConfig config = 1;
     */
    java.util.List 
        getConfigList();
    /**
     * repeated .common.CollectionConfig config = 1;
     */
    org.hyperledger.fabric.protos.common.Collection.CollectionConfig getConfig(int index);
    /**
     * repeated .common.CollectionConfig config = 1;
     */
    int getConfigCount();
    /**
     * repeated .common.CollectionConfig config = 1;
     */
    java.util.List 
        getConfigOrBuilderList();
    /**
     * repeated .common.CollectionConfig config = 1;
     */
    org.hyperledger.fabric.protos.common.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 common.CollectionConfigPackage} */ public static final class CollectionConfigPackage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.CollectionConfigPackage) CollectionConfigPackageOrBuilder { // 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CollectionConfigPackage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { config_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } config_.add( input.readMessage(org.hyperledger.fabric.protos.common.Collection.CollectionConfig.parser(), extensionRegistry)); 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) == 0x00000001)) { config_ = java.util.Collections.unmodifiableList(config_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfigPackage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfigPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.class, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private java.util.List config_; /** * repeated .common.CollectionConfig config = 1; */ public java.util.List getConfigList() { return config_; } /** * repeated .common.CollectionConfig config = 1; */ public java.util.List getConfigOrBuilderList() { return config_; } /** * repeated .common.CollectionConfig config = 1; */ public int getConfigCount() { return config_.size(); } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfig getConfig(int index) { return config_.get(index); } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder getConfigOrBuilder( int index) { return config_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } 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)); } } 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)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage other = (org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage) obj; boolean result = true; result = result && getConfigList() .equals(other.getConfigList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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.common.Collection.CollectionConfigPackage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.Collection.CollectionConfigPackage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.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.common.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.common.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.common.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.common.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.common.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 common.CollectionConfigPackage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.CollectionConfigPackage) org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfigPackage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfigPackage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.class, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.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(); } } public Builder clear() { super.clear(); if (configBuilder_ == null) { config_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { configBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfigPackage_descriptor; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage build() { org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage buildPartial() { org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage result = new org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage(this); int from_bitField0_ = bitField0_; if (configBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { config_ = java.util.Collections.unmodifiableList(config_); bitField0_ = (bitField0_ & ~0x00000001); } result.config_ = config_; } else { result.config_ = configBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage) { return mergeFrom((org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage other) { if (other == org.hyperledger.fabric.protos.common.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_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.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) == 0x00000001)) { config_ = new java.util.ArrayList(config_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfig, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder> configBuilder_; /** * repeated .common.CollectionConfig config = 1; */ public java.util.List getConfigList() { if (configBuilder_ == null) { return java.util.Collections.unmodifiableList(config_); } else { return configBuilder_.getMessageList(); } } /** * repeated .common.CollectionConfig config = 1; */ public int getConfigCount() { if (configBuilder_ == null) { return config_.size(); } else { return configBuilder_.getCount(); } } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfig getConfig(int index) { if (configBuilder_ == null) { return config_.get(index); } else { return configBuilder_.getMessage(index); } } /** * repeated .common.CollectionConfig config = 1; */ public Builder setConfig( int index, org.hyperledger.fabric.protos.common.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 .common.CollectionConfig config = 1; */ public Builder setConfig( int index, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.set(index, builderForValue.build()); onChanged(); } else { configBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .common.CollectionConfig config = 1; */ public Builder addConfig(org.hyperledger.fabric.protos.common.Collection.CollectionConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfigIsMutable(); config_.add(value); onChanged(); } else { configBuilder_.addMessage(value); } return this; } /** * repeated .common.CollectionConfig config = 1; */ public Builder addConfig( int index, org.hyperledger.fabric.protos.common.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 .common.CollectionConfig config = 1; */ public Builder addConfig( org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.add(builderForValue.build()); onChanged(); } else { configBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .common.CollectionConfig config = 1; */ public Builder addConfig( int index, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder builderForValue) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.add(index, builderForValue.build()); onChanged(); } else { configBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .common.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 .common.CollectionConfig config = 1; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { configBuilder_.clear(); } return this; } /** * repeated .common.CollectionConfig config = 1; */ public Builder removeConfig(int index) { if (configBuilder_ == null) { ensureConfigIsMutable(); config_.remove(index); onChanged(); } else { configBuilder_.remove(index); } return this; } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder getConfigBuilder( int index) { return getConfigFieldBuilder().getBuilder(index); } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder getConfigOrBuilder( int index) { if (configBuilder_ == null) { return config_.get(index); } else { return configBuilder_.getMessageOrBuilder(index); } } /** * repeated .common.CollectionConfig config = 1; */ public java.util.List getConfigOrBuilderList() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(config_); } } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder addConfigBuilder() { return getConfigFieldBuilder().addBuilder( org.hyperledger.fabric.protos.common.Collection.CollectionConfig.getDefaultInstance()); } /** * repeated .common.CollectionConfig config = 1; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder addConfigBuilder( int index) { return getConfigFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.getDefaultInstance()); } /** * repeated .common.CollectionConfig config = 1; */ public java.util.List getConfigBuilderList() { return getConfigFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfig, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfig, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder>( config_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.CollectionConfigPackage) } // @@protoc_insertion_point(class_scope:common.CollectionConfigPackage) private static final org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage(); } public static org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { 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; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:common.CollectionConfig) com.google.protobuf.MessageOrBuilder { /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getStaticCollectionConfig(); /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder(); public org.hyperledger.fabric.protos.common.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 common.CollectionConfig} */ public static final class CollectionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.CollectionConfig) CollectionConfigOrBuilder { // 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CollectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder subBuilder = null; if (payloadCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_).toBuilder(); } payload_ = input.readMessage(org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_); payload_ = subBuilder.buildPartial(); } payloadCase_ = 1; 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionConfig.class, org.hyperledger.fabric.protos.common.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; /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getStaticCollectionConfig() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder() { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payloadCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_); } } 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.Collection.StaticCollectionConfig) payload_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Collection.CollectionConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Collection.CollectionConfig other = (org.hyperledger.fabric.protos.common.Collection.CollectionConfig) obj; boolean result = true; result = result && getPayloadCase().equals( other.getPayloadCase()); if (!result) return false; switch (payloadCase_) { case 1: result = result && getStaticCollectionConfig() .equals(other.getStaticCollectionConfig()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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.common.Collection.CollectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.Collection.CollectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.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.common.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.common.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.common.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.common.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.common.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Collection.CollectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 common.CollectionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.CollectionConfig) org.hyperledger.fabric.protos.common.Collection.CollectionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionConfig.class, org.hyperledger.fabric.protos.common.Collection.CollectionConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.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) { } } public Builder clear() { super.clear(); payloadCase_ = 0; payload_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionConfig_descriptor; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Collection.CollectionConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Collection.CollectionConfig build() { org.hyperledger.fabric.protos.common.Collection.CollectionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfig buildPartial() { org.hyperledger.fabric.protos.common.Collection.CollectionConfig result = new org.hyperledger.fabric.protos.common.Collection.CollectionConfig(this); if (payloadCase_ == 1) { if (staticCollectionConfigBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = staticCollectionConfigBuilder_.build(); } } result.payloadCase_ = payloadCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Collection.CollectionConfig) { return mergeFrom((org.hyperledger.fabric.protos.common.Collection.CollectionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Collection.CollectionConfig other) { if (other == org.hyperledger.fabric.protos.common.Collection.CollectionConfig.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case STATIC_COLLECTION_CONFIG: { mergeStaticCollectionConfig(other.getStaticCollectionConfig()); break; } case PAYLOAD_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Collection.CollectionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.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.common.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder> staticCollectionConfigBuilder_; /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getStaticCollectionConfig() { if (staticCollectionConfigBuilder_ == null) { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } else { if (payloadCase_ == 1) { return staticCollectionConfigBuilder_.getMessage(); } return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public Builder setStaticCollectionConfig(org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig value) { if (staticCollectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { staticCollectionConfigBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public Builder setStaticCollectionConfig( org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder builderForValue) { if (staticCollectionConfigBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { staticCollectionConfigBuilder_.setMessage(builderForValue.build()); } payloadCase_ = 1; return this; } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public Builder mergeStaticCollectionConfig(org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig value) { if (staticCollectionConfigBuilder_ == null) { if (payloadCase_ == 1 && payload_ != org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance()) { payload_ = org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.newBuilder((org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_) .mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { if (payloadCase_ == 1) { staticCollectionConfigBuilder_.mergeFrom(value); } staticCollectionConfigBuilder_.setMessage(value); } payloadCase_ = 1; return this; } /** * optional .common.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; } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder getStaticCollectionConfigBuilder() { return getStaticCollectionConfigFieldBuilder().getBuilder(); } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder getStaticCollectionConfigOrBuilder() { if ((payloadCase_ == 1) && (staticCollectionConfigBuilder_ != null)) { return staticCollectionConfigBuilder_.getMessageOrBuilder(); } else { if (payloadCase_ == 1) { return (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_; } return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } } /** * optional .common.StaticCollectionConfig static_collection_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder> getStaticCollectionConfigFieldBuilder() { if (staticCollectionConfigBuilder_ == null) { if (!(payloadCase_ == 1)) { payload_ = org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } staticCollectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder>( (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 1; onChanged();; return staticCollectionConfigBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.CollectionConfig) } // @@protoc_insertion_point(class_scope:common.CollectionConfig) private static final org.hyperledger.fabric.protos.common.Collection.CollectionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Collection.CollectionConfig(); } public static org.hyperledger.fabric.protos.common.Collection.CollectionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { 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; } public org.hyperledger.fabric.protos.common.Collection.CollectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StaticCollectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:common.StaticCollectionConfig) com.google.protobuf.MessageOrBuilder { /** *
     * the name of the collection inside the denoted chaincode
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * the name of the collection inside the denoted chaincode
     * 
* * optional 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
     * 
* * optional .common.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
     * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ org.hyperledger.fabric.protos.common.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
     * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ org.hyperledger.fabric.protos.common.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.
     * 
* * optional 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.
     * 
* * optional 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
     * 
* * optional uint64 block_to_live = 5; */ long getBlockToLive(); } /** *
   * 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 common.StaticCollectionConfig} */ public static final class StaticCollectionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.StaticCollectionConfig) StaticCollectionConfigOrBuilder { // Use StaticCollectionConfig.newBuilder() to construct. private StaticCollectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StaticCollectionConfig() { name_ = ""; requiredPeerCount_ = 0; maximumPeerCount_ = 0; blockToLive_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StaticCollectionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.Builder subBuilder = null; if (memberOrgsPolicy_ != null) { subBuilder = memberOrgsPolicy_.toBuilder(); } memberOrgsPolicy_ = input.readMessage(org.hyperledger.fabric.protos.common.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; } } } } 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_StaticCollectionConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_StaticCollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.class, org.hyperledger.fabric.protos.common.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
     * 
* * optional 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
     * 
* * optional 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.common.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
     * 
* * optional .common.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
     * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig getMemberOrgsPolicy() { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.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
     * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.common.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.
     * 
* * optional 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.
     * 
* * optional 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
     * 
* * optional uint64 block_to_live = 5; */ public long getBlockToLive() { return blockToLive_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } 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_); } } 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_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig other = (org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (hasMemberOrgsPolicy() == other.hasMemberOrgsPolicy()); if (hasMemberOrgsPolicy()) { result = result && getMemberOrgsPolicy() .equals(other.getMemberOrgsPolicy()); } result = result && (getRequiredPeerCount() == other.getRequiredPeerCount()); result = result && (getMaximumPeerCount() == other.getMaximumPeerCount()); result = result && (getBlockToLive() == other.getBlockToLive()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.Collection.StaticCollectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.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.common.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.common.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.common.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.common.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.common.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 common.StaticCollectionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.StaticCollectionConfig) org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_StaticCollectionConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_StaticCollectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.class, org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.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) { } } public Builder clear() { super.clear(); name_ = ""; if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicy_ = null; } else { memberOrgsPolicy_ = null; memberOrgsPolicyBuilder_ = null; } requiredPeerCount_ = 0; maximumPeerCount_ = 0; blockToLive_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_StaticCollectionConfig_descriptor; } public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig build() { org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig buildPartial() { org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig result = new org.hyperledger.fabric.protos.common.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_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig) { return mergeFrom((org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig other) { if (other == org.hyperledger.fabric.protos.common.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()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.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
       * 
* * optional 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
       * 
* * optional 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
       * 
* * optional 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
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * the name of the collection inside the denoted chaincode
       * 
* * optional 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.common.Collection.CollectionPolicyConfig memberOrgsPolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig getMemberOrgsPolicy() { if (memberOrgsPolicyBuilder_ == null) { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder setMemberOrgsPolicy(org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder setMemberOrgsPolicy( org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public Builder mergeMemberOrgsPolicy(org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig value) { if (memberOrgsPolicyBuilder_ == null) { if (memberOrgsPolicy_ != null) { memberOrgsPolicy_ = org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfigOrBuilder getMemberOrgsPolicyOrBuilder() { if (memberOrgsPolicyBuilder_ != null) { return memberOrgsPolicyBuilder_.getMessageOrBuilder(); } else { return memberOrgsPolicy_ == null ? org.hyperledger.fabric.protos.common.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
       * 
* * optional .common.CollectionPolicyConfig member_orgs_policy = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfigOrBuilder> getMemberOrgsPolicyFieldBuilder() { if (memberOrgsPolicyBuilder_ == null) { memberOrgsPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig, org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.Builder, org.hyperledger.fabric.protos.common.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.
       * 
* * optional 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.
       * 
* * optional 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.
       * 
* * optional 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.
       * 
* * optional 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.
       * 
* * optional 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.
       * 
* * optional 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
       * 
* * optional 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
       * 
* * optional 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
       * 
* * optional uint64 block_to_live = 5; */ public Builder clearBlockToLive() { blockToLive_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.StaticCollectionConfig) } // @@protoc_insertion_point(class_scope:common.StaticCollectionConfig) private static final org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig(); } public static org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { 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; } public org.hyperledger.fabric.protos.common.Collection.StaticCollectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionPolicyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:common.CollectionPolicyConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Initially, only a signature policy is supported.
     * 
* * optional .common.SignaturePolicyEnvelope signature_policy = 1; */ org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelope getSignaturePolicy(); /** *
     * Initially, only a signature policy is supported.
     * 
* * optional .common.SignaturePolicyEnvelope signature_policy = 1; */ org.hyperledger.fabric.protos.common.Policies.SignaturePolicyEnvelopeOrBuilder getSignaturePolicyOrBuilder(); public org.hyperledger.fabric.protos.common.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 common.CollectionPolicyConfig} */ public static final class CollectionPolicyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.CollectionPolicyConfig) CollectionPolicyConfigOrBuilder { // 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 com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CollectionPolicyConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { 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; } } } } 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionPolicyConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.class, org.hyperledger.fabric.protos.common.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.
     * 
* * optional .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.
     * 
* * optional .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; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } 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_); } } 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_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig other = (org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig) obj; boolean result = true; result = result && getPayloadCase().equals( other.getPayloadCase()); if (!result) return false; switch (payloadCase_) { case 1: result = result && getSignaturePolicy() .equals(other.getSignaturePolicy()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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.common.Collection.CollectionPolicyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.Collection.CollectionPolicyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.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.common.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.common.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.common.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.common.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.common.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.common.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); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 common.CollectionPolicyConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.CollectionPolicyConfig) org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionPolicyConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionPolicyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.class, org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.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) { } } public Builder clear() { super.clear(); payloadCase_ = 0; payload_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionPolicyConfig_descriptor; } public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig build() { org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig buildPartial() { org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig result = new org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig(this); if (payloadCase_ == 1) { if (signaturePolicyBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = signaturePolicyBuilder_.build(); } } result.payloadCase_ = payloadCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig) { return mergeFrom((org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig other) { if (other == org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig.getDefaultInstance()) return this; switch (other.getPayloadCase()) { case SIGNATURE_POLICY: { mergeSignaturePolicy(other.getSignaturePolicy()); break; } case PAYLOAD_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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.
       * 
* * optional .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_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.CollectionPolicyConfig) } // @@protoc_insertion_point(class_scope:common.CollectionPolicyConfig) private static final org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig(); } public static org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { 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; } public org.hyperledger.fabric.protos.common.Collection.CollectionPolicyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectionCriteriaOrBuilder extends // @@protoc_insertion_point(interface_extends:common.CollectionCriteria) com.google.protobuf.MessageOrBuilder { /** * optional string channel = 1; */ java.lang.String getChannel(); /** * optional string channel = 1; */ com.google.protobuf.ByteString getChannelBytes(); /** * optional string tx_id = 2; */ java.lang.String getTxId(); /** * optional string tx_id = 2; */ com.google.protobuf.ByteString getTxIdBytes(); /** * optional string collection = 3; */ java.lang.String getCollection(); /** * optional string collection = 3; */ com.google.protobuf.ByteString getCollectionBytes(); /** * optional string namespace = 4; */ java.lang.String getNamespace(); /** * optional string namespace = 4; */ com.google.protobuf.ByteString getNamespaceBytes(); } /** *
   * CollectionCriteria defines an element of a private data that corresponds
   * to a certain transaction and collection
   * 
* * Protobuf type {@code common.CollectionCriteria} */ public static final class CollectionCriteria extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.CollectionCriteria) CollectionCriteriaOrBuilder { // Use CollectionCriteria.newBuilder() to construct. private CollectionCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionCriteria() { channel_ = ""; txId_ = ""; collection_ = ""; namespace_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CollectionCriteria( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); channel_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); txId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); collection_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); namespace_ = s; 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionCriteria_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.class, org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.Builder.class); } public static final int CHANNEL_FIELD_NUMBER = 1; private volatile java.lang.Object channel_; /** * optional string channel = 1; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; } } /** * optional string channel = 1; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TX_ID_FIELD_NUMBER = 2; private volatile java.lang.Object txId_; /** * optional string tx_id = 2; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; 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(); txId_ = s; return s; } } /** * optional string tx_id = 2; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_FIELD_NUMBER = 3; private volatile java.lang.Object collection_; /** * optional string collection = 3; */ public java.lang.String getCollection() { java.lang.Object ref = collection_; 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(); collection_ = s; return s; } } /** * optional string collection = 3; */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 4; private volatile java.lang.Object namespace_; /** * optional string namespace = 4; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** * optional string namespace = 4; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChannelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_); } if (!getTxIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txId_); } if (!getCollectionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collection_); } if (!getNamespaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, namespace_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChannelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_); } if (!getCollectionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collection_); } if (!getNamespaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, namespace_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Collection.CollectionCriteria)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Collection.CollectionCriteria other = (org.hyperledger.fabric.protos.common.Collection.CollectionCriteria) obj; boolean result = true; result = result && getChannel() .equals(other.getChannel()); result = result && getTxId() .equals(other.getTxId()); result = result && getCollection() .equals(other.getCollection()); result = result && getNamespace() .equals(other.getNamespace()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + COLLECTION_FIELD_NUMBER; hash = (53 * hash) + getCollection().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria 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.common.Collection.CollectionCriteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria 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.common.Collection.CollectionCriteria parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria 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.common.Collection.CollectionCriteria parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Collection.CollectionCriteria prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
     * CollectionCriteria defines an element of a private data that corresponds
     * to a certain transaction and collection
     * 
* * Protobuf type {@code common.CollectionCriteria} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.CollectionCriteria) org.hyperledger.fabric.protos.common.Collection.CollectionCriteriaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionCriteria_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionCriteria_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.class, org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); channel_ = ""; txId_ = ""; collection_ = ""; namespace_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Collection.internal_static_common_CollectionCriteria_descriptor; } public org.hyperledger.fabric.protos.common.Collection.CollectionCriteria getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.getDefaultInstance(); } public org.hyperledger.fabric.protos.common.Collection.CollectionCriteria build() { org.hyperledger.fabric.protos.common.Collection.CollectionCriteria result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.common.Collection.CollectionCriteria buildPartial() { org.hyperledger.fabric.protos.common.Collection.CollectionCriteria result = new org.hyperledger.fabric.protos.common.Collection.CollectionCriteria(this); result.channel_ = channel_; result.txId_ = txId_; result.collection_ = collection_; result.namespace_ = namespace_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Collection.CollectionCriteria) { return mergeFrom((org.hyperledger.fabric.protos.common.Collection.CollectionCriteria)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Collection.CollectionCriteria other) { if (other == org.hyperledger.fabric.protos.common.Collection.CollectionCriteria.getDefaultInstance()) return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); } if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.common.Collection.CollectionCriteria parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.common.Collection.CollectionCriteria) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object channel_ = ""; /** * optional string channel = 1; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string channel = 1; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string channel = 1; */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** * optional string channel = 1; */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** * optional string channel = 1; */ public Builder setChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; onChanged(); return this; } private java.lang.Object txId_ = ""; /** * optional string tx_id = 2; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string tx_id = 2; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string tx_id = 2; */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** * optional string tx_id = 2; */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** * optional string tx_id = 2; */ public Builder setTxIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txId_ = value; onChanged(); return this; } private java.lang.Object collection_ = ""; /** * optional string collection = 3; */ public java.lang.String getCollection() { java.lang.Object ref = collection_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collection_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string collection = 3; */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string collection = 3; */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; onChanged(); return this; } /** * optional string collection = 3; */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /** * optional string collection = 3; */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 4; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 4; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 4; */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * optional string namespace = 4; */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * optional string namespace = 4; */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:common.CollectionCriteria) } // @@protoc_insertion_point(class_scope:common.CollectionCriteria) private static final org.hyperledger.fabric.protos.common.Collection.CollectionCriteria DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Collection.CollectionCriteria(); } public static org.hyperledger.fabric.protos.common.Collection.CollectionCriteria getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CollectionCriteria parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CollectionCriteria(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.common.Collection.CollectionCriteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_CollectionConfigPackage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_CollectionConfigPackage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_CollectionConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_CollectionConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_StaticCollectionConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_StaticCollectionConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_CollectionPolicyConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_CollectionPolicyConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_CollectionCriteria_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_CollectionCriteria_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\027common/collection.proto\022\006common\032\025commo" + "n/policies.proto\"C\n\027CollectionConfigPack" + "age\022(\n\006config\030\001 \003(\0132\030.common.CollectionC" + "onfig\"a\n\020CollectionConfig\022B\n\030static_coll" + "ection_config\030\001 \001(\0132\036.common.StaticColle" + "ctionConfigH\000B\t\n\007payload\"\262\001\n\026StaticColle" + "ctionConfig\022\014\n\004name\030\001 \001(\t\022:\n\022member_orgs" + "_policy\030\002 \001(\0132\036.common.CollectionPolicyC" + "onfig\022\033\n\023required_peer_count\030\003 \001(\005\022\032\n\022ma" + "ximum_peer_count\030\004 \001(\005\022\025\n\rblock_to_live\030", "\005 \001(\004\"`\n\026CollectionPolicyConfig\022;\n\020signa" + "ture_policy\030\001 \001(\0132\037.common.SignaturePoli" + "cyEnvelopeH\000B\t\n\007payload\"[\n\022CollectionCri" + "teria\022\017\n\007channel\030\001 \001(\t\022\r\n\005tx_id\030\002 \001(\t\022\022\n" + "\ncollection\030\003 \001(\t\022\021\n\tnamespace\030\004 \001(\tBS\n$" + "org.hyperledger.fabric.protos.commonZ+gi" + "thub.com/hyperledger/fabric/protos/commo" + "nb\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(), }, assigner); internal_static_common_CollectionConfigPackage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_common_CollectionConfigPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_CollectionConfigPackage_descriptor, new java.lang.String[] { "Config", }); internal_static_common_CollectionConfig_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_common_CollectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_CollectionConfig_descriptor, new java.lang.String[] { "StaticCollectionConfig", "Payload", }); internal_static_common_StaticCollectionConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_common_StaticCollectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_StaticCollectionConfig_descriptor, new java.lang.String[] { "Name", "MemberOrgsPolicy", "RequiredPeerCount", "MaximumPeerCount", "BlockToLive", }); internal_static_common_CollectionPolicyConfig_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_common_CollectionPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_CollectionPolicyConfig_descriptor, new java.lang.String[] { "SignaturePolicy", "Payload", }); internal_static_common_CollectionCriteria_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_common_CollectionCriteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_CollectionCriteria_descriptor, new java.lang.String[] { "Channel", "TxId", "Collection", "Namespace", }); org.hyperledger.fabric.protos.common.Policies.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy