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

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

Go to download

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

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

package org.hyperledger.fabric.protos.common;

public final class Configtx {
  private Configtx() {}
  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 ConfigEnvelopeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:common.ConfigEnvelope)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * A marshaled Config structure
     * 
* * .common.Config config = 1; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * A marshaled Config structure
     * 
* * .common.Config config = 1; * @return The config. */ org.hyperledger.fabric.protos.common.Configtx.Config getConfig(); /** *
     * A marshaled Config structure
     * 
* * .common.Config config = 1; */ org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder(); /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; * @return Whether the lastUpdate field is set. */ boolean hasLastUpdate(); /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; * @return The lastUpdate. */ org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate(); /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; */ org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder(); } /** *
   * ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
   * on previous configuration transactions.
   * It is generated with the following scheme:
   *   1. Retrieve the existing configuration
   *   2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
   *   3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
   *   4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
   *   5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set
   *      Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
   *   6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures
   *     a) Each signature is of type ConfigSignature
   *     b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
   *   5. Submit new Config for ordering in Envelope signed by submitter
   *     a) The Envelope Payload has data set to the marshaled ConfigEnvelope
   *     b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
   * The configuration manager will verify:
   *   1. All items in the read_set exist at the read versions
   *   2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
   *   3. The new configuration satisfies the ConfigSchema
   * 
* * Protobuf type {@code common.ConfigEnvelope} */ public static final class ConfigEnvelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigEnvelope) ConfigEnvelopeOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigEnvelope.newBuilder() to construct. private ConfigEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigEnvelope() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigEnvelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.common.Configtx.Config config_; /** *
     * A marshaled Config structure
     * 
* * .common.Config config = 1; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * A marshaled Config structure
     * 
* * .common.Config config = 1; * @return The config. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config getConfig() { return config_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_; } /** *
     * A marshaled Config structure
     * 
* * .common.Config config = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int LAST_UPDATE_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Common.Envelope lastUpdate_; /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; * @return Whether the lastUpdate field is set. */ @java.lang.Override public boolean hasLastUpdate() { return lastUpdate_ != null; } /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; * @return The lastUpdate. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate() { return lastUpdate_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_; } /** *
     * The last CONFIG_UPDATE message which generated this current configuration
     * 
* * .common.Envelope last_update = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder() { return getLastUpdate(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } if (lastUpdate_ != null) { output.writeMessage(2, getLastUpdate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConfig()); } if (lastUpdate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLastUpdate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope other = (org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (hasLastUpdate() != other.hasLastUpdate()) return false; if (hasLastUpdate()) { if (!getLastUpdate() .equals(other.getLastUpdate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } if (hasLastUpdate()) { hash = (37 * hash) + LAST_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getLastUpdate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope 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.Configtx.ConfigEnvelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
     * on previous configuration transactions.
     * It is generated with the following scheme:
     *   1. Retrieve the existing configuration
     *   2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
     *   3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
     *   4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
     *   5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set
     *      Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
     *   6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures
     *     a) Each signature is of type ConfigSignature
     *     b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
     *   5. Submit new Config for ordering in Envelope signed by submitter
     *     a) The Envelope Payload has data set to the marshaled ConfigEnvelope
     *     b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
     * The configuration manager will verify:
     *   1. All items in the read_set exist at the read versions
     *   2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
     *   3. The new configuration satisfies the ConfigSchema
     * 
* * Protobuf type {@code common.ConfigEnvelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigEnvelope) org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } if (lastUpdateBuilder_ == null) { lastUpdate_ = null; } else { lastUpdate_ = null; lastUpdateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigEnvelope_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope build() { org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope result = new org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope(this); if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } if (lastUpdateBuilder_ == null) { result.lastUpdate_ = lastUpdate_; } else { result.lastUpdate_ = lastUpdateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (other.hasLastUpdate()) { mergeLastUpdate(other.getLastUpdate()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getConfigFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getLastUpdateFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.common.Configtx.Config config_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> configBuilder_; /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; * @return The config. */ public org.hyperledger.fabric.protos.common.Configtx.Config getConfig() { if (configBuilder_ == null) { return config_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public Builder setConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public Builder setConfig( org.hyperledger.fabric.protos.common.Configtx.Config.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public Builder mergeConfig(org.hyperledger.fabric.protos.common.Configtx.Config value) { if (configBuilder_ == null) { if (config_ != null) { config_ = org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public org.hyperledger.fabric.protos.common.Configtx.Config.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance() : config_; } } /** *
       * A marshaled Config structure
       * 
* * .common.Config config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.Config, org.hyperledger.fabric.protos.common.Configtx.Config.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private org.hyperledger.fabric.protos.common.Common.Envelope lastUpdate_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder> lastUpdateBuilder_; /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; * @return Whether the lastUpdate field is set. */ public boolean hasLastUpdate() { return lastUpdateBuilder_ != null || lastUpdate_ != null; } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; * @return The lastUpdate. */ public org.hyperledger.fabric.protos.common.Common.Envelope getLastUpdate() { if (lastUpdateBuilder_ == null) { return lastUpdate_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_; } else { return lastUpdateBuilder_.getMessage(); } } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public Builder setLastUpdate(org.hyperledger.fabric.protos.common.Common.Envelope value) { if (lastUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdate_ = value; onChanged(); } else { lastUpdateBuilder_.setMessage(value); } return this; } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public Builder setLastUpdate( org.hyperledger.fabric.protos.common.Common.Envelope.Builder builderForValue) { if (lastUpdateBuilder_ == null) { lastUpdate_ = builderForValue.build(); onChanged(); } else { lastUpdateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public Builder mergeLastUpdate(org.hyperledger.fabric.protos.common.Common.Envelope value) { if (lastUpdateBuilder_ == null) { if (lastUpdate_ != null) { lastUpdate_ = org.hyperledger.fabric.protos.common.Common.Envelope.newBuilder(lastUpdate_).mergeFrom(value).buildPartial(); } else { lastUpdate_ = value; } onChanged(); } else { lastUpdateBuilder_.mergeFrom(value); } return this; } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public Builder clearLastUpdate() { if (lastUpdateBuilder_ == null) { lastUpdate_ = null; onChanged(); } else { lastUpdate_ = null; lastUpdateBuilder_ = null; } return this; } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public org.hyperledger.fabric.protos.common.Common.Envelope.Builder getLastUpdateBuilder() { onChanged(); return getLastUpdateFieldBuilder().getBuilder(); } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ public org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder getLastUpdateOrBuilder() { if (lastUpdateBuilder_ != null) { return lastUpdateBuilder_.getMessageOrBuilder(); } else { return lastUpdate_ == null ? org.hyperledger.fabric.protos.common.Common.Envelope.getDefaultInstance() : lastUpdate_; } } /** *
       * The last CONFIG_UPDATE message which generated this current configuration
       * 
* * .common.Envelope last_update = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder> getLastUpdateFieldBuilder() { if (lastUpdateBuilder_ == null) { lastUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Common.Envelope, org.hyperledger.fabric.protos.common.Common.Envelope.Builder, org.hyperledger.fabric.protos.common.Common.EnvelopeOrBuilder>( getLastUpdate(), getParentForChildren(), isClean()); lastUpdate_ = null; } return lastUpdateBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigEnvelope) } // @@protoc_insertion_point(class_scope:common.ConfigEnvelope) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigEnvelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigEnvelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigGroupSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigGroupSchema) com.google.protobuf.MessageOrBuilder { /** * map<string, .common.ConfigGroupSchema> groups = 1; */ int getGroupsCount(); /** * map<string, .common.ConfigGroupSchema> groups = 1; */ boolean containsGroups( java.lang.String key); /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Deprecated java.util.Map getGroups(); /** * map<string, .common.ConfigGroupSchema> groups = 1; */ java.util.Map getGroupsMap(); /** * map<string, .common.ConfigGroupSchema> groups = 1; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue); /** * map<string, .common.ConfigGroupSchema> groups = 1; */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow( java.lang.String key); /** * map<string, .common.ConfigValueSchema> values = 2; */ int getValuesCount(); /** * map<string, .common.ConfigValueSchema> values = 2; */ boolean containsValues( java.lang.String key); /** * Use {@link #getValuesMap()} instead. */ @java.lang.Deprecated java.util.Map getValues(); /** * map<string, .common.ConfigValueSchema> values = 2; */ java.util.Map getValuesMap(); /** * map<string, .common.ConfigValueSchema> values = 2; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue); /** * map<string, .common.ConfigValueSchema> values = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow( java.lang.String key); /** * map<string, .common.ConfigPolicySchema> policies = 3; */ int getPoliciesCount(); /** * map<string, .common.ConfigPolicySchema> policies = 3; */ boolean containsPolicies( java.lang.String key); /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Deprecated java.util.Map getPolicies(); /** * map<string, .common.ConfigPolicySchema> policies = 3; */ java.util.Map getPoliciesMap(); /** * map<string, .common.ConfigPolicySchema> policies = 3; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue); /** * map<string, .common.ConfigPolicySchema> policies = 3; */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow( java.lang.String key); } /** * Protobuf type {@code common.ConfigGroupSchema} */ public static final class ConfigGroupSchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigGroupSchema) ConfigGroupSchemaOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigGroupSchema.newBuilder() to construct. private ConfigGroupSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigGroupSchema() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigGroupSchema(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetGroups(); case 2: return internalGetValues(); case 3: return internalGetPolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.Builder.class); } public static final int GROUPS_FIELD_NUMBER = 1; private static final class GroupsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema> groups_; private com.google.protobuf.MapField internalGetGroups() { if (groups_ == null) { return com.google.protobuf.MapField.emptyMapField( GroupsDefaultEntryHolder.defaultEntry); } return groups_; } public int getGroupsCount() { return internalGetGroups().getMap().size(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public boolean containsGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetGroups().getMap().containsKey(key); } /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGroups() { return getGroupsMap(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public java.util.Map getGroupsMap() { return internalGetGroups().getMap(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int VALUES_FIELD_NUMBER = 2; private static final class ValuesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int POLICIES_FIELD_NUMBER = 3; private static final class PoliciesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> policies_; private com.google.protobuf.MapField internalGetPolicies() { if (policies_ == null) { return com.google.protobuf.MapField.emptyMapField( PoliciesDefaultEntryHolder.defaultEntry); } return policies_; } public int getPoliciesCount() { return internalGetPolicies().getMap().size(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public boolean containsPolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPolicies().getMap().containsKey(key); } /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPolicies() { return getPoliciesMap(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public java.util.Map getPoliciesMap() { return internalGetPolicies().getMap(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetGroups(), GroupsDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetPolicies(), PoliciesDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetGroups().getMap().entrySet()) { com.google.protobuf.MapEntry groups__ = GroupsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, groups__); } for (java.util.Map.Entry entry : internalGetValues().getMap().entrySet()) { com.google.protobuf.MapEntry values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, values__); } for (java.util.Map.Entry entry : internalGetPolicies().getMap().entrySet()) { com.google.protobuf.MapEntry policies__ = PoliciesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, policies__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema) obj; if (!internalGetGroups().equals( other.internalGetGroups())) return false; if (!internalGetValues().equals( other.internalGetValues())) return false; if (!internalGetPolicies().equals( other.internalGetPolicies())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetGroups().getMap().isEmpty()) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + internalGetGroups().hashCode(); } if (!internalGetValues().getMap().isEmpty()) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetValues().hashCode(); } if (!internalGetPolicies().getMap().isEmpty()) { hash = (37 * hash) + POLICIES_FIELD_NUMBER; hash = (53 * hash) + internalGetPolicies().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema 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.Configtx.ConfigGroupSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigGroupSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigGroupSchema) org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetGroups(); case 2: return internalGetValues(); case 3: return internalGetPolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableGroups(); case 2: return internalGetMutableValues(); case 3: return internalGetMutablePolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableGroups().clear(); internalGetMutableValues().clear(); internalGetMutablePolicies().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroupSchema_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema build() { org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema(this); int from_bitField0_ = bitField0_; result.groups_ = internalGetGroups(); result.groups_.makeImmutable(); result.values_ = internalGetValues(); result.values_.makeImmutable(); result.policies_ = internalGetPolicies(); result.policies_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema.getDefaultInstance()) return this; internalGetMutableGroups().mergeFrom( other.internalGetGroups()); internalGetMutableValues().mergeFrom( other.internalGetValues()); internalGetMutablePolicies().mergeFrom( other.internalGetPolicies()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry groups__ = input.readMessage( GroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableGroups().getMutableMap().put( groups__.getKey(), groups__.getValue()); break; } // case 10 case 18: { com.google.protobuf.MapEntry values__ = input.readMessage( ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableValues().getMutableMap().put( values__.getKey(), values__.getValue()); break; } // case 18 case 26: { com.google.protobuf.MapEntry policies__ = input.readMessage( PoliciesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutablePolicies().getMutableMap().put( policies__.getKey(), policies__.getValue()); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema> groups_; private com.google.protobuf.MapField internalGetGroups() { if (groups_ == null) { return com.google.protobuf.MapField.emptyMapField( GroupsDefaultEntryHolder.defaultEntry); } return groups_; } private com.google.protobuf.MapField internalGetMutableGroups() { onChanged();; if (groups_ == null) { groups_ = com.google.protobuf.MapField.newMapField( GroupsDefaultEntryHolder.defaultEntry); } if (!groups_.isMutable()) { groups_ = groups_.copy(); } return groups_; } public int getGroupsCount() { return internalGetGroups().getMap().size(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public boolean containsGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetGroups().getMap().containsKey(key); } /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGroups() { return getGroupsMap(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public java.util.Map getGroupsMap() { return internalGetGroups().getMap(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearGroups() { internalGetMutableGroups().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ public Builder removeGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableGroups().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableGroups() { return internalGetMutableGroups().getMutableMap(); } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ public Builder putGroups( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableGroups().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigGroupSchema> groups = 1; */ public Builder putAllGroups( java.util.Map values) { internalGetMutableGroups().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } private com.google.protobuf.MapField internalGetMutableValues() { onChanged();; if (values_ == null) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigValueSchema> values = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearValues() { internalGetMutableValues().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigValueSchema> values = 2; */ public Builder removeValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableValues().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableValues() { return internalGetMutableValues().getMutableMap(); } /** * map<string, .common.ConfigValueSchema> values = 2; */ public Builder putValues( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableValues().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigValueSchema> values = 2; */ public Builder putAllValues( java.util.Map values) { internalGetMutableValues().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema> policies_; private com.google.protobuf.MapField internalGetPolicies() { if (policies_ == null) { return com.google.protobuf.MapField.emptyMapField( PoliciesDefaultEntryHolder.defaultEntry); } return policies_; } private com.google.protobuf.MapField internalGetMutablePolicies() { onChanged();; if (policies_ == null) { policies_ = com.google.protobuf.MapField.newMapField( PoliciesDefaultEntryHolder.defaultEntry); } if (!policies_.isMutable()) { policies_ = policies_.copy(); } return policies_; } public int getPoliciesCount() { return internalGetPolicies().getMap().size(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public boolean containsPolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPolicies().getMap().containsKey(key); } /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPolicies() { return getPoliciesMap(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public java.util.Map getPoliciesMap() { return internalGetPolicies().getMap(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getPoliciesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPolicies() { internalGetMutablePolicies().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ public Builder removePolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutablePolicies().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePolicies() { return internalGetMutablePolicies().getMutableMap(); } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ public Builder putPolicies( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutablePolicies().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigPolicySchema> policies = 3; */ public Builder putAllPolicies( java.util.Map values) { internalGetMutablePolicies().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigGroupSchema) } // @@protoc_insertion_point(class_scope:common.ConfigGroupSchema) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigGroupSchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigValueSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigValueSchema) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code common.ConfigValueSchema} */ public static final class ConfigValueSchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigValueSchema) ConfigValueSchemaOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigValueSchema.newBuilder() to construct. private ConfigValueSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigValueSchema() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigValueSchema(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema 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.Configtx.ConfigValueSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigValueSchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigValueSchema) org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValueSchema_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema build() { org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigValueSchema) } // @@protoc_insertion_point(class_scope:common.ConfigValueSchema) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigValueSchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValueSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigPolicySchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigPolicySchema) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code common.ConfigPolicySchema} */ public static final class ConfigPolicySchema extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigPolicySchema) ConfigPolicySchemaOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigPolicySchema.newBuilder() to construct. private ConfigPolicySchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigPolicySchema() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigPolicySchema(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema other = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema 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.Configtx.ConfigPolicySchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigPolicySchema} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigPolicySchema) org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchemaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicySchema_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema build() { org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema result = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigPolicySchema) } // @@protoc_insertion_point(class_scope:common.ConfigPolicySchema) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigPolicySchema parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicySchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:common.Config) com.google.protobuf.MessageOrBuilder { /** * uint64 sequence = 1; * @return The sequence. */ long getSequence(); /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; * @return Whether the channelGroup field is set. */ boolean hasChannelGroup(); /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; * @return The channelGroup. */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup(); /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder(); } /** *
   * Config represents the config for a particular channel
   * 
* * Protobuf type {@code common.Config} */ public static final class Config extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.Config) ConfigOrBuilder { private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Config() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.Config.class, org.hyperledger.fabric.protos.common.Configtx.Config.Builder.class); } public static final int SEQUENCE_FIELD_NUMBER = 1; private long sequence_; /** * uint64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } public static final int CHANNEL_GROUP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup channelGroup_; /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; * @return Whether the channelGroup field is set. */ @java.lang.Override public boolean hasChannelGroup() { return channelGroup_ != null; } /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; * @return The channelGroup. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup() { return channelGroup_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_; } /** *
     * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
     * 
* * .common.ConfigGroup channel_group = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder() { return getChannelGroup(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sequence_ != 0L) { output.writeUInt64(1, sequence_); } if (channelGroup_ != null) { output.writeMessage(2, getChannelGroup()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequence_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, sequence_); } if (channelGroup_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChannelGroup()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.Config)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.Config other = (org.hyperledger.fabric.protos.common.Configtx.Config) obj; if (getSequence() != other.getSequence()) return false; if (hasChannelGroup() != other.hasChannelGroup()) return false; if (hasChannelGroup()) { if (!getChannelGroup() .equals(other.getChannelGroup())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SEQUENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequence()); if (hasChannelGroup()) { hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; hash = (53 * hash) + getChannelGroup().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.Config parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.Config 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.Configtx.Config 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.Configtx.Config parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.Config prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Config represents the config for a particular channel
     * 
* * Protobuf type {@code common.Config} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.Config) org.hyperledger.fabric.protos.common.Configtx.ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.Config.class, org.hyperledger.fabric.protos.common.Configtx.Config.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.Config.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); sequence_ = 0L; if (channelGroupBuilder_ == null) { channelGroup_ = null; } else { channelGroup_ = null; channelGroupBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_Config_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config build() { org.hyperledger.fabric.protos.common.Configtx.Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config buildPartial() { org.hyperledger.fabric.protos.common.Configtx.Config result = new org.hyperledger.fabric.protos.common.Configtx.Config(this); result.sequence_ = sequence_; if (channelGroupBuilder_ == null) { result.channelGroup_ = channelGroup_; } else { result.channelGroup_ = channelGroupBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.Config) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.Config other) { if (other == org.hyperledger.fabric.protos.common.Configtx.Config.getDefaultInstance()) return this; if (other.getSequence() != 0L) { setSequence(other.getSequence()); } if (other.hasChannelGroup()) { mergeChannelGroup(other.getChannelGroup()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { sequence_ = input.readUInt64(); break; } // case 8 case 18: { input.readMessage( getChannelGroupFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long sequence_ ; /** * uint64 sequence = 1; * @return The sequence. */ @java.lang.Override public long getSequence() { return sequence_; } /** * uint64 sequence = 1; * @param value The sequence to set. * @return This builder for chaining. */ public Builder setSequence(long value) { sequence_ = value; onChanged(); return this; } /** * uint64 sequence = 1; * @return This builder for chaining. */ public Builder clearSequence() { sequence_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup channelGroup_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> channelGroupBuilder_; /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; * @return Whether the channelGroup field is set. */ public boolean hasChannelGroup() { return channelGroupBuilder_ != null || channelGroup_ != null; } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; * @return The channelGroup. */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getChannelGroup() { if (channelGroupBuilder_ == null) { return channelGroup_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_; } else { return channelGroupBuilder_.getMessage(); } } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public Builder setChannelGroup(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (channelGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } channelGroup_ = value; onChanged(); } else { channelGroupBuilder_.setMessage(value); } return this; } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public Builder setChannelGroup( org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) { if (channelGroupBuilder_ == null) { channelGroup_ = builderForValue.build(); onChanged(); } else { channelGroupBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public Builder mergeChannelGroup(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (channelGroupBuilder_ == null) { if (channelGroup_ != null) { channelGroup_ = org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(channelGroup_).mergeFrom(value).buildPartial(); } else { channelGroup_ = value; } onChanged(); } else { channelGroupBuilder_.mergeFrom(value); } return this; } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public Builder clearChannelGroup() { if (channelGroupBuilder_ == null) { channelGroup_ = null; onChanged(); } else { channelGroup_ = null; channelGroupBuilder_ = null; } return this; } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getChannelGroupBuilder() { onChanged(); return getChannelGroupFieldBuilder().getBuilder(); } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getChannelGroupOrBuilder() { if (channelGroupBuilder_ != null) { return channelGroupBuilder_.getMessageOrBuilder(); } else { return channelGroup_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : channelGroup_; } } /** *
       * channel_group is a bad name for this, it should be changed to root when API breakage is allowed
       * 
* * .common.ConfigGroup channel_group = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> getChannelGroupFieldBuilder() { if (channelGroupBuilder_ == null) { channelGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>( getChannelGroup(), getParentForChildren(), isClean()); channelGroup_ = null; } return channelGroupBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.Config) } // @@protoc_insertion_point(class_scope:common.Config) private static final org.hyperledger.fabric.protos.common.Configtx.Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.Config(); } public static org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Config parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigUpdateEnvelopeOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigUpdateEnvelope) com.google.protobuf.MessageOrBuilder { /** *
     * A marshaled ConfigUpdate structure
     * 
* * bytes config_update = 1; * @return The configUpdate. */ com.google.protobuf.ByteString getConfigUpdate(); /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ java.util.List getSignaturesList(); /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index); /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ int getSignaturesCount(); /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ java.util.List getSignaturesOrBuilderList(); /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder( int index); } /** * Protobuf type {@code common.ConfigUpdateEnvelope} */ public static final class ConfigUpdateEnvelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigUpdateEnvelope) ConfigUpdateEnvelopeOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigUpdateEnvelope.newBuilder() to construct. private ConfigUpdateEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigUpdateEnvelope() { configUpdate_ = com.google.protobuf.ByteString.EMPTY; signatures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigUpdateEnvelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.Builder.class); } public static final int CONFIG_UPDATE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString configUpdate_; /** *
     * A marshaled ConfigUpdate structure
     * 
* * bytes config_update = 1; * @return The configUpdate. */ @java.lang.Override public com.google.protobuf.ByteString getConfigUpdate() { return configUpdate_; } public static final int SIGNATURES_FIELD_NUMBER = 2; private java.util.List signatures_; /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ @java.lang.Override public java.util.List getSignaturesList() { return signatures_; } /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ @java.lang.Override public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ @java.lang.Override public int getSignaturesCount() { return signatures_.size(); } /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index) { return signatures_.get(index); } /** *
     * Signatures over the config_update
     * 
* * repeated .common.ConfigSignature signatures = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder( int index) { return signatures_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!configUpdate_.isEmpty()) { output.writeBytes(1, configUpdate_); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(2, signatures_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!configUpdate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, configUpdate_); } for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, signatures_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope other = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope) obj; if (!getConfigUpdate() .equals(other.getConfigUpdate())) return false; if (!getSignaturesList() .equals(other.getSignaturesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIG_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getConfigUpdate().hashCode(); if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope 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.Configtx.ConfigUpdateEnvelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigUpdateEnvelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigUpdateEnvelope) org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); configUpdate_ = com.google.protobuf.ByteString.EMPTY; if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); } else { signatures_ = null; signaturesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdateEnvelope_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope build() { org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope result = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope(this); int from_bitField0_ = bitField0_; result.configUpdate_ = configUpdate_; if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope.getDefaultInstance()) return this; if (other.getConfigUpdate() != com.google.protobuf.ByteString.EMPTY) { setConfigUpdate(other.getConfigUpdate()); } if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { configUpdate_ = input.readBytes(); break; } // case 10 case 18: { org.hyperledger.fabric.protos.common.Configtx.ConfigSignature m = input.readMessage( org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.parser(), extensionRegistry); if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(m); } else { signaturesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString configUpdate_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A marshaled ConfigUpdate structure
       * 
* * bytes config_update = 1; * @return The configUpdate. */ @java.lang.Override public com.google.protobuf.ByteString getConfigUpdate() { return configUpdate_; } /** *
       * A marshaled ConfigUpdate structure
       * 
* * bytes config_update = 1; * @param value The configUpdate to set. * @return This builder for chaining. */ public Builder setConfigUpdate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } configUpdate_ = value; onChanged(); return this; } /** *
       * A marshaled ConfigUpdate structure
       * 
* * bytes config_update = 1; * @return This builder for chaining. */ public Builder clearConfigUpdate() { configUpdate_ = getDefaultInstance().getConfigUpdate(); onChanged(); return this; } private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder> signaturesBuilder_; /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder setSignatures( int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder addSignatures(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder addSignatures( org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder addSignatures( int index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder addAllSignatures( java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder getSignaturesBuilder( int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder getSignaturesOrBuilder( int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance()); } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder addSignaturesBuilder( int index) { return getSignaturesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance()); } /** *
       * Signatures over the config_update
       * 
* * repeated .common.ConfigSignature signatures = 2; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigSignature, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder>( signatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigUpdateEnvelope) } // @@protoc_insertion_point(class_scope:common.ConfigUpdateEnvelope) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigUpdateEnvelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateEnvelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigUpdate) com.google.protobuf.MessageOrBuilder { /** *
     * Which channel this config update is for
     * 
* * string channel_id = 1; * @return The channelId. */ java.lang.String getChannelId(); /** *
     * Which channel this config update is for
     * 
* * string channel_id = 1; * @return The bytes for channelId. */ com.google.protobuf.ByteString getChannelIdBytes(); /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; * @return Whether the readSet field is set. */ boolean hasReadSet(); /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; * @return The readSet. */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet(); /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder(); /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; * @return Whether the writeSet field is set. */ boolean hasWriteSet(); /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; * @return The writeSet. */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet(); /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder(); /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ int getIsolatedDataCount(); /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ boolean containsIsolatedData( java.lang.String key); /** * Use {@link #getIsolatedDataMap()} instead. */ @java.lang.Deprecated java.util.Map getIsolatedData(); /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ java.util.Map getIsolatedDataMap(); /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ /* nullable */ com.google.protobuf.ByteString getIsolatedDataOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ com.google.protobuf.ByteString getIsolatedDataOrThrow( java.lang.String key); } /** *
   * ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config
   * it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures
   * resulting in a new total configuration.  The update is applied as follows:
   * 1. The versions from all of the elements in the read_set is verified against the versions in the existing config.
   *    If there is a mismatch in the read versions, then the config update fails and is rejected.
   * 2. Any elements in the write_set with the same version as the read_set are ignored.
   * 3. The corresponding mod_policy for every remaining element in the write_set is collected.
   * 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
   * 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
   * 
* * Protobuf type {@code common.ConfigUpdate} */ public static final class ConfigUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigUpdate) ConfigUpdateOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigUpdate.newBuilder() to construct. private ConfigUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigUpdate() { channelId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetIsolatedData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.Builder.class); } public static final int CHANNEL_ID_FIELD_NUMBER = 1; private volatile java.lang.Object channelId_; /** *
     * Which channel this config update is for
     * 
* * string channel_id = 1; * @return The channelId. */ @java.lang.Override public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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(); channelId_ = s; return s; } } /** *
     * Which channel this config update is for
     * 
* * string channel_id = 1; * @return The bytes for channelId. */ @java.lang.Override public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READ_SET_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup readSet_; /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; * @return Whether the readSet field is set. */ @java.lang.Override public boolean hasReadSet() { return readSet_ != null; } /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; * @return The readSet. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet() { return readSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_; } /** *
     * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
     * 
* * .common.ConfigGroup read_set = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder() { return getReadSet(); } public static final int WRITE_SET_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup writeSet_; /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; * @return Whether the writeSet field is set. */ @java.lang.Override public boolean hasWriteSet() { return writeSet_ != null; } /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; * @return The writeSet. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet() { return writeSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_; } /** *
     * WriteSet lists the portion of the config which was written, this should included updated Versions
     * 
* * .common.ConfigGroup write_set = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder() { return getWriteSet(); } public static final int ISOLATED_DATA_FIELD_NUMBER = 5; private static final class IsolatedDataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.protobuf.ByteString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_IsolatedDataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> isolatedData_; private com.google.protobuf.MapField internalGetIsolatedData() { if (isolatedData_ == null) { return com.google.protobuf.MapField.emptyMapField( IsolatedDataDefaultEntryHolder.defaultEntry); } return isolatedData_; } public int getIsolatedDataCount() { return internalGetIsolatedData().getMap().size(); } /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public boolean containsIsolatedData( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetIsolatedData().getMap().containsKey(key); } /** * Use {@link #getIsolatedDataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getIsolatedData() { return getIsolatedDataMap(); } /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public java.util.Map getIsolatedDataMap() { return internalGetIsolatedData().getMap(); } /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public com.google.protobuf.ByteString getIsolatedDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetIsolatedData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
     * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public com.google.protobuf.ByteString getIsolatedDataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetIsolatedData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelId_); } if (readSet_ != null) { output.writeMessage(2, getReadSet()); } if (writeSet_ != null) { output.writeMessage(3, getWriteSet()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetIsolatedData(), IsolatedDataDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelId_); } if (readSet_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReadSet()); } if (writeSet_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWriteSet()); } for (java.util.Map.Entry entry : internalGetIsolatedData().getMap().entrySet()) { com.google.protobuf.MapEntry isolatedData__ = IsolatedDataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, isolatedData__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate other = (org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate) obj; if (!getChannelId() .equals(other.getChannelId())) return false; if (hasReadSet() != other.hasReadSet()) return false; if (hasReadSet()) { if (!getReadSet() .equals(other.getReadSet())) return false; } if (hasWriteSet() != other.hasWriteSet()) return false; if (hasWriteSet()) { if (!getWriteSet() .equals(other.getWriteSet())) return false; } if (!internalGetIsolatedData().equals( other.internalGetIsolatedData())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; hash = (53 * hash) + getChannelId().hashCode(); if (hasReadSet()) { hash = (37 * hash) + READ_SET_FIELD_NUMBER; hash = (53 * hash) + getReadSet().hashCode(); } if (hasWriteSet()) { hash = (37 * hash) + WRITE_SET_FIELD_NUMBER; hash = (53 * hash) + getWriteSet().hashCode(); } if (!internalGetIsolatedData().getMap().isEmpty()) { hash = (37 * hash) + ISOLATED_DATA_FIELD_NUMBER; hash = (53 * hash) + internalGetIsolatedData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate 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.Configtx.ConfigUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config
     * it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures
     * resulting in a new total configuration.  The update is applied as follows:
     * 1. The versions from all of the elements in the read_set is verified against the versions in the existing config.
     *    If there is a mismatch in the read versions, then the config update fails and is rejected.
     * 2. Any elements in the write_set with the same version as the read_set are ignored.
     * 3. The corresponding mod_policy for every remaining element in the write_set is collected.
     * 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
     * 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
     * 
* * Protobuf type {@code common.ConfigUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigUpdate) org.hyperledger.fabric.protos.common.Configtx.ConfigUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetIsolatedData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableIsolatedData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.class, org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); channelId_ = ""; if (readSetBuilder_ == null) { readSet_ = null; } else { readSet_ = null; readSetBuilder_ = null; } if (writeSetBuilder_ == null) { writeSet_ = null; } else { writeSet_ = null; writeSetBuilder_ = null; } internalGetMutableIsolatedData().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigUpdate_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate build() { org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate result = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate(this); int from_bitField0_ = bitField0_; result.channelId_ = channelId_; if (readSetBuilder_ == null) { result.readSet_ = readSet_; } else { result.readSet_ = readSetBuilder_.build(); } if (writeSetBuilder_ == null) { result.writeSet_ = writeSet_; } else { result.writeSet_ = writeSetBuilder_.build(); } result.isolatedData_ = internalGetIsolatedData(); result.isolatedData_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate.getDefaultInstance()) return this; if (!other.getChannelId().isEmpty()) { channelId_ = other.channelId_; onChanged(); } if (other.hasReadSet()) { mergeReadSet(other.getReadSet()); } if (other.hasWriteSet()) { mergeWriteSet(other.getWriteSet()); } internalGetMutableIsolatedData().mergeFrom( other.internalGetIsolatedData()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { channelId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getReadSetFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getWriteSetFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 42: { com.google.protobuf.MapEntry isolatedData__ = input.readMessage( IsolatedDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableIsolatedData().getMutableMap().put( isolatedData__.getKey(), isolatedData__.getValue()); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object channelId_ = ""; /** *
       * Which channel this config update is for
       * 
* * string channel_id = 1; * @return The channelId. */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Which channel this config update is for
       * 
* * string channel_id = 1; * @return The bytes for channelId. */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Which channel this config update is for
       * 
* * string channel_id = 1; * @param value The channelId to set. * @return This builder for chaining. */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; onChanged(); return this; } /** *
       * Which channel this config update is for
       * 
* * string channel_id = 1; * @return This builder for chaining. */ public Builder clearChannelId() { channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** *
       * Which channel this config update is for
       * 
* * string channel_id = 1; * @param value The bytes for channelId to set. * @return This builder for chaining. */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup readSet_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> readSetBuilder_; /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; * @return Whether the readSet field is set. */ public boolean hasReadSet() { return readSetBuilder_ != null || readSet_ != null; } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; * @return The readSet. */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getReadSet() { if (readSetBuilder_ == null) { return readSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_; } else { return readSetBuilder_.getMessage(); } } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public Builder setReadSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (readSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readSet_ = value; onChanged(); } else { readSetBuilder_.setMessage(value); } return this; } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public Builder setReadSet( org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) { if (readSetBuilder_ == null) { readSet_ = builderForValue.build(); onChanged(); } else { readSetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public Builder mergeReadSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (readSetBuilder_ == null) { if (readSet_ != null) { readSet_ = org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(readSet_).mergeFrom(value).buildPartial(); } else { readSet_ = value; } onChanged(); } else { readSetBuilder_.mergeFrom(value); } return this; } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public Builder clearReadSet() { if (readSetBuilder_ == null) { readSet_ = null; onChanged(); } else { readSet_ = null; readSetBuilder_ = null; } return this; } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getReadSetBuilder() { onChanged(); return getReadSetFieldBuilder().getBuilder(); } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getReadSetOrBuilder() { if (readSetBuilder_ != null) { return readSetBuilder_.getMessageOrBuilder(); } else { return readSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : readSet_; } } /** *
       * ReadSet explicitly lists the portion of the config which was read, this should be sparse with only Version set
       * 
* * .common.ConfigGroup read_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> getReadSetFieldBuilder() { if (readSetBuilder_ == null) { readSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>( getReadSet(), getParentForChildren(), isClean()); readSet_ = null; } return readSetBuilder_; } private org.hyperledger.fabric.protos.common.Configtx.ConfigGroup writeSet_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> writeSetBuilder_; /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; * @return Whether the writeSet field is set. */ public boolean hasWriteSet() { return writeSetBuilder_ != null || writeSet_ != null; } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; * @return The writeSet. */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getWriteSet() { if (writeSetBuilder_ == null) { return writeSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_; } else { return writeSetBuilder_.getMessage(); } } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public Builder setWriteSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (writeSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writeSet_ = value; onChanged(); } else { writeSetBuilder_.setMessage(value); } return this; } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public Builder setWriteSet( org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder builderForValue) { if (writeSetBuilder_ == null) { writeSet_ = builderForValue.build(); onChanged(); } else { writeSetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public Builder mergeWriteSet(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (writeSetBuilder_ == null) { if (writeSet_ != null) { writeSet_ = org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder(writeSet_).mergeFrom(value).buildPartial(); } else { writeSet_ = value; } onChanged(); } else { writeSetBuilder_.mergeFrom(value); } return this; } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public Builder clearWriteSet() { if (writeSetBuilder_ == null) { writeSet_ = null; onChanged(); } else { writeSet_ = null; writeSetBuilder_ = null; } return this; } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder getWriteSetBuilder() { onChanged(); return getWriteSetFieldBuilder().getBuilder(); } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ public org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder getWriteSetOrBuilder() { if (writeSetBuilder_ != null) { return writeSetBuilder_.getMessageOrBuilder(); } else { return writeSet_ == null ? org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance() : writeSet_; } } /** *
       * WriteSet lists the portion of the config which was written, this should included updated Versions
       * 
* * .common.ConfigGroup write_set = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder> getWriteSetFieldBuilder() { if (writeSetBuilder_ == null) { writeSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Configtx.ConfigGroup, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder, org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder>( getWriteSet(), getParentForChildren(), isClean()); writeSet_ = null; } return writeSetBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> isolatedData_; private com.google.protobuf.MapField internalGetIsolatedData() { if (isolatedData_ == null) { return com.google.protobuf.MapField.emptyMapField( IsolatedDataDefaultEntryHolder.defaultEntry); } return isolatedData_; } private com.google.protobuf.MapField internalGetMutableIsolatedData() { onChanged();; if (isolatedData_ == null) { isolatedData_ = com.google.protobuf.MapField.newMapField( IsolatedDataDefaultEntryHolder.defaultEntry); } if (!isolatedData_.isMutable()) { isolatedData_ = isolatedData_.copy(); } return isolatedData_; } public int getIsolatedDataCount() { return internalGetIsolatedData().getMap().size(); } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public boolean containsIsolatedData( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetIsolatedData().getMap().containsKey(key); } /** * Use {@link #getIsolatedDataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getIsolatedData() { return getIsolatedDataMap(); } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public java.util.Map getIsolatedDataMap() { return internalGetIsolatedData().getMap(); } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public com.google.protobuf.ByteString getIsolatedDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetIsolatedData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ @java.lang.Override public com.google.protobuf.ByteString getIsolatedDataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetIsolatedData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearIsolatedData() { internalGetMutableIsolatedData().getMutableMap() .clear(); return this; } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ public Builder removeIsolatedData( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableIsolatedData().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableIsolatedData() { return internalGetMutableIsolatedData().getMutableMap(); } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ public Builder putIsolatedData( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableIsolatedData().getMutableMap() .put(key, value); return this; } /** *
       * Data which is not to be reflected in the resulting Config, but is still needed for some other purpose.  For instance, rscc_seed_data
       * 
* * map<string, bytes> isolated_data = 5; */ public Builder putAllIsolatedData( java.util.Map values) { internalGetMutableIsolatedData().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigUpdate) } // @@protoc_insertion_point(class_scope:common.ConfigUpdate) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigGroup) com.google.protobuf.MessageOrBuilder { /** * uint64 version = 1; * @return The version. */ long getVersion(); /** * map<string, .common.ConfigGroup> groups = 2; */ int getGroupsCount(); /** * map<string, .common.ConfigGroup> groups = 2; */ boolean containsGroups( java.lang.String key); /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Deprecated java.util.Map getGroups(); /** * map<string, .common.ConfigGroup> groups = 2; */ java.util.Map getGroupsMap(); /** * map<string, .common.ConfigGroup> groups = 2; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue); /** * map<string, .common.ConfigGroup> groups = 2; */ org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow( java.lang.String key); /** * map<string, .common.ConfigValue> values = 3; */ int getValuesCount(); /** * map<string, .common.ConfigValue> values = 3; */ boolean containsValues( java.lang.String key); /** * Use {@link #getValuesMap()} instead. */ @java.lang.Deprecated java.util.Map getValues(); /** * map<string, .common.ConfigValue> values = 3; */ java.util.Map getValuesMap(); /** * map<string, .common.ConfigValue> values = 3; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue); /** * map<string, .common.ConfigValue> values = 3; */ org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow( java.lang.String key); /** * map<string, .common.ConfigPolicy> policies = 4; */ int getPoliciesCount(); /** * map<string, .common.ConfigPolicy> policies = 4; */ boolean containsPolicies( java.lang.String key); /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Deprecated java.util.Map getPolicies(); /** * map<string, .common.ConfigPolicy> policies = 4; */ java.util.Map getPoliciesMap(); /** * map<string, .common.ConfigPolicy> policies = 4; */ /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue); /** * map<string, .common.ConfigPolicy> policies = 4; */ org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow( java.lang.String key); /** * string mod_policy = 5; * @return The modPolicy. */ java.lang.String getModPolicy(); /** * string mod_policy = 5; * @return The bytes for modPolicy. */ com.google.protobuf.ByteString getModPolicyBytes(); } /** *
   * ConfigGroup is the hierarchical data structure for holding config
   * 
* * Protobuf type {@code common.ConfigGroup} */ public static final class ConfigGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigGroup) ConfigGroupOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigGroup.newBuilder() to construct. private ConfigGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigGroup() { modPolicy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetGroups(); case 3: return internalGetValues(); case 4: return internalGetPolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } public static final int GROUPS_FIELD_NUMBER = 2; private static final class GroupsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_GroupsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> groups_; private com.google.protobuf.MapField internalGetGroups() { if (groups_ == null) { return com.google.protobuf.MapField.emptyMapField( GroupsDefaultEntryHolder.defaultEntry); } return groups_; } public int getGroupsCount() { return internalGetGroups().getMap().size(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public boolean containsGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetGroups().getMap().containsKey(key); } /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGroups() { return getGroupsMap(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public java.util.Map getGroupsMap() { return internalGetGroups().getMap(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int VALUES_FIELD_NUMBER = 3; private static final class ValuesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_ValuesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int POLICIES_FIELD_NUMBER = 4; private static final class PoliciesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_PoliciesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> policies_; private com.google.protobuf.MapField internalGetPolicies() { if (policies_ == null) { return com.google.protobuf.MapField.emptyMapField( PoliciesDefaultEntryHolder.defaultEntry); } return policies_; } public int getPoliciesCount() { return internalGetPolicies().getMap().size(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public boolean containsPolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPolicies().getMap().containsKey(key); } /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPolicies() { return getPoliciesMap(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public java.util.Map getPoliciesMap() { return internalGetPolicies().getMap(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MOD_POLICY_FIELD_NUMBER = 5; private volatile java.lang.Object modPolicy_; /** * string mod_policy = 5; * @return The modPolicy. */ @java.lang.Override public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; 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(); modPolicy_ = s; return s; } } /** * string mod_policy = 5; * @return The bytes for modPolicy. */ @java.lang.Override public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0L) { output.writeUInt64(1, version_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetGroups(), GroupsDefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetPolicies(), PoliciesDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modPolicy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } for (java.util.Map.Entry entry : internalGetGroups().getMap().entrySet()) { com.google.protobuf.MapEntry groups__ = GroupsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, groups__); } for (java.util.Map.Entry entry : internalGetValues().getMap().entrySet()) { com.google.protobuf.MapEntry values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, values__); } for (java.util.Map.Entry entry : internalGetPolicies().getMap().entrySet()) { com.google.protobuf.MapEntry policies__ = PoliciesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, policies__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modPolicy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroup)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigGroup other = (org.hyperledger.fabric.protos.common.Configtx.ConfigGroup) obj; if (getVersion() != other.getVersion()) return false; if (!internalGetGroups().equals( other.internalGetGroups())) return false; if (!internalGetValues().equals( other.internalGetValues())) return false; if (!internalGetPolicies().equals( other.internalGetPolicies())) return false; if (!getModPolicy() .equals(other.getModPolicy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); if (!internalGetGroups().getMap().isEmpty()) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + internalGetGroups().hashCode(); } if (!internalGetValues().getMap().isEmpty()) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + internalGetValues().hashCode(); } if (!internalGetPolicies().getMap().isEmpty()) { hash = (37 * hash) + POLICIES_FIELD_NUMBER; hash = (53 * hash) + internalGetPolicies().hashCode(); } hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER; hash = (53 * hash) + getModPolicy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup 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.Configtx.ConfigGroup 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.Configtx.ConfigGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConfigGroup is the hierarchical data structure for holding config
     * 
* * Protobuf type {@code common.ConfigGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigGroup) org.hyperledger.fabric.protos.common.Configtx.ConfigGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetGroups(); case 3: return internalGetValues(); case 4: return internalGetPolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableGroups(); case 3: return internalGetMutableValues(); case 4: return internalGetMutablePolicies(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.class, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); version_ = 0L; internalGetMutableGroups().clear(); internalGetMutableValues().clear(); internalGetMutablePolicies().clear(); modPolicy_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigGroup_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup build() { org.hyperledger.fabric.protos.common.Configtx.ConfigGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigGroup result = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroup(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.groups_ = internalGetGroups(); result.groups_.makeImmutable(); result.values_ = internalGetValues(); result.values_.makeImmutable(); result.policies_ = internalGetPolicies(); result.policies_.makeImmutable(); result.modPolicy_ = modPolicy_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigGroup) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigGroup other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigGroup.getDefaultInstance()) return this; if (other.getVersion() != 0L) { setVersion(other.getVersion()); } internalGetMutableGroups().mergeFrom( other.internalGetGroups()); internalGetMutableValues().mergeFrom( other.internalGetValues()); internalGetMutablePolicies().mergeFrom( other.internalGetPolicies()); if (!other.getModPolicy().isEmpty()) { modPolicy_ = other.modPolicy_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { version_ = input.readUInt64(); break; } // case 8 case 18: { com.google.protobuf.MapEntry groups__ = input.readMessage( GroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableGroups().getMutableMap().put( groups__.getKey(), groups__.getValue()); break; } // case 18 case 26: { com.google.protobuf.MapEntry values__ = input.readMessage( ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableValues().getMutableMap().put( values__.getKey(), values__.getValue()); break; } // case 26 case 34: { com.google.protobuf.MapEntry policies__ = input.readMessage( PoliciesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutablePolicies().getMutableMap().put( policies__.getKey(), policies__.getValue()); break; } // case 34 case 42: { modPolicy_ = input.readStringRequireUtf8(); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long version_ ; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** * uint64 version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup> groups_; private com.google.protobuf.MapField internalGetGroups() { if (groups_ == null) { return com.google.protobuf.MapField.emptyMapField( GroupsDefaultEntryHolder.defaultEntry); } return groups_; } private com.google.protobuf.MapField internalGetMutableGroups() { onChanged();; if (groups_ == null) { groups_ = com.google.protobuf.MapField.newMapField( GroupsDefaultEntryHolder.defaultEntry); } if (!groups_.isMutable()) { groups_ = groups_.copy(); } return groups_; } public int getGroupsCount() { return internalGetGroups().getMap().size(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public boolean containsGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetGroups().getMap().containsKey(key); } /** * Use {@link #getGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGroups() { return getGroupsMap(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public java.util.Map getGroupsMap() { return internalGetGroups().getMap(); } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigGroup> groups = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearGroups() { internalGetMutableGroups().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigGroup> groups = 2; */ public Builder removeGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableGroups().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableGroups() { return internalGetMutableGroups().getMutableMap(); } /** * map<string, .common.ConfigGroup> groups = 2; */ public Builder putGroups( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigGroup value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableGroups().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigGroup> groups = 2; */ public Builder putAllGroups( java.util.Map values) { internalGetMutableGroups().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigValue> values_; private com.google.protobuf.MapField internalGetValues() { if (values_ == null) { return com.google.protobuf.MapField.emptyMapField( ValuesDefaultEntryHolder.defaultEntry); } return values_; } private com.google.protobuf.MapField internalGetMutableValues() { onChanged();; if (values_ == null) { values_ = com.google.protobuf.MapField.newMapField( ValuesDefaultEntryHolder.defaultEntry); } if (!values_.isMutable()) { values_ = values_.copy(); } return values_; } public int getValuesCount() { return internalGetValues().getMap().size(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public boolean containsValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetValues().getMap().containsKey(key); } /** * Use {@link #getValuesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getValues() { return getValuesMap(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public java.util.Map getValuesMap() { return internalGetValues().getMap(); } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigValue> values = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getValuesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetValues().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearValues() { internalGetMutableValues().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigValue> values = 3; */ public Builder removeValues( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableValues().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableValues() { return internalGetMutableValues().getMutableMap(); } /** * map<string, .common.ConfigValue> values = 3; */ public Builder putValues( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableValues().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigValue> values = 3; */ public Builder putAllValues( java.util.Map values) { internalGetMutableValues().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy> policies_; private com.google.protobuf.MapField internalGetPolicies() { if (policies_ == null) { return com.google.protobuf.MapField.emptyMapField( PoliciesDefaultEntryHolder.defaultEntry); } return policies_; } private com.google.protobuf.MapField internalGetMutablePolicies() { onChanged();; if (policies_ == null) { policies_ = com.google.protobuf.MapField.newMapField( PoliciesDefaultEntryHolder.defaultEntry); } if (!policies_.isMutable()) { policies_ = policies_.copy(); } return policies_; } public int getPoliciesCount() { return internalGetPolicies().getMap().size(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public boolean containsPolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPolicies().getMap().containsKey(key); } /** * Use {@link #getPoliciesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPolicies() { return getPoliciesMap(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public java.util.Map getPoliciesMap() { return internalGetPolicies().getMap(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrDefault( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .common.ConfigPolicy> policies = 4; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getPoliciesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPolicies().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPolicies() { internalGetMutablePolicies().getMutableMap() .clear(); return this; } /** * map<string, .common.ConfigPolicy> policies = 4; */ public Builder removePolicies( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutablePolicies().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePolicies() { return internalGetMutablePolicies().getMutableMap(); } /** * map<string, .common.ConfigPolicy> policies = 4; */ public Builder putPolicies( java.lang.String key, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutablePolicies().getMutableMap() .put(key, value); return this; } /** * map<string, .common.ConfigPolicy> policies = 4; */ public Builder putAllPolicies( java.util.Map values) { internalGetMutablePolicies().getMutableMap() .putAll(values); return this; } private java.lang.Object modPolicy_ = ""; /** * string mod_policy = 5; * @return The modPolicy. */ public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modPolicy_ = s; return s; } else { return (java.lang.String) ref; } } /** * string mod_policy = 5; * @return The bytes for modPolicy. */ public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string mod_policy = 5; * @param value The modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modPolicy_ = value; onChanged(); return this; } /** * string mod_policy = 5; * @return This builder for chaining. */ public Builder clearModPolicy() { modPolicy_ = getDefaultInstance().getModPolicy(); onChanged(); return this; } /** * string mod_policy = 5; * @param value The bytes for modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modPolicy_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigGroup) } // @@protoc_insertion_point(class_scope:common.ConfigGroup) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigGroup(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigValueOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigValue) com.google.protobuf.MessageOrBuilder { /** * uint64 version = 1; * @return The version. */ long getVersion(); /** * bytes value = 2; * @return The value. */ com.google.protobuf.ByteString getValue(); /** * string mod_policy = 3; * @return The modPolicy. */ java.lang.String getModPolicy(); /** * string mod_policy = 3; * @return The bytes for modPolicy. */ com.google.protobuf.ByteString getModPolicyBytes(); } /** *
   * ConfigValue represents an individual piece of config data
   * 
* * Protobuf type {@code common.ConfigValue} */ public static final class ConfigValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigValue) ConfigValueOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigValue.newBuilder() to construct. private ConfigValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigValue() { value_ = com.google.protobuf.ByteString.EMPTY; modPolicy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigValue.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValue.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } public static final int MOD_POLICY_FIELD_NUMBER = 3; private volatile java.lang.Object modPolicy_; /** * string mod_policy = 3; * @return The modPolicy. */ @java.lang.Override public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; 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(); modPolicy_ = s; return s; } } /** * string mod_policy = 3; * @return The bytes for modPolicy. */ @java.lang.Override public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0L) { output.writeUInt64(1, version_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modPolicy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modPolicy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValue)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigValue other = (org.hyperledger.fabric.protos.common.Configtx.ConfigValue) obj; if (getVersion() != other.getVersion()) return false; if (!getValue() .equals(other.getValue())) return false; if (!getModPolicy() .equals(other.getModPolicy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER; hash = (53 * hash) + getModPolicy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue 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.Configtx.ConfigValue 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.Configtx.ConfigValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConfigValue represents an individual piece of config data
     * 
* * Protobuf type {@code common.ConfigValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigValue) org.hyperledger.fabric.protos.common.Configtx.ConfigValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigValue.class, org.hyperledger.fabric.protos.common.Configtx.ConfigValue.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); version_ = 0L; value_ = com.google.protobuf.ByteString.EMPTY; modPolicy_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigValue_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue build() { org.hyperledger.fabric.protos.common.Configtx.ConfigValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigValue result = new org.hyperledger.fabric.protos.common.Configtx.ConfigValue(this); result.version_ = version_; result.value_ = value_; result.modPolicy_ = modPolicy_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigValue) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigValue other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigValue.getDefaultInstance()) return this; if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.getModPolicy().isEmpty()) { modPolicy_ = other.modPolicy_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { version_ = input.readUInt64(); break; } // case 8 case 18: { value_ = input.readBytes(); break; } // case 18 case 26: { modPolicy_ = input.readStringRequireUtf8(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long version_ ; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** * uint64 version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private java.lang.Object modPolicy_ = ""; /** * string mod_policy = 3; * @return The modPolicy. */ public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modPolicy_ = s; return s; } else { return (java.lang.String) ref; } } /** * string mod_policy = 3; * @return The bytes for modPolicy. */ public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string mod_policy = 3; * @param value The modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modPolicy_ = value; onChanged(); return this; } /** * string mod_policy = 3; * @return This builder for chaining. */ public Builder clearModPolicy() { modPolicy_ = getDefaultInstance().getModPolicy(); onChanged(); return this; } /** * string mod_policy = 3; * @param value The bytes for modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modPolicy_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigValue) } // @@protoc_insertion_point(class_scope:common.ConfigValue) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigValue(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigPolicy) com.google.protobuf.MessageOrBuilder { /** * uint64 version = 1; * @return The version. */ long getVersion(); /** * .common.Policy policy = 2; * @return Whether the policy field is set. */ boolean hasPolicy(); /** * .common.Policy policy = 2; * @return The policy. */ org.hyperledger.fabric.protos.common.Policies.Policy getPolicy(); /** * .common.Policy policy = 2; */ org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder(); /** * string mod_policy = 3; * @return The modPolicy. */ java.lang.String getModPolicy(); /** * string mod_policy = 3; * @return The bytes for modPolicy. */ com.google.protobuf.ByteString getModPolicyBytes(); } /** * Protobuf type {@code common.ConfigPolicy} */ public static final class ConfigPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigPolicy) ConfigPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigPolicy.newBuilder() to construct. private ConfigPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigPolicy() { modPolicy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } public static final int POLICY_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.common.Policies.Policy policy_; /** * .common.Policy policy = 2; * @return Whether the policy field is set. */ @java.lang.Override public boolean hasPolicy() { return policy_ != null; } /** * .common.Policy policy = 2; * @return The policy. */ @java.lang.Override public org.hyperledger.fabric.protos.common.Policies.Policy getPolicy() { return policy_ == null ? org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_; } /** * .common.Policy policy = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder() { return getPolicy(); } public static final int MOD_POLICY_FIELD_NUMBER = 3; private volatile java.lang.Object modPolicy_; /** * string mod_policy = 3; * @return The modPolicy. */ @java.lang.Override public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; 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(); modPolicy_ = s; return s; } } /** * string mod_policy = 3; * @return The bytes for modPolicy. */ @java.lang.Override public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != 0L) { output.writeUInt64(1, version_); } if (policy_ != null) { output.writeMessage(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modPolicy_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, version_); } if (policy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modPolicy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modPolicy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy other = (org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy) obj; if (getVersion() != other.getVersion()) return false; if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { if (!getPolicy() .equals(other.getPolicy())) return false; } if (!getModPolicy() .equals(other.getModPolicy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); if (hasPolicy()) { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } hash = (37 * hash) + MOD_POLICY_FIELD_NUMBER; hash = (53 * hash) + getModPolicy().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy 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.Configtx.ConfigPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigPolicy) org.hyperledger.fabric.protos.common.Configtx.ConfigPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.class, org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); version_ = 0L; if (policyBuilder_ == null) { policy_ = null; } else { policy_ = null; policyBuilder_ = null; } modPolicy_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigPolicy_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy build() { org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy result = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy(this); result.version_ = version_; if (policyBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = policyBuilder_.build(); } result.modPolicy_ = modPolicy_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy.getDefaultInstance()) return this; if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } if (!other.getModPolicy().isEmpty()) { modPolicy_ = other.modPolicy_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { version_ = input.readUInt64(); break; } // case 8 case 18: { input.readMessage( getPolicyFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { modPolicy_ = input.readStringRequireUtf8(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long version_ ; /** * uint64 version = 1; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** * uint64 version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.common.Policies.Policy policy_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder> policyBuilder_; /** * .common.Policy policy = 2; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** * .common.Policy policy = 2; * @return The policy. */ public org.hyperledger.fabric.protos.common.Policies.Policy getPolicy() { if (policyBuilder_ == null) { return policy_ == null ? org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** * .common.Policy policy = 2; */ public Builder setPolicy(org.hyperledger.fabric.protos.common.Policies.Policy value) { if (policyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { policyBuilder_.setMessage(value); } return this; } /** * .common.Policy policy = 2; */ public Builder setPolicy( org.hyperledger.fabric.protos.common.Policies.Policy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { policyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .common.Policy policy = 2; */ public Builder mergePolicy(org.hyperledger.fabric.protos.common.Policies.Policy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = org.hyperledger.fabric.protos.common.Policies.Policy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { policyBuilder_.mergeFrom(value); } return this; } /** * .common.Policy policy = 2; */ public Builder clearPolicy() { if (policyBuilder_ == null) { policy_ = null; onChanged(); } else { policy_ = null; policyBuilder_ = null; } return this; } /** * .common.Policy policy = 2; */ public org.hyperledger.fabric.protos.common.Policies.Policy.Builder getPolicyBuilder() { onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** * .common.Policy policy = 2; */ public org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { return policy_ == null ? org.hyperledger.fabric.protos.common.Policies.Policy.getDefaultInstance() : policy_; } } /** * .common.Policy policy = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Policies.Policy, org.hyperledger.fabric.protos.common.Policies.Policy.Builder, org.hyperledger.fabric.protos.common.Policies.PolicyOrBuilder>( getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } private java.lang.Object modPolicy_ = ""; /** * string mod_policy = 3; * @return The modPolicy. */ public java.lang.String getModPolicy() { java.lang.Object ref = modPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modPolicy_ = s; return s; } else { return (java.lang.String) ref; } } /** * string mod_policy = 3; * @return The bytes for modPolicy. */ public com.google.protobuf.ByteString getModPolicyBytes() { java.lang.Object ref = modPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); modPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string mod_policy = 3; * @param value The modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } modPolicy_ = value; onChanged(); return this; } /** * string mod_policy = 3; * @return This builder for chaining. */ public Builder clearModPolicy() { modPolicy_ = getDefaultInstance().getModPolicy(); onChanged(); return this; } /** * string mod_policy = 3; * @param value The bytes for modPolicy to set. * @return This builder for chaining. */ public Builder setModPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); modPolicy_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigPolicy) } // @@protoc_insertion_point(class_scope:common.ConfigPolicy) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:common.ConfigSignature) com.google.protobuf.MessageOrBuilder { /** *
     * A marshaled SignatureHeader
     * 
* * bytes signature_header = 1; * @return The signatureHeader. */ com.google.protobuf.ByteString getSignatureHeader(); /** *
     * Signature over the concatenation signatureHeader bytes and config bytes
     * 
* * bytes signature = 2; * @return The signature. */ com.google.protobuf.ByteString getSignature(); } /** * Protobuf type {@code common.ConfigSignature} */ public static final class ConfigSignature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:common.ConfigSignature) ConfigSignatureOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigSignature.newBuilder() to construct. private ConfigSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigSignature() { signatureHeader_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigSignature(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.class, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder.class); } public static final int SIGNATURE_HEADER_FIELD_NUMBER = 1; private com.google.protobuf.ByteString signatureHeader_; /** *
     * A marshaled SignatureHeader
     * 
* * bytes signature_header = 1; * @return The signatureHeader. */ @java.lang.Override public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** *
     * Signature over the concatenation signatureHeader bytes and config bytes
     * 
* * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signatureHeader_.isEmpty()) { output.writeBytes(1, signatureHeader_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!signatureHeader_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, signatureHeader_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigSignature)) { return super.equals(obj); } org.hyperledger.fabric.protos.common.Configtx.ConfigSignature other = (org.hyperledger.fabric.protos.common.Configtx.ConfigSignature) obj; if (!getSignatureHeader() .equals(other.getSignatureHeader())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIGNATURE_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignatureHeader().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature 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.Configtx.ConfigSignature 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.Configtx.ConfigSignature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code common.ConfigSignature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:common.ConfigSignature) org.hyperledger.fabric.protos.common.Configtx.ConfigSignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.class, org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.Builder.class); } // Construct using org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); signatureHeader_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.common.Configtx.internal_static_common_ConfigSignature_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstanceForType() { return org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature build() { org.hyperledger.fabric.protos.common.Configtx.ConfigSignature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature buildPartial() { org.hyperledger.fabric.protos.common.Configtx.ConfigSignature result = new org.hyperledger.fabric.protos.common.Configtx.ConfigSignature(this); result.signatureHeader_ = signatureHeader_; result.signature_ = signature_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.common.Configtx.ConfigSignature) { return mergeFrom((org.hyperledger.fabric.protos.common.Configtx.ConfigSignature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.common.Configtx.ConfigSignature other) { if (other == org.hyperledger.fabric.protos.common.Configtx.ConfigSignature.getDefaultInstance()) return this; if (other.getSignatureHeader() != com.google.protobuf.ByteString.EMPTY) { setSignatureHeader(other.getSignatureHeader()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { signatureHeader_ = input.readBytes(); break; } // case 10 case 18: { signature_ = input.readBytes(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString signatureHeader_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A marshaled SignatureHeader
       * 
* * bytes signature_header = 1; * @return The signatureHeader. */ @java.lang.Override public com.google.protobuf.ByteString getSignatureHeader() { return signatureHeader_; } /** *
       * A marshaled SignatureHeader
       * 
* * bytes signature_header = 1; * @param value The signatureHeader to set. * @return This builder for chaining. */ public Builder setSignatureHeader(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signatureHeader_ = value; onChanged(); return this; } /** *
       * A marshaled SignatureHeader
       * 
* * bytes signature_header = 1; * @return This builder for chaining. */ public Builder clearSignatureHeader() { signatureHeader_ = getDefaultInstance().getSignatureHeader(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Signature over the concatenation signatureHeader bytes and config bytes
       * 
* * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
       * Signature over the concatenation signatureHeader bytes and config bytes
       * 
* * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
       * Signature over the concatenation signatureHeader bytes and config bytes
       * 
* * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:common.ConfigSignature) } // @@protoc_insertion_point(class_scope:common.ConfigSignature) private static final org.hyperledger.fabric.protos.common.Configtx.ConfigSignature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.Configtx.ConfigSignature(); } public static org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigSignature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.common.Configtx.ConfigSignature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigEnvelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigEnvelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroupSchema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroupSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroupSchema_GroupsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroupSchema_ValuesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroupSchema_PoliciesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigValueSchema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigValueSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigPolicySchema_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigPolicySchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_Config_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_Config_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigUpdateEnvelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigUpdate_IsolatedDataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigUpdate_IsolatedDataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroup_GroupsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroup_GroupsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroup_ValuesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroup_ValuesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigGroup_PoliciesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigGroup_PoliciesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_common_ConfigSignature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_common_ConfigSignature_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\025common/configtx.proto\022\006common\032\023common/" + "common.proto\032\025common/policies.proto\"W\n\016C" + "onfigEnvelope\022\036\n\006config\030\001 \001(\0132\016.common.C" + "onfig\022%\n\013last_update\030\002 \001(\0132\020.common.Enve" + "lope\"\235\003\n\021ConfigGroupSchema\0225\n\006groups\030\001 \003" + "(\0132%.common.ConfigGroupSchema.GroupsEntr" + "y\0225\n\006values\030\002 \003(\0132%.common.ConfigGroupSc" + "hema.ValuesEntry\0229\n\010policies\030\003 \003(\0132\'.com" + "mon.ConfigGroupSchema.PoliciesEntry\032H\n\013G" + "roupsEntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031" + ".common.ConfigGroupSchema:\0028\001\032H\n\013ValuesE" + "ntry\022\013\n\003key\030\001 \001(\t\022(\n\005value\030\002 \001(\0132\031.commo" + "n.ConfigValueSchema:\0028\001\032K\n\rPoliciesEntry" + "\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.common.Co" + "nfigPolicySchema:\0028\001\"\023\n\021ConfigValueSchem" + "a\"\024\n\022ConfigPolicySchema\"R\n\006Config\022\020\n\010seq" + "uence\030\001 \001(\004\022*\n\rchannel_group\030\002 \001(\0132\023.com" + "mon.ConfigGroupJ\004\010\003\020\004R\004type\"Z\n\024ConfigUpd" + "ateEnvelope\022\025\n\rconfig_update\030\001 \001(\014\022+\n\nsi" + "gnatures\030\002 \003(\0132\027.common.ConfigSignature\"" + "\361\001\n\014ConfigUpdate\022\022\n\nchannel_id\030\001 \001(\t\022%\n\010" + "read_set\030\002 \001(\0132\023.common.ConfigGroup\022&\n\tw" + "rite_set\030\003 \001(\0132\023.common.ConfigGroup\022=\n\ri" + "solated_data\030\005 \003(\0132&.common.ConfigUpdate" + ".IsolatedDataEntry\0323\n\021IsolatedDataEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001J\004\010\004\020\005R\004t" + "ype\"\230\003\n\013ConfigGroup\022\017\n\007version\030\001 \001(\004\022/\n\006" + "groups\030\002 \003(\0132\037.common.ConfigGroup.Groups" + "Entry\022/\n\006values\030\003 \003(\0132\037.common.ConfigGro" + "up.ValuesEntry\0223\n\010policies\030\004 \003(\0132!.commo" + "n.ConfigGroup.PoliciesEntry\022\022\n\nmod_polic" + "y\030\005 \001(\t\032B\n\013GroupsEntry\022\013\n\003key\030\001 \001(\t\022\"\n\005v" + "alue\030\002 \001(\0132\023.common.ConfigGroup:\0028\001\032B\n\013V" + "aluesEntry\022\013\n\003key\030\001 \001(\t\022\"\n\005value\030\002 \001(\0132\023" + ".common.ConfigValue:\0028\001\032E\n\rPoliciesEntry" + "\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.common.Co" + "nfigPolicy:\0028\001\"A\n\013ConfigValue\022\017\n\007version" + "\030\001 \001(\004\022\r\n\005value\030\002 \001(\014\022\022\n\nmod_policy\030\003 \001(" + "\t\"S\n\014ConfigPolicy\022\017\n\007version\030\001 \001(\004\022\036\n\006po" + "licy\030\002 \001(\0132\016.common.Policy\022\022\n\nmod_policy" + "\030\003 \001(\t\">\n\017ConfigSignature\022\030\n\020signature_h" + "eader\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014BV\n$org.hy" + "perledger.fabric.protos.commonZ.github.c" + "om/hyperledger/fabric-protos-go/commonb\006" + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Common.getDescriptor(), org.hyperledger.fabric.protos.common.Policies.getDescriptor(), }); internal_static_common_ConfigEnvelope_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_common_ConfigEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigEnvelope_descriptor, new java.lang.String[] { "Config", "LastUpdate", }); internal_static_common_ConfigGroupSchema_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_common_ConfigGroupSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroupSchema_descriptor, new java.lang.String[] { "Groups", "Values", "Policies", }); internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor = internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(0); internal_static_common_ConfigGroupSchema_GroupsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroupSchema_GroupsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor = internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(1); internal_static_common_ConfigGroupSchema_ValuesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroupSchema_ValuesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor = internal_static_common_ConfigGroupSchema_descriptor.getNestedTypes().get(2); internal_static_common_ConfigGroupSchema_PoliciesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroupSchema_PoliciesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigValueSchema_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_common_ConfigValueSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigValueSchema_descriptor, new java.lang.String[] { }); internal_static_common_ConfigPolicySchema_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_common_ConfigPolicySchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigPolicySchema_descriptor, new java.lang.String[] { }); internal_static_common_Config_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_common_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_Config_descriptor, new java.lang.String[] { "Sequence", "ChannelGroup", }); internal_static_common_ConfigUpdateEnvelope_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_common_ConfigUpdateEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigUpdateEnvelope_descriptor, new java.lang.String[] { "ConfigUpdate", "Signatures", }); internal_static_common_ConfigUpdate_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_common_ConfigUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigUpdate_descriptor, new java.lang.String[] { "ChannelId", "ReadSet", "WriteSet", "IsolatedData", }); internal_static_common_ConfigUpdate_IsolatedDataEntry_descriptor = internal_static_common_ConfigUpdate_descriptor.getNestedTypes().get(0); internal_static_common_ConfigUpdate_IsolatedDataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigUpdate_IsolatedDataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigGroup_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_common_ConfigGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroup_descriptor, new java.lang.String[] { "Version", "Groups", "Values", "Policies", "ModPolicy", }); internal_static_common_ConfigGroup_GroupsEntry_descriptor = internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(0); internal_static_common_ConfigGroup_GroupsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroup_GroupsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigGroup_ValuesEntry_descriptor = internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(1); internal_static_common_ConfigGroup_ValuesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroup_ValuesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigGroup_PoliciesEntry_descriptor = internal_static_common_ConfigGroup_descriptor.getNestedTypes().get(2); internal_static_common_ConfigGroup_PoliciesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigGroup_PoliciesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_common_ConfigValue_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_common_ConfigValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigValue_descriptor, new java.lang.String[] { "Version", "Value", "ModPolicy", }); internal_static_common_ConfigPolicy_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_common_ConfigPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigPolicy_descriptor, new java.lang.String[] { "Version", "Policy", "ModPolicy", }); internal_static_common_ConfigSignature_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_common_ConfigSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_common_ConfigSignature_descriptor, new java.lang.String[] { "SignatureHeader", "Signature", }); org.hyperledger.fabric.protos.common.Common.getDescriptor(); org.hyperledger.fabric.protos.common.Policies.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy