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

org.hyperledger.fabric.protos.orderer.Configuration 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: orderer/configuration.proto

package org.hyperledger.fabric.protos.orderer;

public final class Configuration {
  private Configuration() {}
  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 ConsensusTypeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:orderer.ConsensusType)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The consensus type: "solo", "kafka" or "etcdraft".
     * 
* * string type = 1; * @return The type. */ java.lang.String getType(); /** *
     * The consensus type: "solo", "kafka" or "etcdraft".
     * 
* * string type = 1; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** *
     * Opaque metadata, dependent on the consensus type.
     * 
* * bytes metadata = 2; * @return The metadata. */ com.google.protobuf.ByteString getMetadata(); /** *
     * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
     * 
* * .orderer.ConsensusType.State state = 3; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** *
     * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
     * 
* * .orderer.ConsensusType.State state = 3; * @return The state. */ org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State getState(); } /** * Protobuf type {@code orderer.ConsensusType} */ public static final class ConsensusType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.ConsensusType) ConsensusTypeOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusType.newBuilder() to construct. private ConsensusType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusType() { type_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsensusType(); } @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.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.class, org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.Builder.class); } /** *
     * State defines the orderer mode of operation, typically for consensus-type migration.
     * NORMAL is during normal operation, when consensus-type migration is not, and can not, take place.
     * MAINTENANCE is when the consensus-type can be changed.
     * 
* * Protobuf enum {@code orderer.ConsensusType.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * STATE_NORMAL = 0; */ STATE_NORMAL(0), /** * STATE_MAINTENANCE = 1; */ STATE_MAINTENANCE(1), UNRECOGNIZED(-1), ; /** * STATE_NORMAL = 0; */ public static final int STATE_NORMAL_VALUE = 0; /** * STATE_MAINTENANCE = 1; */ public static final int STATE_MAINTENANCE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_NORMAL; case 1: return STATE_MAINTENANCE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< State> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); public static State valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:orderer.ConsensusType.State) } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** *
     * The consensus type: "solo", "kafka" or "etcdraft".
     * 
* * string type = 1; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
     * The consensus type: "solo", "kafka" or "etcdraft".
     * 
* * string type = 1; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString metadata_; /** *
     * Opaque metadata, dependent on the consensus type.
     * 
* * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int STATE_FIELD_NUMBER = 3; private int state_; /** *
     * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
     * 
* * .orderer.ConsensusType.State state = 3; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** *
     * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
     * 
* * .orderer.ConsensusType.State state = 3; * @return The state. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State getState() { @SuppressWarnings("deprecation") org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State result = org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.valueOf(state_); return result == null ? org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.UNRECOGNIZED : result; } 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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!metadata_.isEmpty()) { output.writeBytes(2, metadata_); } if (state_ != org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.STATE_NORMAL.getNumber()) { output.writeEnum(3, state_); } 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(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, metadata_); } if (state_ != org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.STATE_NORMAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, state_); } 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.orderer.Configuration.ConsensusType)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType other = (org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType) obj; if (!getType() .equals(other.getType())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (state_ != other.state_) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.orderer.Configuration.ConsensusType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.orderer.Configuration.ConsensusType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.orderer.Configuration.ConsensusType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.orderer.Configuration.ConsensusType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType 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.orderer.Configuration.ConsensusType 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 orderer.ConsensusType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.ConsensusType) org.hyperledger.fabric.protos.orderer.Configuration.ConsensusTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.class, org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; state_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ConsensusType_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType build() { org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType buildPartial() { org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType result = new org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType(this); result.type_ = type_; result.metadata_ = metadata_; result.state_ = state_; 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.orderer.Configuration.ConsensusType) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType other) { if (other == org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } 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: { type_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { metadata_ = input.readBytes(); break; } // case 18 case 24: { state_ = input.readEnum(); break; } // case 24 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 java.lang.Object type_ = ""; /** *
       * The consensus type: "solo", "kafka" or "etcdraft".
       * 
* * string type = 1; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The consensus type: "solo", "kafka" or "etcdraft".
       * 
* * string type = 1; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The consensus type: "solo", "kafka" or "etcdraft".
       * 
* * string type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** *
       * The consensus type: "solo", "kafka" or "etcdraft".
       * 
* * string type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * The consensus type: "solo", "kafka" or "etcdraft".
       * 
* * string type = 1; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Opaque metadata, dependent on the consensus type.
       * 
* * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** *
       * Opaque metadata, dependent on the consensus type.
       * 
* * bytes metadata = 2; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** *
       * Opaque metadata, dependent on the consensus type.
       * 
* * bytes metadata = 2; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private int state_ = 0; /** *
       * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
       * 
* * .orderer.ConsensusType.State state = 3; * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** *
       * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
       * 
* * .orderer.ConsensusType.State state = 3; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** *
       * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
       * 
* * .orderer.ConsensusType.State state = 3; * @return The state. */ @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State getState() { @SuppressWarnings("deprecation") org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State result = org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.valueOf(state_); return result == null ? org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State.UNRECOGNIZED : result; } /** *
       * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
       * 
* * .orderer.ConsensusType.State state = 3; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** *
       * The state signals the ordering service to go into maintenance mode, typically for consensus-type migration.
       * 
* * .orderer.ConsensusType.State state = 3; * @return This builder for chaining. */ public Builder clearState() { state_ = 0; 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:orderer.ConsensusType) } // @@protoc_insertion_point(class_scope:orderer.ConsensusType) private static final org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType(); } public static org.hyperledger.fabric.protos.orderer.Configuration.ConsensusType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusType 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.orderer.Configuration.ConsensusType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchSizeOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.BatchSize) com.google.protobuf.MessageOrBuilder { /** *
     * Simply specified as number of messages for now, in the future
     * we may want to allow this to be specified by size in bytes
     * 
* * uint32 max_message_count = 1; * @return The maxMessageCount. */ int getMaxMessageCount(); /** *
     * The byte count of the serialized messages in a batch cannot
     * exceed this value.
     * 
* * uint32 absolute_max_bytes = 2; * @return The absoluteMaxBytes. */ int getAbsoluteMaxBytes(); /** *
     * The byte count of the serialized messages in a batch should not
     * exceed this value.
     * 
* * uint32 preferred_max_bytes = 3; * @return The preferredMaxBytes. */ int getPreferredMaxBytes(); } /** * Protobuf type {@code orderer.BatchSize} */ public static final class BatchSize extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.BatchSize) BatchSizeOrBuilder { private static final long serialVersionUID = 0L; // Use BatchSize.newBuilder() to construct. private BatchSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchSize() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BatchSize(); } @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.orderer.Configuration.internal_static_orderer_BatchSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.Builder.class); } public static final int MAX_MESSAGE_COUNT_FIELD_NUMBER = 1; private int maxMessageCount_; /** *
     * Simply specified as number of messages for now, in the future
     * we may want to allow this to be specified by size in bytes
     * 
* * uint32 max_message_count = 1; * @return The maxMessageCount. */ @java.lang.Override public int getMaxMessageCount() { return maxMessageCount_; } public static final int ABSOLUTE_MAX_BYTES_FIELD_NUMBER = 2; private int absoluteMaxBytes_; /** *
     * The byte count of the serialized messages in a batch cannot
     * exceed this value.
     * 
* * uint32 absolute_max_bytes = 2; * @return The absoluteMaxBytes. */ @java.lang.Override public int getAbsoluteMaxBytes() { return absoluteMaxBytes_; } public static final int PREFERRED_MAX_BYTES_FIELD_NUMBER = 3; private int preferredMaxBytes_; /** *
     * The byte count of the serialized messages in a batch should not
     * exceed this value.
     * 
* * uint32 preferred_max_bytes = 3; * @return The preferredMaxBytes. */ @java.lang.Override public int getPreferredMaxBytes() { return preferredMaxBytes_; } 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 (maxMessageCount_ != 0) { output.writeUInt32(1, maxMessageCount_); } if (absoluteMaxBytes_ != 0) { output.writeUInt32(2, absoluteMaxBytes_); } if (preferredMaxBytes_ != 0) { output.writeUInt32(3, preferredMaxBytes_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxMessageCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, maxMessageCount_); } if (absoluteMaxBytes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, absoluteMaxBytes_); } if (preferredMaxBytes_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, preferredMaxBytes_); } 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.orderer.Configuration.BatchSize)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Configuration.BatchSize other = (org.hyperledger.fabric.protos.orderer.Configuration.BatchSize) obj; if (getMaxMessageCount() != other.getMaxMessageCount()) return false; if (getAbsoluteMaxBytes() != other.getAbsoluteMaxBytes()) return false; if (getPreferredMaxBytes() != other.getPreferredMaxBytes()) 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) + MAX_MESSAGE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageCount(); hash = (37 * hash) + ABSOLUTE_MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + getAbsoluteMaxBytes(); hash = (37 * hash) + PREFERRED_MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + getPreferredMaxBytes(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.orderer.Configuration.BatchSize parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.orderer.Configuration.BatchSize parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.orderer.Configuration.BatchSize parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.orderer.Configuration.BatchSize parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize 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.orderer.Configuration.BatchSize 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 orderer.BatchSize} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.BatchSize) org.hyperledger.fabric.protos.orderer.Configuration.BatchSizeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); maxMessageCount_ = 0; absoluteMaxBytes_ = 0; preferredMaxBytes_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchSize_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize build() { org.hyperledger.fabric.protos.orderer.Configuration.BatchSize result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchSize buildPartial() { org.hyperledger.fabric.protos.orderer.Configuration.BatchSize result = new org.hyperledger.fabric.protos.orderer.Configuration.BatchSize(this); result.maxMessageCount_ = maxMessageCount_; result.absoluteMaxBytes_ = absoluteMaxBytes_; result.preferredMaxBytes_ = preferredMaxBytes_; 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.orderer.Configuration.BatchSize) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.BatchSize)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.BatchSize other) { if (other == org.hyperledger.fabric.protos.orderer.Configuration.BatchSize.getDefaultInstance()) return this; if (other.getMaxMessageCount() != 0) { setMaxMessageCount(other.getMaxMessageCount()); } if (other.getAbsoluteMaxBytes() != 0) { setAbsoluteMaxBytes(other.getAbsoluteMaxBytes()); } if (other.getPreferredMaxBytes() != 0) { setPreferredMaxBytes(other.getPreferredMaxBytes()); } 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: { maxMessageCount_ = input.readUInt32(); break; } // case 8 case 16: { absoluteMaxBytes_ = input.readUInt32(); break; } // case 16 case 24: { preferredMaxBytes_ = input.readUInt32(); break; } // case 24 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 maxMessageCount_ ; /** *
       * Simply specified as number of messages for now, in the future
       * we may want to allow this to be specified by size in bytes
       * 
* * uint32 max_message_count = 1; * @return The maxMessageCount. */ @java.lang.Override public int getMaxMessageCount() { return maxMessageCount_; } /** *
       * Simply specified as number of messages for now, in the future
       * we may want to allow this to be specified by size in bytes
       * 
* * uint32 max_message_count = 1; * @param value The maxMessageCount to set. * @return This builder for chaining. */ public Builder setMaxMessageCount(int value) { maxMessageCount_ = value; onChanged(); return this; } /** *
       * Simply specified as number of messages for now, in the future
       * we may want to allow this to be specified by size in bytes
       * 
* * uint32 max_message_count = 1; * @return This builder for chaining. */ public Builder clearMaxMessageCount() { maxMessageCount_ = 0; onChanged(); return this; } private int absoluteMaxBytes_ ; /** *
       * The byte count of the serialized messages in a batch cannot
       * exceed this value.
       * 
* * uint32 absolute_max_bytes = 2; * @return The absoluteMaxBytes. */ @java.lang.Override public int getAbsoluteMaxBytes() { return absoluteMaxBytes_; } /** *
       * The byte count of the serialized messages in a batch cannot
       * exceed this value.
       * 
* * uint32 absolute_max_bytes = 2; * @param value The absoluteMaxBytes to set. * @return This builder for chaining. */ public Builder setAbsoluteMaxBytes(int value) { absoluteMaxBytes_ = value; onChanged(); return this; } /** *
       * The byte count of the serialized messages in a batch cannot
       * exceed this value.
       * 
* * uint32 absolute_max_bytes = 2; * @return This builder for chaining. */ public Builder clearAbsoluteMaxBytes() { absoluteMaxBytes_ = 0; onChanged(); return this; } private int preferredMaxBytes_ ; /** *
       * The byte count of the serialized messages in a batch should not
       * exceed this value.
       * 
* * uint32 preferred_max_bytes = 3; * @return The preferredMaxBytes. */ @java.lang.Override public int getPreferredMaxBytes() { return preferredMaxBytes_; } /** *
       * The byte count of the serialized messages in a batch should not
       * exceed this value.
       * 
* * uint32 preferred_max_bytes = 3; * @param value The preferredMaxBytes to set. * @return This builder for chaining. */ public Builder setPreferredMaxBytes(int value) { preferredMaxBytes_ = value; onChanged(); return this; } /** *
       * The byte count of the serialized messages in a batch should not
       * exceed this value.
       * 
* * uint32 preferred_max_bytes = 3; * @return This builder for chaining. */ public Builder clearPreferredMaxBytes() { preferredMaxBytes_ = 0; 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:orderer.BatchSize) } // @@protoc_insertion_point(class_scope:orderer.BatchSize) private static final org.hyperledger.fabric.protos.orderer.Configuration.BatchSize DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.BatchSize(); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchSize getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BatchSize 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.orderer.Configuration.BatchSize getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchTimeoutOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.BatchTimeout) com.google.protobuf.MessageOrBuilder { /** *
     * Any duration string parseable by ParseDuration():
     * https://golang.org/pkg/time/#ParseDuration
     * 
* * string timeout = 1; * @return The timeout. */ java.lang.String getTimeout(); /** *
     * Any duration string parseable by ParseDuration():
     * https://golang.org/pkg/time/#ParseDuration
     * 
* * string timeout = 1; * @return The bytes for timeout. */ com.google.protobuf.ByteString getTimeoutBytes(); } /** * Protobuf type {@code orderer.BatchTimeout} */ public static final class BatchTimeout extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.BatchTimeout) BatchTimeoutOrBuilder { private static final long serialVersionUID = 0L; // Use BatchTimeout.newBuilder() to construct. private BatchTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchTimeout() { timeout_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BatchTimeout(); } @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.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.Builder.class); } public static final int TIMEOUT_FIELD_NUMBER = 1; private volatile java.lang.Object timeout_; /** *
     * Any duration string parseable by ParseDuration():
     * https://golang.org/pkg/time/#ParseDuration
     * 
* * string timeout = 1; * @return The timeout. */ @java.lang.Override public java.lang.String getTimeout() { java.lang.Object ref = timeout_; 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(); timeout_ = s; return s; } } /** *
     * Any duration string parseable by ParseDuration():
     * https://golang.org/pkg/time/#ParseDuration
     * 
* * string timeout = 1; * @return The bytes for timeout. */ @java.lang.Override public com.google.protobuf.ByteString getTimeoutBytes() { java.lang.Object ref = timeout_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timeout_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeout_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, timeout_); } 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(timeout_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, timeout_); } 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.orderer.Configuration.BatchTimeout)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout other = (org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout) obj; if (!getTimeout() .equals(other.getTimeout())) 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) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.orderer.Configuration.BatchTimeout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.orderer.Configuration.BatchTimeout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.orderer.Configuration.BatchTimeout parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.orderer.Configuration.BatchTimeout parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout 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.orderer.Configuration.BatchTimeout 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 orderer.BatchTimeout} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.BatchTimeout) org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeoutOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.class, org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); timeout_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_BatchTimeout_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout build() { org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout buildPartial() { org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout result = new org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout(this); result.timeout_ = timeout_; 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.orderer.Configuration.BatchTimeout) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout other) { if (other == org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout.getDefaultInstance()) return this; if (!other.getTimeout().isEmpty()) { timeout_ = other.timeout_; 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 10: { timeout_ = input.readStringRequireUtf8(); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object timeout_ = ""; /** *
       * Any duration string parseable by ParseDuration():
       * https://golang.org/pkg/time/#ParseDuration
       * 
* * string timeout = 1; * @return The timeout. */ public java.lang.String getTimeout() { java.lang.Object ref = timeout_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); timeout_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Any duration string parseable by ParseDuration():
       * https://golang.org/pkg/time/#ParseDuration
       * 
* * string timeout = 1; * @return The bytes for timeout. */ public com.google.protobuf.ByteString getTimeoutBytes() { java.lang.Object ref = timeout_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); timeout_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Any duration string parseable by ParseDuration():
       * https://golang.org/pkg/time/#ParseDuration
       * 
* * string timeout = 1; * @param value The timeout to set. * @return This builder for chaining. */ public Builder setTimeout( java.lang.String value) { if (value == null) { throw new NullPointerException(); } timeout_ = value; onChanged(); return this; } /** *
       * Any duration string parseable by ParseDuration():
       * https://golang.org/pkg/time/#ParseDuration
       * 
* * string timeout = 1; * @return This builder for chaining. */ public Builder clearTimeout() { timeout_ = getDefaultInstance().getTimeout(); onChanged(); return this; } /** *
       * Any duration string parseable by ParseDuration():
       * https://golang.org/pkg/time/#ParseDuration
       * 
* * string timeout = 1; * @param value The bytes for timeout to set. * @return This builder for chaining. */ public Builder setTimeoutBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeout_ = 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:orderer.BatchTimeout) } // @@protoc_insertion_point(class_scope:orderer.BatchTimeout) private static final org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout(); } public static org.hyperledger.fabric.protos.orderer.Configuration.BatchTimeout getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BatchTimeout 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.orderer.Configuration.BatchTimeout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KafkaBrokersOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.KafkaBrokers) com.google.protobuf.MessageOrBuilder { /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @return A list containing the brokers. */ java.util.List getBrokersList(); /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @return The count of brokers. */ int getBrokersCount(); /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @param index The index of the element to return. * @return The brokers at the given index. */ java.lang.String getBrokers(int index); /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @param index The index of the value to return. * @return The bytes of the brokers at the given index. */ com.google.protobuf.ByteString getBrokersBytes(int index); } /** *
   * Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
   * brokers an ordering service
   * 
* * Protobuf type {@code orderer.KafkaBrokers} */ public static final class KafkaBrokers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.KafkaBrokers) KafkaBrokersOrBuilder { private static final long serialVersionUID = 0L; // Use KafkaBrokers.newBuilder() to construct. private KafkaBrokers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KafkaBrokers() { brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KafkaBrokers(); } @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.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.class, org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.Builder.class); } public static final int BROKERS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList brokers_; /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @return A list containing the brokers. */ public com.google.protobuf.ProtocolStringList getBrokersList() { return brokers_; } /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @return The count of brokers. */ public int getBrokersCount() { return brokers_.size(); } /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @param index The index of the element to return. * @return The brokers at the given index. */ public java.lang.String getBrokers(int index) { return brokers_.get(index); } /** *
     * Each broker here should be identified using the (IP|host):port notation,
     * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
     * 
* * repeated string brokers = 1; * @param index The index of the value to return. * @return The bytes of the brokers at the given index. */ public com.google.protobuf.ByteString getBrokersBytes(int index) { return brokers_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < brokers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, brokers_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < brokers_.size(); i++) { dataSize += computeStringSizeNoTag(brokers_.getRaw(i)); } size += dataSize; size += 1 * getBrokersList().size(); } 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.orderer.Configuration.KafkaBrokers)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers other = (org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers) obj; if (!getBrokersList() .equals(other.getBrokersList())) 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 (getBrokersCount() > 0) { hash = (37 * hash) + BROKERS_FIELD_NUMBER; hash = (53 * hash) + getBrokersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.orderer.Configuration.KafkaBrokers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.orderer.Configuration.KafkaBrokers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.orderer.Configuration.KafkaBrokers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.orderer.Configuration.KafkaBrokers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers 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.orderer.Configuration.KafkaBrokers 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; } /** *
     * Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
     * brokers an ordering service
     * 
* * Protobuf type {@code orderer.KafkaBrokers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.KafkaBrokers) org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.class, org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_KafkaBrokers_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers build() { org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers buildPartial() { org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers result = new org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { brokers_ = brokers_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.brokers_ = brokers_; 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.orderer.Configuration.KafkaBrokers) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers other) { if (other == org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers.getDefaultInstance()) return this; if (!other.brokers_.isEmpty()) { if (brokers_.isEmpty()) { brokers_ = other.brokers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBrokersIsMutable(); brokers_.addAll(other.brokers_); } 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 10: { java.lang.String s = input.readStringRequireUtf8(); ensureBrokersIsMutable(); brokers_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringList brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBrokersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { brokers_ = new com.google.protobuf.LazyStringArrayList(brokers_); bitField0_ |= 0x00000001; } } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @return A list containing the brokers. */ public com.google.protobuf.ProtocolStringList getBrokersList() { return brokers_.getUnmodifiableView(); } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @return The count of brokers. */ public int getBrokersCount() { return brokers_.size(); } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param index The index of the element to return. * @return The brokers at the given index. */ public java.lang.String getBrokers(int index) { return brokers_.get(index); } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param index The index of the value to return. * @return The bytes of the brokers at the given index. */ public com.google.protobuf.ByteString getBrokersBytes(int index) { return brokers_.getByteString(index); } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param index The index to set the value at. * @param value The brokers to set. * @return This builder for chaining. */ public Builder setBrokers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBrokersIsMutable(); brokers_.set(index, value); onChanged(); return this; } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param value The brokers to add. * @return This builder for chaining. */ public Builder addBrokers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBrokersIsMutable(); brokers_.add(value); onChanged(); return this; } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param values The brokers to add. * @return This builder for chaining. */ public Builder addAllBrokers( java.lang.Iterable values) { ensureBrokersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, brokers_); onChanged(); return this; } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @return This builder for chaining. */ public Builder clearBrokers() { brokers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Each broker here should be identified using the (IP|host):port notation,
       * e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
       * 
* * repeated string brokers = 1; * @param value The bytes of the brokers to add. * @return This builder for chaining. */ public Builder addBrokersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBrokersIsMutable(); brokers_.add(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:orderer.KafkaBrokers) } // @@protoc_insertion_point(class_scope:orderer.KafkaBrokers) private static final org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers(); } public static org.hyperledger.fabric.protos.orderer.Configuration.KafkaBrokers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KafkaBrokers 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.orderer.Configuration.KafkaBrokers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChannelRestrictionsOrBuilder extends // @@protoc_insertion_point(interface_extends:orderer.ChannelRestrictions) com.google.protobuf.MessageOrBuilder { /** *
     * The max count of channels to allow to be created, a value of 0 indicates no limit
     * 
* * uint64 max_count = 1; * @return The maxCount. */ long getMaxCount(); } /** *
   * ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
   * 
* * Protobuf type {@code orderer.ChannelRestrictions} */ public static final class ChannelRestrictions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:orderer.ChannelRestrictions) ChannelRestrictionsOrBuilder { private static final long serialVersionUID = 0L; // Use ChannelRestrictions.newBuilder() to construct. private ChannelRestrictions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChannelRestrictions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChannelRestrictions(); } @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.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.class, org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.Builder.class); } public static final int MAX_COUNT_FIELD_NUMBER = 1; private long maxCount_; /** *
     * The max count of channels to allow to be created, a value of 0 indicates no limit
     * 
* * uint64 max_count = 1; * @return The maxCount. */ @java.lang.Override public long getMaxCount() { return maxCount_; } 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 (maxCount_ != 0L) { output.writeUInt64(1, maxCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, maxCount_); } 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.orderer.Configuration.ChannelRestrictions)) { return super.equals(obj); } org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions other = (org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions) obj; if (getMaxCount() != other.getMaxCount()) 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) + MAX_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions 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; } /** *
     * ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
     * 
* * Protobuf type {@code orderer.ChannelRestrictions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:orderer.ChannelRestrictions) org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.class, org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.Builder.class); } // Construct using org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); maxCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.orderer.Configuration.internal_static_orderer_ChannelRestrictions_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions getDefaultInstanceForType() { return org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions build() { org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions buildPartial() { org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions result = new org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions(this); result.maxCount_ = maxCount_; 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.orderer.Configuration.ChannelRestrictions) { return mergeFrom((org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions other) { if (other == org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions.getDefaultInstance()) return this; if (other.getMaxCount() != 0L) { setMaxCount(other.getMaxCount()); } 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: { maxCount_ = input.readUInt64(); break; } // case 8 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 maxCount_ ; /** *
       * The max count of channels to allow to be created, a value of 0 indicates no limit
       * 
* * uint64 max_count = 1; * @return The maxCount. */ @java.lang.Override public long getMaxCount() { return maxCount_; } /** *
       * The max count of channels to allow to be created, a value of 0 indicates no limit
       * 
* * uint64 max_count = 1; * @param value The maxCount to set. * @return This builder for chaining. */ public Builder setMaxCount(long value) { maxCount_ = value; onChanged(); return this; } /** *
       * The max count of channels to allow to be created, a value of 0 indicates no limit
       * 
* * uint64 max_count = 1; * @return This builder for chaining. */ public Builder clearMaxCount() { maxCount_ = 0L; 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:orderer.ChannelRestrictions) } // @@protoc_insertion_point(class_scope:orderer.ChannelRestrictions) private static final org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions(); } public static org.hyperledger.fabric.protos.orderer.Configuration.ChannelRestrictions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChannelRestrictions 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.orderer.Configuration.ChannelRestrictions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_ConsensusType_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_ConsensusType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_BatchSize_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_BatchSize_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_BatchTimeout_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_BatchTimeout_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_KafkaBrokers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_KafkaBrokers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_orderer_ChannelRestrictions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_orderer_ChannelRestrictions_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\033orderer/configuration.proto\022\007orderer\"\216" + "\001\n\rConsensusType\022\014\n\004type\030\001 \001(\t\022\020\n\010metada" + "ta\030\002 \001(\014\022+\n\005state\030\003 \001(\0162\034.orderer.Consen" + "susType.State\"0\n\005State\022\020\n\014STATE_NORMAL\020\000" + "\022\025\n\021STATE_MAINTENANCE\020\001\"_\n\tBatchSize\022\031\n\021" + "max_message_count\030\001 \001(\r\022\032\n\022absolute_max_" + "bytes\030\002 \001(\r\022\033\n\023preferred_max_bytes\030\003 \001(\r" + "\"\037\n\014BatchTimeout\022\017\n\007timeout\030\001 \001(\t\"\037\n\014Kaf" + "kaBrokers\022\017\n\007brokers\030\001 \003(\t\"(\n\023ChannelRes" + "trictions\022\021\n\tmax_count\030\001 \001(\004BX\n%org.hype" + "rledger.fabric.protos.ordererZ/github.co" + "m/hyperledger/fabric-protos-go/ordererb\006" + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_orderer_ConsensusType_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_orderer_ConsensusType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_ConsensusType_descriptor, new java.lang.String[] { "Type", "Metadata", "State", }); internal_static_orderer_BatchSize_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_orderer_BatchSize_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_BatchSize_descriptor, new java.lang.String[] { "MaxMessageCount", "AbsoluteMaxBytes", "PreferredMaxBytes", }); internal_static_orderer_BatchTimeout_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_orderer_BatchTimeout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_BatchTimeout_descriptor, new java.lang.String[] { "Timeout", }); internal_static_orderer_KafkaBrokers_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_orderer_KafkaBrokers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_KafkaBrokers_descriptor, new java.lang.String[] { "Brokers", }); internal_static_orderer_ChannelRestrictions_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_orderer_ChannelRestrictions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_orderer_ChannelRestrictions_descriptor, new java.lang.String[] { "MaxCount", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy