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

com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_persqueue_cluster_discovery.proto

package com.yandex.ydb.persqueue.cluster_discovery;

public final class YdbPersqueueClusterDiscovery {
  private YdbPersqueueClusterDiscovery() {}
  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 WriteSessionParamsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.WriteSessionParams)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Path to the topic to write to.
     * 
* * string topic = 1; * @return The topic. */ java.lang.String getTopic(); /** *
     * Path to the topic to write to.
     * 
* * string topic = 1; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * Message group identifier.
     * 
* * bytes source_id = 2; * @return The sourceId. */ com.google.protobuf.ByteString getSourceId(); /** *
     * Partition group to write to. 0 by default.
     * 
* * uint32 partition_group = 3; * @return The partitionGroup. */ int getPartitionGroup(); /** *
     * Force the specified cluster via its name. Leave it empty by default.
     * 
* * string preferred_cluster_name = 4; * @return The preferredClusterName. */ java.lang.String getPreferredClusterName(); /** *
     * Force the specified cluster via its name. Leave it empty by default.
     * 
* * string preferred_cluster_name = 4; * @return The bytes for preferredClusterName. */ com.google.protobuf.ByteString getPreferredClusterNameBytes(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.WriteSessionParams} */ public static final class WriteSessionParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.WriteSessionParams) WriteSessionParamsOrBuilder { private static final long serialVersionUID = 0L; // Use WriteSessionParams.newBuilder() to construct. private WriteSessionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteSessionParams() { topic_ = ""; sourceId_ = com.google.protobuf.ByteString.EMPTY; preferredClusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteSessionParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WriteSessionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); topic_ = s; break; } case 18: { sourceId_ = input.readBytes(); break; } case 24: { partitionGroup_ = input.readUInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); preferredClusterName_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** *
     * Path to the topic to write to.
     * 
* * string topic = 1; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; 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(); topic_ = s; return s; } } /** *
     * Path to the topic to write to.
     * 
* * string topic = 1; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString sourceId_; /** *
     * Message group identifier.
     * 
* * bytes source_id = 2; * @return The sourceId. */ @java.lang.Override public com.google.protobuf.ByteString getSourceId() { return sourceId_; } public static final int PARTITION_GROUP_FIELD_NUMBER = 3; private int partitionGroup_; /** *
     * Partition group to write to. 0 by default.
     * 
* * uint32 partition_group = 3; * @return The partitionGroup. */ @java.lang.Override public int getPartitionGroup() { return partitionGroup_; } public static final int PREFERRED_CLUSTER_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object preferredClusterName_; /** *
     * Force the specified cluster via its name. Leave it empty by default.
     * 
* * string preferred_cluster_name = 4; * @return The preferredClusterName. */ @java.lang.Override public java.lang.String getPreferredClusterName() { java.lang.Object ref = preferredClusterName_; 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(); preferredClusterName_ = s; return s; } } /** *
     * Force the specified cluster via its name. Leave it empty by default.
     * 
* * string preferred_cluster_name = 4; * @return The bytes for preferredClusterName. */ @java.lang.Override public com.google.protobuf.ByteString getPreferredClusterNameBytes() { java.lang.Object ref = preferredClusterName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preferredClusterName_ = 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(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (!sourceId_.isEmpty()) { output.writeBytes(2, sourceId_); } if (partitionGroup_ != 0) { output.writeUInt32(3, partitionGroup_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredClusterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, preferredClusterName_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (!sourceId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, sourceId_); } if (partitionGroup_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, partitionGroup_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredClusterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, preferredClusterName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams) obj; if (!getTopic() .equals(other.getTopic())) return false; if (!getSourceId() .equals(other.getSourceId())) return false; if (getPartitionGroup() != other.getPartitionGroup()) return false; if (!getPreferredClusterName() .equals(other.getPreferredClusterName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceId().hashCode(); hash = (37 * hash) + PARTITION_GROUP_FIELD_NUMBER; hash = (53 * hash) + getPartitionGroup(); hash = (37 * hash) + PREFERRED_CLUSTER_NAME_FIELD_NUMBER; hash = (53 * hash) + getPreferredClusterName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams 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 Ydb.PersQueue.ClusterDiscovery.WriteSessionParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.WriteSessionParams) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; sourceId_ = com.google.protobuf.ByteString.EMPTY; partitionGroup_ = 0; preferredClusterName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams(this); result.topic_ = topic_; result.sourceId_ = sourceId_; result.partitionGroup_ = partitionGroup_; result.preferredClusterName_ = preferredClusterName_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } if (other.getSourceId() != com.google.protobuf.ByteString.EMPTY) { setSourceId(other.getSourceId()); } if (other.getPartitionGroup() != 0) { setPartitionGroup(other.getPartitionGroup()); } if (!other.getPreferredClusterName().isEmpty()) { preferredClusterName_ = other.preferredClusterName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object topic_ = ""; /** *
       * Path to the topic to write to.
       * 
* * string topic = 1; * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Path to the topic to write to.
       * 
* * string topic = 1; * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path to the topic to write to.
       * 
* * string topic = 1; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); return this; } /** *
       * Path to the topic to write to.
       * 
* * string topic = 1; * @return This builder for chaining. */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** *
       * Path to the topic to write to.
       * 
* * string topic = 1; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; onChanged(); return this; } private com.google.protobuf.ByteString sourceId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Message group identifier.
       * 
* * bytes source_id = 2; * @return The sourceId. */ @java.lang.Override public com.google.protobuf.ByteString getSourceId() { return sourceId_; } /** *
       * Message group identifier.
       * 
* * bytes source_id = 2; * @param value The sourceId to set. * @return This builder for chaining. */ public Builder setSourceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sourceId_ = value; onChanged(); return this; } /** *
       * Message group identifier.
       * 
* * bytes source_id = 2; * @return This builder for chaining. */ public Builder clearSourceId() { sourceId_ = getDefaultInstance().getSourceId(); onChanged(); return this; } private int partitionGroup_ ; /** *
       * Partition group to write to. 0 by default.
       * 
* * uint32 partition_group = 3; * @return The partitionGroup. */ @java.lang.Override public int getPartitionGroup() { return partitionGroup_; } /** *
       * Partition group to write to. 0 by default.
       * 
* * uint32 partition_group = 3; * @param value The partitionGroup to set. * @return This builder for chaining. */ public Builder setPartitionGroup(int value) { partitionGroup_ = value; onChanged(); return this; } /** *
       * Partition group to write to. 0 by default.
       * 
* * uint32 partition_group = 3; * @return This builder for chaining. */ public Builder clearPartitionGroup() { partitionGroup_ = 0; onChanged(); return this; } private java.lang.Object preferredClusterName_ = ""; /** *
       * Force the specified cluster via its name. Leave it empty by default.
       * 
* * string preferred_cluster_name = 4; * @return The preferredClusterName. */ public java.lang.String getPreferredClusterName() { java.lang.Object ref = preferredClusterName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); preferredClusterName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Force the specified cluster via its name. Leave it empty by default.
       * 
* * string preferred_cluster_name = 4; * @return The bytes for preferredClusterName. */ public com.google.protobuf.ByteString getPreferredClusterNameBytes() { java.lang.Object ref = preferredClusterName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); preferredClusterName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Force the specified cluster via its name. Leave it empty by default.
       * 
* * string preferred_cluster_name = 4; * @param value The preferredClusterName to set. * @return This builder for chaining. */ public Builder setPreferredClusterName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } preferredClusterName_ = value; onChanged(); return this; } /** *
       * Force the specified cluster via its name. Leave it empty by default.
       * 
* * string preferred_cluster_name = 4; * @return This builder for chaining. */ public Builder clearPreferredClusterName() { preferredClusterName_ = getDefaultInstance().getPreferredClusterName(); onChanged(); return this; } /** *
       * Force the specified cluster via its name. Leave it empty by default.
       * 
* * string preferred_cluster_name = 4; * @param value The bytes for preferredClusterName to set. * @return This builder for chaining. */ public Builder setPreferredClusterNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); preferredClusterName_ = 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:Ydb.PersQueue.ClusterDiscovery.WriteSessionParams) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.WriteSessionParams) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteSessionParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WriteSessionParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClusterInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.ClusterInfo) com.google.protobuf.MessageOrBuilder { /** *
     * A host discovery endpoint to use at the next step.
     * 
* * string endpoint = 1; * @return The endpoint. */ java.lang.String getEndpoint(); /** *
     * A host discovery endpoint to use at the next step.
     * 
* * string endpoint = 1; * @return The bytes for endpoint. */ com.google.protobuf.ByteString getEndpointBytes(); /** *
     * An official cluster name.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * An official cluster name.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Is the cluster available right now?
     * 
* * bool available = 3; * @return The available. */ boolean getAvailable(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.ClusterInfo} */ public static final class ClusterInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.ClusterInfo) ClusterInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterInfo.newBuilder() to construct. private ClusterInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterInfo() { endpoint_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); endpoint_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { available_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** *
     * A host discovery endpoint to use at the next step.
     * 
* * string endpoint = 1; * @return The endpoint. */ @java.lang.Override public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; } } /** *
     * A host discovery endpoint to use at the next step.
     * 
* * string endpoint = 1; * @return The bytes for endpoint. */ @java.lang.Override public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * An official cluster name.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * An official cluster name.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AVAILABLE_FIELD_NUMBER = 3; private boolean available_; /** *
     * Is the cluster available right now?
     * 
* * bool available = 3; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } 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(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (available_ != false) { output.writeBool(3, available_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (available_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, available_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo) obj; if (!getEndpoint() .equals(other.getEndpoint())) return false; if (!getName() .equals(other.getName())) return false; if (getAvailable() != other.getAvailable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + AVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAvailable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo 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 Ydb.PersQueue.ClusterDiscovery.ClusterInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.ClusterInfo) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); endpoint_ = ""; name_ = ""; available_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo(this); result.endpoint_ = endpoint_; result.name_ = name_; result.available_ = available_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getAvailable() != false) { setAvailable(other.getAvailable()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object endpoint_ = ""; /** *
       * A host discovery endpoint to use at the next step.
       * 
* * string endpoint = 1; * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A host discovery endpoint to use at the next step.
       * 
* * string endpoint = 1; * @return The bytes for endpoint. */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A host discovery endpoint to use at the next step.
       * 
* * string endpoint = 1; * @param value The endpoint to set. * @return This builder for chaining. */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** *
       * A host discovery endpoint to use at the next step.
       * 
* * string endpoint = 1; * @return This builder for chaining. */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** *
       * A host discovery endpoint to use at the next step.
       * 
* * string endpoint = 1; * @param value The bytes for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpoint_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * An official cluster name.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An official cluster name.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An official cluster name.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * An official cluster name.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * An official cluster name.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean available_ ; /** *
       * Is the cluster available right now?
       * 
* * bool available = 3; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } /** *
       * Is the cluster available right now?
       * 
* * bool available = 3; * @param value The available to set. * @return This builder for chaining. */ public Builder setAvailable(boolean value) { available_ = value; onChanged(); return this; } /** *
       * Is the cluster available right now?
       * 
* * bool available = 3; * @return This builder for chaining. */ public Builder clearAvailable() { available_ = false; 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:Ydb.PersQueue.ClusterDiscovery.ClusterInfo) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.ClusterInfo) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadSessionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.ReadSessionParams) com.google.protobuf.MessageOrBuilder { /** *
     * Path to the topic to read from.
     * 
* * string topic = 1; * @return The topic. */ java.lang.String getTopic(); /** *
     * Path to the topic to read from.
     * 
* * string topic = 1; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * string mirror_to_cluster = 2; * @return Whether the mirrorToCluster field is set. */ boolean hasMirrorToCluster(); /** * string mirror_to_cluster = 2; * @return The mirrorToCluster. */ java.lang.String getMirrorToCluster(); /** * string mirror_to_cluster = 2; * @return The bytes for mirrorToCluster. */ com.google.protobuf.ByteString getMirrorToClusterBytes(); /** * .google.protobuf.Empty all_original = 3; * @return Whether the allOriginal field is set. */ boolean hasAllOriginal(); /** * .google.protobuf.Empty all_original = 3; * @return The allOriginal. */ com.google.protobuf.Empty getAllOriginal(); /** * .google.protobuf.Empty all_original = 3; */ com.google.protobuf.EmptyOrBuilder getAllOriginalOrBuilder(); public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.ReadRuleCase getReadRuleCase(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.ReadSessionParams} */ public static final class ReadSessionParams extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.ReadSessionParams) ReadSessionParamsOrBuilder { private static final long serialVersionUID = 0L; // Use ReadSessionParams.newBuilder() to construct. private ReadSessionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadSessionParams() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadSessionParams(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadSessionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); topic_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); readRuleCase_ = 2; readRule_ = s; break; } case 26: { com.google.protobuf.Empty.Builder subBuilder = null; if (readRuleCase_ == 3) { subBuilder = ((com.google.protobuf.Empty) readRule_).toBuilder(); } readRule_ = input.readMessage(com.google.protobuf.Empty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.Empty) readRule_); readRule_ = subBuilder.buildPartial(); } readRuleCase_ = 3; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder.class); } private int readRuleCase_ = 0; private java.lang.Object readRule_; public enum ReadRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MIRROR_TO_CLUSTER(2), ALL_ORIGINAL(3), READRULE_NOT_SET(0); private final int value; private ReadRuleCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ReadRuleCase valueOf(int value) { return forNumber(value); } public static ReadRuleCase forNumber(int value) { switch (value) { case 2: return MIRROR_TO_CLUSTER; case 3: return ALL_ORIGINAL; case 0: return READRULE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReadRuleCase getReadRuleCase() { return ReadRuleCase.forNumber( readRuleCase_); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** *
     * Path to the topic to read from.
     * 
* * string topic = 1; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; 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(); topic_ = s; return s; } } /** *
     * Path to the topic to read from.
     * 
* * string topic = 1; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIRROR_TO_CLUSTER_FIELD_NUMBER = 2; /** * string mirror_to_cluster = 2; * @return Whether the mirrorToCluster field is set. */ public boolean hasMirrorToCluster() { return readRuleCase_ == 2; } /** * string mirror_to_cluster = 2; * @return The mirrorToCluster. */ public java.lang.String getMirrorToCluster() { java.lang.Object ref = ""; if (readRuleCase_ == 2) { ref = readRule_; } 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(); if (readRuleCase_ == 2) { readRule_ = s; } return s; } } /** * string mirror_to_cluster = 2; * @return The bytes for mirrorToCluster. */ public com.google.protobuf.ByteString getMirrorToClusterBytes() { java.lang.Object ref = ""; if (readRuleCase_ == 2) { ref = readRule_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (readRuleCase_ == 2) { readRule_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALL_ORIGINAL_FIELD_NUMBER = 3; /** * .google.protobuf.Empty all_original = 3; * @return Whether the allOriginal field is set. */ @java.lang.Override public boolean hasAllOriginal() { return readRuleCase_ == 3; } /** * .google.protobuf.Empty all_original = 3; * @return The allOriginal. */ @java.lang.Override public com.google.protobuf.Empty getAllOriginal() { if (readRuleCase_ == 3) { return (com.google.protobuf.Empty) readRule_; } return com.google.protobuf.Empty.getDefaultInstance(); } /** * .google.protobuf.Empty all_original = 3; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getAllOriginalOrBuilder() { if (readRuleCase_ == 3) { return (com.google.protobuf.Empty) readRule_; } return com.google.protobuf.Empty.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (readRuleCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, readRule_); } if (readRuleCase_ == 3) { output.writeMessage(3, (com.google.protobuf.Empty) readRule_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (readRuleCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, readRule_); } if (readRuleCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.protobuf.Empty) readRule_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams) obj; if (!getTopic() .equals(other.getTopic())) return false; if (!getReadRuleCase().equals(other.getReadRuleCase())) return false; switch (readRuleCase_) { case 2: if (!getMirrorToCluster() .equals(other.getMirrorToCluster())) return false; break; case 3: if (!getAllOriginal() .equals(other.getAllOriginal())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); switch (readRuleCase_) { case 2: hash = (37 * hash) + MIRROR_TO_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getMirrorToCluster().hashCode(); break; case 3: hash = (37 * hash) + ALL_ORIGINAL_FIELD_NUMBER; hash = (53 * hash) + getAllOriginal().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams 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 Ydb.PersQueue.ClusterDiscovery.ReadSessionParams} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.ReadSessionParams) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; readRuleCase_ = 0; readRule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams(this); result.topic_ = topic_; if (readRuleCase_ == 2) { result.readRule_ = readRule_; } if (readRuleCase_ == 3) { if (allOriginalBuilder_ == null) { result.readRule_ = readRule_; } else { result.readRule_ = allOriginalBuilder_.build(); } } result.readRuleCase_ = readRuleCase_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } switch (other.getReadRuleCase()) { case MIRROR_TO_CLUSTER: { readRuleCase_ = 2; readRule_ = other.readRule_; onChanged(); break; } case ALL_ORIGINAL: { mergeAllOriginal(other.getAllOriginal()); break; } case READRULE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int readRuleCase_ = 0; private java.lang.Object readRule_; public ReadRuleCase getReadRuleCase() { return ReadRuleCase.forNumber( readRuleCase_); } public Builder clearReadRule() { readRuleCase_ = 0; readRule_ = null; onChanged(); return this; } private java.lang.Object topic_ = ""; /** *
       * Path to the topic to read from.
       * 
* * string topic = 1; * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Path to the topic to read from.
       * 
* * string topic = 1; * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path to the topic to read from.
       * 
* * string topic = 1; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); return this; } /** *
       * Path to the topic to read from.
       * 
* * string topic = 1; * @return This builder for chaining. */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** *
       * Path to the topic to read from.
       * 
* * string topic = 1; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; onChanged(); return this; } /** * string mirror_to_cluster = 2; * @return Whether the mirrorToCluster field is set. */ @java.lang.Override public boolean hasMirrorToCluster() { return readRuleCase_ == 2; } /** * string mirror_to_cluster = 2; * @return The mirrorToCluster. */ @java.lang.Override public java.lang.String getMirrorToCluster() { java.lang.Object ref = ""; if (readRuleCase_ == 2) { ref = readRule_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (readRuleCase_ == 2) { readRule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string mirror_to_cluster = 2; * @return The bytes for mirrorToCluster. */ @java.lang.Override public com.google.protobuf.ByteString getMirrorToClusterBytes() { java.lang.Object ref = ""; if (readRuleCase_ == 2) { ref = readRule_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (readRuleCase_ == 2) { readRule_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string mirror_to_cluster = 2; * @param value The mirrorToCluster to set. * @return This builder for chaining. */ public Builder setMirrorToCluster( java.lang.String value) { if (value == null) { throw new NullPointerException(); } readRuleCase_ = 2; readRule_ = value; onChanged(); return this; } /** * string mirror_to_cluster = 2; * @return This builder for chaining. */ public Builder clearMirrorToCluster() { if (readRuleCase_ == 2) { readRuleCase_ = 0; readRule_ = null; onChanged(); } return this; } /** * string mirror_to_cluster = 2; * @param value The bytes for mirrorToCluster to set. * @return This builder for chaining. */ public Builder setMirrorToClusterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readRuleCase_ = 2; readRule_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> allOriginalBuilder_; /** * .google.protobuf.Empty all_original = 3; * @return Whether the allOriginal field is set. */ @java.lang.Override public boolean hasAllOriginal() { return readRuleCase_ == 3; } /** * .google.protobuf.Empty all_original = 3; * @return The allOriginal. */ @java.lang.Override public com.google.protobuf.Empty getAllOriginal() { if (allOriginalBuilder_ == null) { if (readRuleCase_ == 3) { return (com.google.protobuf.Empty) readRule_; } return com.google.protobuf.Empty.getDefaultInstance(); } else { if (readRuleCase_ == 3) { return allOriginalBuilder_.getMessage(); } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty all_original = 3; */ public Builder setAllOriginal(com.google.protobuf.Empty value) { if (allOriginalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readRule_ = value; onChanged(); } else { allOriginalBuilder_.setMessage(value); } readRuleCase_ = 3; return this; } /** * .google.protobuf.Empty all_original = 3; */ public Builder setAllOriginal( com.google.protobuf.Empty.Builder builderForValue) { if (allOriginalBuilder_ == null) { readRule_ = builderForValue.build(); onChanged(); } else { allOriginalBuilder_.setMessage(builderForValue.build()); } readRuleCase_ = 3; return this; } /** * .google.protobuf.Empty all_original = 3; */ public Builder mergeAllOriginal(com.google.protobuf.Empty value) { if (allOriginalBuilder_ == null) { if (readRuleCase_ == 3 && readRule_ != com.google.protobuf.Empty.getDefaultInstance()) { readRule_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) readRule_) .mergeFrom(value).buildPartial(); } else { readRule_ = value; } onChanged(); } else { if (readRuleCase_ == 3) { allOriginalBuilder_.mergeFrom(value); } allOriginalBuilder_.setMessage(value); } readRuleCase_ = 3; return this; } /** * .google.protobuf.Empty all_original = 3; */ public Builder clearAllOriginal() { if (allOriginalBuilder_ == null) { if (readRuleCase_ == 3) { readRuleCase_ = 0; readRule_ = null; onChanged(); } } else { if (readRuleCase_ == 3) { readRuleCase_ = 0; readRule_ = null; } allOriginalBuilder_.clear(); } return this; } /** * .google.protobuf.Empty all_original = 3; */ public com.google.protobuf.Empty.Builder getAllOriginalBuilder() { return getAllOriginalFieldBuilder().getBuilder(); } /** * .google.protobuf.Empty all_original = 3; */ @java.lang.Override public com.google.protobuf.EmptyOrBuilder getAllOriginalOrBuilder() { if ((readRuleCase_ == 3) && (allOriginalBuilder_ != null)) { return allOriginalBuilder_.getMessageOrBuilder(); } else { if (readRuleCase_ == 3) { return (com.google.protobuf.Empty) readRule_; } return com.google.protobuf.Empty.getDefaultInstance(); } } /** * .google.protobuf.Empty all_original = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder> getAllOriginalFieldBuilder() { if (allOriginalBuilder_ == null) { if (!(readRuleCase_ == 3)) { readRule_ = com.google.protobuf.Empty.getDefaultInstance(); } allOriginalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Empty, com.google.protobuf.Empty.Builder, com.google.protobuf.EmptyOrBuilder>( (com.google.protobuf.Empty) readRule_, getParentForChildren(), isClean()); readRule_ = null; } readRuleCase_ = 3; onChanged();; return allOriginalBuilder_; } @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:Ydb.PersQueue.ClusterDiscovery.ReadSessionParams) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.ReadSessionParams) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadSessionParams parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadSessionParams(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WriteSessionClustersOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters) com.google.protobuf.MessageOrBuilder { /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ java.util.List getClustersList(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ int getClustersCount(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ java.util.List getClustersOrBuilderList(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index); /** *
     * The reason why a particular cluster was prioritized.
     * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The enum numeric value on the wire for primaryClusterSelectionReason. */ int getPrimaryClusterSelectionReasonValue(); /** *
     * The reason why a particular cluster was prioritized.
     * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The primaryClusterSelectionReason. */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason getPrimaryClusterSelectionReason(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters} */ public static final class WriteSessionClusters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters) WriteSessionClustersOrBuilder { private static final long serialVersionUID = 0L; // Use WriteSessionClusters.newBuilder() to construct. private WriteSessionClusters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteSessionClusters() { clusters_ = java.util.Collections.emptyList(); primaryClusterSelectionReason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteSessionClusters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WriteSessionClusters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } clusters_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.parser(), extensionRegistry)); break; } case 16: { int rawValue = input.readEnum(); primaryClusterSelectionReason_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder.class); } /** * Protobuf enum {@code Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason} */ public enum SelectionReason implements com.google.protobuf.ProtocolMessageEnum { /** * SELECTION_REASON_UNSPECIFIED = 0; */ SELECTION_REASON_UNSPECIFIED(0), /** * CLIENT_PREFERENCE = 1; */ CLIENT_PREFERENCE(1), /** * CLIENT_LOCATION = 2; */ CLIENT_LOCATION(2), /** * CONSISTENT_DISTRIBUTION = 3; */ CONSISTENT_DISTRIBUTION(3), UNRECOGNIZED(-1), ; /** * SELECTION_REASON_UNSPECIFIED = 0; */ public static final int SELECTION_REASON_UNSPECIFIED_VALUE = 0; /** * CLIENT_PREFERENCE = 1; */ public static final int CLIENT_PREFERENCE_VALUE = 1; /** * CLIENT_LOCATION = 2; */ public static final int CLIENT_LOCATION_VALUE = 2; /** * CONSISTENT_DISTRIBUTION = 3; */ public static final int CONSISTENT_DISTRIBUTION_VALUE = 3; 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 SelectionReason 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 SelectionReason forNumber(int value) { switch (value) { case 0: return SELECTION_REASON_UNSPECIFIED; case 1: return CLIENT_PREFERENCE; case 2: return CLIENT_LOCATION; case 3: return CONSISTENT_DISTRIBUTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SelectionReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SelectionReason findValueByNumber(int number) { return SelectionReason.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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.getDescriptor().getEnumTypes().get(0); } private static final SelectionReason[] VALUES = values(); public static SelectionReason 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 SelectionReason(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason) } public static final int CLUSTERS_FIELD_NUMBER = 1; private java.util.List clusters_; /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public java.util.List getClustersList() { return clusters_; } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public java.util.List getClustersOrBuilderList() { return clusters_; } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public int getClustersCount() { return clusters_.size(); } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index) { return clusters_.get(index); } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index) { return clusters_.get(index); } public static final int PRIMARY_CLUSTER_SELECTION_REASON_FIELD_NUMBER = 2; private int primaryClusterSelectionReason_; /** *
     * The reason why a particular cluster was prioritized.
     * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The enum numeric value on the wire for primaryClusterSelectionReason. */ @java.lang.Override public int getPrimaryClusterSelectionReasonValue() { return primaryClusterSelectionReason_; } /** *
     * The reason why a particular cluster was prioritized.
     * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The primaryClusterSelectionReason. */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason getPrimaryClusterSelectionReason() { @SuppressWarnings("deprecation") com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason result = com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.valueOf(primaryClusterSelectionReason_); return result == null ? com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.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 { for (int i = 0; i < clusters_.size(); i++) { output.writeMessage(1, clusters_.get(i)); } if (primaryClusterSelectionReason_ != com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.SELECTION_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, primaryClusterSelectionReason_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < clusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, clusters_.get(i)); } if (primaryClusterSelectionReason_ != com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.SELECTION_REASON_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, primaryClusterSelectionReason_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters) obj; if (!getClustersList() .equals(other.getClustersList())) return false; if (primaryClusterSelectionReason_ != other.primaryClusterSelectionReason_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getClustersCount() > 0) { hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getClustersList().hashCode(); } hash = (37 * hash) + PRIMARY_CLUSTER_SELECTION_REASON_FIELD_NUMBER; hash = (53 * hash) + primaryClusterSelectionReason_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters 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 Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClustersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { clustersBuilder_.clear(); } primaryClusterSelectionReason_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters(this); int from_bitField0_ = bitField0_; if (clustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); bitField0_ = (bitField0_ & ~0x00000001); } result.clusters_ = clusters_; } else { result.clusters_ = clustersBuilder_.build(); } result.primaryClusterSelectionReason_ = primaryClusterSelectionReason_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.getDefaultInstance()) return this; if (clustersBuilder_ == null) { if (!other.clusters_.isEmpty()) { if (clusters_.isEmpty()) { clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureClustersIsMutable(); clusters_.addAll(other.clusters_); } onChanged(); } } else { if (!other.clusters_.isEmpty()) { if (clustersBuilder_.isEmpty()) { clustersBuilder_.dispose(); clustersBuilder_ = null; clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); clustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClustersFieldBuilder() : null; } else { clustersBuilder_.addAllMessages(other.clusters_); } } } if (other.primaryClusterSelectionReason_ != 0) { setPrimaryClusterSelectionReasonValue(other.getPrimaryClusterSelectionReasonValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List clusters_ = java.util.Collections.emptyList(); private void ensureClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(clusters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder> clustersBuilder_; /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersList() { if (clustersBuilder_ == null) { return java.util.Collections.unmodifiableList(clusters_); } else { return clustersBuilder_.getMessageList(); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public int getClustersCount() { if (clustersBuilder_ == null) { return clusters_.size(); } else { return clustersBuilder_.getCount(); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessage(index); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder setClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.set(index, value); onChanged(); } else { clustersBuilder_.setMessage(index, value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder setClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.set(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(value); onChanged(); } else { clustersBuilder_.addMessage(value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(index, value); onChanged(); } else { clustersBuilder_.addMessage(index, value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addAllClusters( java.lang.Iterable values) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusters_); onChanged(); } else { clustersBuilder_.addAllMessages(values); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder clearClusters() { if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { clustersBuilder_.clear(); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder removeClusters(int index) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.remove(index); onChanged(); } else { clustersBuilder_.remove(index); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder getClustersBuilder( int index) { return getClustersFieldBuilder().getBuilder(index); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessageOrBuilder(index); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersOrBuilderList() { if (clustersBuilder_ != null) { return clustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clusters_); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder addClustersBuilder() { return getClustersFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance()); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder addClustersBuilder( int index) { return getClustersFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance()); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersBuilderList() { return getClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder> getClustersFieldBuilder() { if (clustersBuilder_ == null) { clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder>( clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); clusters_ = null; } return clustersBuilder_; } private int primaryClusterSelectionReason_ = 0; /** *
       * The reason why a particular cluster was prioritized.
       * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The enum numeric value on the wire for primaryClusterSelectionReason. */ @java.lang.Override public int getPrimaryClusterSelectionReasonValue() { return primaryClusterSelectionReason_; } /** *
       * The reason why a particular cluster was prioritized.
       * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @param value The enum numeric value on the wire for primaryClusterSelectionReason to set. * @return This builder for chaining. */ public Builder setPrimaryClusterSelectionReasonValue(int value) { primaryClusterSelectionReason_ = value; onChanged(); return this; } /** *
       * The reason why a particular cluster was prioritized.
       * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return The primaryClusterSelectionReason. */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason getPrimaryClusterSelectionReason() { @SuppressWarnings("deprecation") com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason result = com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.valueOf(primaryClusterSelectionReason_); return result == null ? com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason.UNRECOGNIZED : result; } /** *
       * The reason why a particular cluster was prioritized.
       * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @param value The primaryClusterSelectionReason to set. * @return This builder for chaining. */ public Builder setPrimaryClusterSelectionReason(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.SelectionReason value) { if (value == null) { throw new NullPointerException(); } primaryClusterSelectionReason_ = value.getNumber(); onChanged(); return this; } /** *
       * The reason why a particular cluster was prioritized.
       * 
* * .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters.SelectionReason primary_cluster_selection_reason = 2; * @return This builder for chaining. */ public Builder clearPrimaryClusterSelectionReason() { primaryClusterSelectionReason_ = 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:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteSessionClusters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WriteSessionClusters(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadSessionClustersOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters) com.google.protobuf.MessageOrBuilder { /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ java.util.List getClustersList(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ int getClustersCount(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ java.util.List getClustersOrBuilderList(); /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters} */ public static final class ReadSessionClusters extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters) ReadSessionClustersOrBuilder { private static final long serialVersionUID = 0L; // Use ReadSessionClusters.newBuilder() to construct. private ReadSessionClusters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadSessionClusters() { clusters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadSessionClusters(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadSessionClusters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } clusters_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder.class); } public static final int CLUSTERS_FIELD_NUMBER = 1; private java.util.List clusters_; /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public java.util.List getClustersList() { return clusters_; } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public java.util.List getClustersOrBuilderList() { return clusters_; } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public int getClustersCount() { return clusters_.size(); } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index) { return clusters_.get(index); } /** *
     * Ordered clusters with statuses.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index) { return clusters_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < clusters_.size(); i++) { output.writeMessage(1, clusters_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < clusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, clusters_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters) obj; if (!getClustersList() .equals(other.getClustersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getClustersCount() > 0) { hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getClustersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters 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 Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClustersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { clustersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters(this); int from_bitField0_ = bitField0_; if (clustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); bitField0_ = (bitField0_ & ~0x00000001); } result.clusters_ = clusters_; } else { result.clusters_ = clustersBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.getDefaultInstance()) return this; if (clustersBuilder_ == null) { if (!other.clusters_.isEmpty()) { if (clusters_.isEmpty()) { clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureClustersIsMutable(); clusters_.addAll(other.clusters_); } onChanged(); } } else { if (!other.clusters_.isEmpty()) { if (clustersBuilder_.isEmpty()) { clustersBuilder_.dispose(); clustersBuilder_ = null; clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000001); clustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClustersFieldBuilder() : null; } else { clustersBuilder_.addAllMessages(other.clusters_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List clusters_ = java.util.Collections.emptyList(); private void ensureClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { clusters_ = new java.util.ArrayList(clusters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder> clustersBuilder_; /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersList() { if (clustersBuilder_ == null) { return java.util.Collections.unmodifiableList(clusters_); } else { return clustersBuilder_.getMessageList(); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public int getClustersCount() { if (clustersBuilder_ == null) { return clusters_.size(); } else { return clustersBuilder_.getCount(); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo getClusters(int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessage(index); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder setClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.set(index, value); onChanged(); } else { clustersBuilder_.setMessage(index, value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder setClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.set(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(value); onChanged(); } else { clustersBuilder_.addMessage(value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(index, value); onChanged(); } else { clustersBuilder_.addMessage(index, value); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder addAllClusters( java.lang.Iterable values) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusters_); onChanged(); } else { clustersBuilder_.addAllMessages(values); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder clearClusters() { if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { clustersBuilder_.clear(); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public Builder removeClusters(int index) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.remove(index); onChanged(); } else { clustersBuilder_.remove(index); } return this; } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder getClustersBuilder( int index) { return getClustersFieldBuilder().getBuilder(index); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder getClustersOrBuilder( int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessageOrBuilder(index); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersOrBuilderList() { if (clustersBuilder_ != null) { return clustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clusters_); } } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder addClustersBuilder() { return getClustersFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance()); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder addClustersBuilder( int index) { return getClustersFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.getDefaultInstance()); } /** *
       * Ordered clusters with statuses.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.ClusterInfo clusters = 1; */ public java.util.List getClustersBuilderList() { return getClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder> getClustersFieldBuilder() { if (clustersBuilder_ == null) { clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfo.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ClusterInfoOrBuilder>( clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); clusters_ = null; } return clustersBuilder_; } @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:Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadSessionClusters parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadSessionClusters(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscoverClustersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ boolean hasOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ com.yandex.ydb.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ java.util.List getWriteSessionsList(); /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getWriteSessions(int index); /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ int getWriteSessionsCount(); /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ java.util.List getWriteSessionsOrBuilderList(); /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder getWriteSessionsOrBuilder( int index); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ java.util.List getReadSessionsList(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getReadSessions(int index); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ int getReadSessionsCount(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ java.util.List getReadSessionsOrBuilderList(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder getReadSessionsOrBuilder( int index); /** *
     * Latest clusters status version known to the client application. Use 0 by default.
     * 
* * int64 minimal_version = 4; * @return The minimalVersion. */ long getMinimalVersion(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest} */ public static final class DiscoverClustersRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest) DiscoverClustersRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoverClustersRequest.newBuilder() to construct. private DiscoverClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoverClustersRequest() { writeSessions_ = java.util.Collections.emptyList(); readSessions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscoverClustersRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiscoverClustersRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null; if (operationParams_ != null) { subBuilder = operationParams_.toBuilder(); } operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operationParams_); operationParams_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { writeSessions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } writeSessions_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { readSessions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } readSessions_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.parser(), extensionRegistry)); break; } case 32: { minimalVersion_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { writeSessions_ = java.util.Collections.unmodifiableList(writeSessions_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { readSessions_ = java.util.Collections.unmodifiableList(readSessions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.Builder.class); } public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private com.yandex.ydb.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return operationParams_ != null; } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return getOperationParams(); } public static final int WRITE_SESSIONS_FIELD_NUMBER = 2; private java.util.List writeSessions_; /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ @java.lang.Override public java.util.List getWriteSessionsList() { return writeSessions_; } /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ @java.lang.Override public java.util.List getWriteSessionsOrBuilderList() { return writeSessions_; } /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ @java.lang.Override public int getWriteSessionsCount() { return writeSessions_.size(); } /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getWriteSessions(int index) { return writeSessions_.get(index); } /** *
     * Clusters will be discovered separately for each element of the list.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder getWriteSessionsOrBuilder( int index) { return writeSessions_.get(index); } public static final int READ_SESSIONS_FIELD_NUMBER = 3; private java.util.List readSessions_; /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ @java.lang.Override public java.util.List getReadSessionsList() { return readSessions_; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ @java.lang.Override public java.util.List getReadSessionsOrBuilderList() { return readSessions_; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ @java.lang.Override public int getReadSessionsCount() { return readSessions_.size(); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getReadSessions(int index) { return readSessions_.get(index); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder getReadSessionsOrBuilder( int index) { return readSessions_.get(index); } public static final int MINIMAL_VERSION_FIELD_NUMBER = 4; private long minimalVersion_; /** *
     * Latest clusters status version known to the client application. Use 0 by default.
     * 
* * int64 minimal_version = 4; * @return The minimalVersion. */ @java.lang.Override public long getMinimalVersion() { return minimalVersion_; } 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 (operationParams_ != null) { output.writeMessage(1, getOperationParams()); } for (int i = 0; i < writeSessions_.size(); i++) { output.writeMessage(2, writeSessions_.get(i)); } for (int i = 0; i < readSessions_.size(); i++) { output.writeMessage(3, readSessions_.get(i)); } if (minimalVersion_ != 0L) { output.writeInt64(4, minimalVersion_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operationParams_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } for (int i = 0; i < writeSessions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, writeSessions_.get(i)); } for (int i = 0; i < readSessions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, readSessions_.get(i)); } if (minimalVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, minimalVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getWriteSessionsList() .equals(other.getWriteSessionsList())) return false; if (!getReadSessionsList() .equals(other.getReadSessionsList())) return false; if (getMinimalVersion() != other.getMinimalVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } if (getWriteSessionsCount() > 0) { hash = (37 * hash) + WRITE_SESSIONS_FIELD_NUMBER; hash = (53 * hash) + getWriteSessionsList().hashCode(); } if (getReadSessionsCount() > 0) { hash = (37 * hash) + READ_SESSIONS_FIELD_NUMBER; hash = (53 * hash) + getReadSessionsList().hashCode(); } hash = (37 * hash) + MINIMAL_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinimalVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest 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 Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWriteSessionsFieldBuilder(); getReadSessionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (operationParamsBuilder_ == null) { operationParams_ = null; } else { operationParams_ = null; operationParamsBuilder_ = null; } if (writeSessionsBuilder_ == null) { writeSessions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { writeSessionsBuilder_.clear(); } if (readSessionsBuilder_ == null) { readSessions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { readSessionsBuilder_.clear(); } minimalVersion_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest(this); int from_bitField0_ = bitField0_; if (operationParamsBuilder_ == null) { result.operationParams_ = operationParams_; } else { result.operationParams_ = operationParamsBuilder_.build(); } if (writeSessionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { writeSessions_ = java.util.Collections.unmodifiableList(writeSessions_); bitField0_ = (bitField0_ & ~0x00000001); } result.writeSessions_ = writeSessions_; } else { result.writeSessions_ = writeSessionsBuilder_.build(); } if (readSessionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { readSessions_ = java.util.Collections.unmodifiableList(readSessions_); bitField0_ = (bitField0_ & ~0x00000002); } result.readSessions_ = readSessions_; } else { result.readSessions_ = readSessionsBuilder_.build(); } result.minimalVersion_ = minimalVersion_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (writeSessionsBuilder_ == null) { if (!other.writeSessions_.isEmpty()) { if (writeSessions_.isEmpty()) { writeSessions_ = other.writeSessions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWriteSessionsIsMutable(); writeSessions_.addAll(other.writeSessions_); } onChanged(); } } else { if (!other.writeSessions_.isEmpty()) { if (writeSessionsBuilder_.isEmpty()) { writeSessionsBuilder_.dispose(); writeSessionsBuilder_ = null; writeSessions_ = other.writeSessions_; bitField0_ = (bitField0_ & ~0x00000001); writeSessionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWriteSessionsFieldBuilder() : null; } else { writeSessionsBuilder_.addAllMessages(other.writeSessions_); } } } if (readSessionsBuilder_ == null) { if (!other.readSessions_.isEmpty()) { if (readSessions_.isEmpty()) { readSessions_ = other.readSessions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReadSessionsIsMutable(); readSessions_.addAll(other.readSessions_); } onChanged(); } } else { if (!other.readSessions_.isEmpty()) { if (readSessionsBuilder_.isEmpty()) { readSessionsBuilder_.dispose(); readSessionsBuilder_ = null; readSessions_ = other.readSessions_; bitField0_ = (bitField0_ & ~0x00000002); readSessionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReadSessionsFieldBuilder() : null; } else { readSessionsBuilder_.addAllMessages(other.readSessions_); } } } if (other.getMinimalVersion() != 0L) { setMinimalVersion(other.getMinimalVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.yandex.ydb.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return operationParamsBuilder_ != null || operationParams_ != null; } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; onChanged(); } else { operationParamsBuilder_.setMessage(value); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); onChanged(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (operationParams_ != null) { operationParams_ = com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial(); } else { operationParams_ = value; } onChanged(); } else { operationParamsBuilder_.mergeFrom(value); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { if (operationParamsBuilder_ == null) { operationParams_ = null; onChanged(); } else { operationParams_ = null; operationParamsBuilder_ = null; } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.util.List writeSessions_ = java.util.Collections.emptyList(); private void ensureWriteSessionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { writeSessions_ = new java.util.ArrayList(writeSessions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder> writeSessionsBuilder_; /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public java.util.List getWriteSessionsList() { if (writeSessionsBuilder_ == null) { return java.util.Collections.unmodifiableList(writeSessions_); } else { return writeSessionsBuilder_.getMessageList(); } } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public int getWriteSessionsCount() { if (writeSessionsBuilder_ == null) { return writeSessions_.size(); } else { return writeSessionsBuilder_.getCount(); } } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams getWriteSessions(int index) { if (writeSessionsBuilder_ == null) { return writeSessions_.get(index); } else { return writeSessionsBuilder_.getMessage(index); } } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder setWriteSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams value) { if (writeSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsIsMutable(); writeSessions_.set(index, value); onChanged(); } else { writeSessionsBuilder_.setMessage(index, value); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder setWriteSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder builderForValue) { if (writeSessionsBuilder_ == null) { ensureWriteSessionsIsMutable(); writeSessions_.set(index, builderForValue.build()); onChanged(); } else { writeSessionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder addWriteSessions(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams value) { if (writeSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsIsMutable(); writeSessions_.add(value); onChanged(); } else { writeSessionsBuilder_.addMessage(value); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder addWriteSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams value) { if (writeSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsIsMutable(); writeSessions_.add(index, value); onChanged(); } else { writeSessionsBuilder_.addMessage(index, value); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder addWriteSessions( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder builderForValue) { if (writeSessionsBuilder_ == null) { ensureWriteSessionsIsMutable(); writeSessions_.add(builderForValue.build()); onChanged(); } else { writeSessionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder addWriteSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder builderForValue) { if (writeSessionsBuilder_ == null) { ensureWriteSessionsIsMutable(); writeSessions_.add(index, builderForValue.build()); onChanged(); } else { writeSessionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder addAllWriteSessions( java.lang.Iterable values) { if (writeSessionsBuilder_ == null) { ensureWriteSessionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, writeSessions_); onChanged(); } else { writeSessionsBuilder_.addAllMessages(values); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder clearWriteSessions() { if (writeSessionsBuilder_ == null) { writeSessions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { writeSessionsBuilder_.clear(); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public Builder removeWriteSessions(int index) { if (writeSessionsBuilder_ == null) { ensureWriteSessionsIsMutable(); writeSessions_.remove(index); onChanged(); } else { writeSessionsBuilder_.remove(index); } return this; } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder getWriteSessionsBuilder( int index) { return getWriteSessionsFieldBuilder().getBuilder(index); } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder getWriteSessionsOrBuilder( int index) { if (writeSessionsBuilder_ == null) { return writeSessions_.get(index); } else { return writeSessionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public java.util.List getWriteSessionsOrBuilderList() { if (writeSessionsBuilder_ != null) { return writeSessionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(writeSessions_); } } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder addWriteSessionsBuilder() { return getWriteSessionsFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.getDefaultInstance()); } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder addWriteSessionsBuilder( int index) { return getWriteSessionsFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.getDefaultInstance()); } /** *
       * Clusters will be discovered separately for each element of the list.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionParams write_sessions = 2; */ public java.util.List getWriteSessionsBuilderList() { return getWriteSessionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder> getWriteSessionsFieldBuilder() { if (writeSessionsBuilder_ == null) { writeSessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionParamsOrBuilder>( writeSessions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); writeSessions_ = null; } return writeSessionsBuilder_; } private java.util.List readSessions_ = java.util.Collections.emptyList(); private void ensureReadSessionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { readSessions_ = new java.util.ArrayList(readSessions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder> readSessionsBuilder_; /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public java.util.List getReadSessionsList() { if (readSessionsBuilder_ == null) { return java.util.Collections.unmodifiableList(readSessions_); } else { return readSessionsBuilder_.getMessageList(); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public int getReadSessionsCount() { if (readSessionsBuilder_ == null) { return readSessions_.size(); } else { return readSessionsBuilder_.getCount(); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams getReadSessions(int index) { if (readSessionsBuilder_ == null) { return readSessions_.get(index); } else { return readSessionsBuilder_.getMessage(index); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder setReadSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams value) { if (readSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsIsMutable(); readSessions_.set(index, value); onChanged(); } else { readSessionsBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder setReadSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder builderForValue) { if (readSessionsBuilder_ == null) { ensureReadSessionsIsMutable(); readSessions_.set(index, builderForValue.build()); onChanged(); } else { readSessionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder addReadSessions(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams value) { if (readSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsIsMutable(); readSessions_.add(value); onChanged(); } else { readSessionsBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder addReadSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams value) { if (readSessionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsIsMutable(); readSessions_.add(index, value); onChanged(); } else { readSessionsBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder addReadSessions( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder builderForValue) { if (readSessionsBuilder_ == null) { ensureReadSessionsIsMutable(); readSessions_.add(builderForValue.build()); onChanged(); } else { readSessionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder addReadSessions( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder builderForValue) { if (readSessionsBuilder_ == null) { ensureReadSessionsIsMutable(); readSessions_.add(index, builderForValue.build()); onChanged(); } else { readSessionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder addAllReadSessions( java.lang.Iterable values) { if (readSessionsBuilder_ == null) { ensureReadSessionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, readSessions_); onChanged(); } else { readSessionsBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder clearReadSessions() { if (readSessionsBuilder_ == null) { readSessions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { readSessionsBuilder_.clear(); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public Builder removeReadSessions(int index) { if (readSessionsBuilder_ == null) { ensureReadSessionsIsMutable(); readSessions_.remove(index); onChanged(); } else { readSessionsBuilder_.remove(index); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder getReadSessionsBuilder( int index) { return getReadSessionsFieldBuilder().getBuilder(index); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder getReadSessionsOrBuilder( int index) { if (readSessionsBuilder_ == null) { return readSessions_.get(index); } else { return readSessionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public java.util.List getReadSessionsOrBuilderList() { if (readSessionsBuilder_ != null) { return readSessionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(readSessions_); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder addReadSessionsBuilder() { return getReadSessionsFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.getDefaultInstance()); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder addReadSessionsBuilder( int index) { return getReadSessionsFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.getDefaultInstance()); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionParams read_sessions = 3; */ public java.util.List getReadSessionsBuilderList() { return getReadSessionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder> getReadSessionsFieldBuilder() { if (readSessionsBuilder_ == null) { readSessionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParams.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionParamsOrBuilder>( readSessions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); readSessions_ = null; } return readSessionsBuilder_; } private long minimalVersion_ ; /** *
       * Latest clusters status version known to the client application. Use 0 by default.
       * 
* * int64 minimal_version = 4; * @return The minimalVersion. */ @java.lang.Override public long getMinimalVersion() { return minimalVersion_; } /** *
       * Latest clusters status version known to the client application. Use 0 by default.
       * 
* * int64 minimal_version = 4; * @param value The minimalVersion to set. * @return This builder for chaining. */ public Builder setMinimalVersion(long value) { minimalVersion_ = value; onChanged(); return this; } /** *
       * Latest clusters status version known to the client application. Use 0 by default.
       * 
* * int64 minimal_version = 4; * @return This builder for chaining. */ public Builder clearMinimalVersion() { minimalVersion_ = 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:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersRequest) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoverClustersRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiscoverClustersRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscoverClustersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ com.yandex.ydb.OperationProtos.Operation getOperation(); /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; */ com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse} */ public static final class DiscoverClustersResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse) DiscoverClustersResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoverClustersResponse.newBuilder() to construct. private DiscoverClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoverClustersResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscoverClustersResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiscoverClustersResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null; if (operation_ != null) { subBuilder = operation_.toBuilder(); } operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(operation_); operation_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; private com.yandex.ydb.OperationProtos.Operation operation_; /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return operation_ != null; } /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public com.yandex.ydb.OperationProtos.Operation getOperation() { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Operation contains the result of the request. Check the ydb_operation.proto.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return getOperation(); } 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 (operation_ != null) { output.writeMessage(1, getOperation()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (operation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse 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 Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (operationBuilder_ == null) { operation_ = null; } else { operation_ = null; operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse(this); if (operationBuilder_ == null) { result.operation_ = operation_; } else { result.operation_ = operationBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.yandex.ydb.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return operationBuilder_ != null || operation_ != null; } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public com.yandex.ydb.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; onChanged(); } else { operationBuilder_.setMessage(value); } return this; } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); } else { operationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (operation_ != null) { operation_ = com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial(); } else { operation_ = value; } onChanged(); } else { operationBuilder_.mergeFrom(value); } return this; } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { if (operationBuilder_ == null) { operation_ = null; onChanged(); } else { operation_ = null; operationBuilder_ = null; } return this; } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() { onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Operation contains the result of the request. Check the ydb_operation.proto.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>( getOperation(), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; } @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:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResponse) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoverClustersResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiscoverClustersResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscoverClustersResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult) com.google.protobuf.MessageOrBuilder { /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ java.util.List getWriteSessionsClustersList(); /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getWriteSessionsClusters(int index); /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ int getWriteSessionsClustersCount(); /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ java.util.List getWriteSessionsClustersOrBuilderList(); /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder getWriteSessionsClustersOrBuilder( int index); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ java.util.List getReadSessionsClustersList(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getReadSessionsClusters(int index); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ int getReadSessionsClustersCount(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ java.util.List getReadSessionsClustersOrBuilderList(); /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder getReadSessionsClustersOrBuilder( int index); /** *
     * Latest clusters status version known to the cluster discovery service.
     * 
* * int64 version = 3; * @return The version. */ long getVersion(); } /** * Protobuf type {@code Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult} */ public static final class DiscoverClustersResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult) DiscoverClustersResultOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoverClustersResult.newBuilder() to construct. private DiscoverClustersResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoverClustersResult() { writeSessionsClusters_ = java.util.Collections.emptyList(); readSessionsClusters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscoverClustersResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiscoverClustersResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { writeSessionsClusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } writeSessionsClusters_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { readSessionsClusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } readSessionsClusters_.add( input.readMessage(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.parser(), extensionRegistry)); break; } case 24: { version_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { writeSessionsClusters_ = java.util.Collections.unmodifiableList(writeSessionsClusters_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { readSessionsClusters_ = java.util.Collections.unmodifiableList(readSessionsClusters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.Builder.class); } public static final int WRITE_SESSIONS_CLUSTERS_FIELD_NUMBER = 1; private java.util.List writeSessionsClusters_; /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ @java.lang.Override public java.util.List getWriteSessionsClustersList() { return writeSessionsClusters_; } /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ @java.lang.Override public java.util.List getWriteSessionsClustersOrBuilderList() { return writeSessionsClusters_; } /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ @java.lang.Override public int getWriteSessionsClustersCount() { return writeSessionsClusters_.size(); } /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getWriteSessionsClusters(int index) { return writeSessionsClusters_.get(index); } /** *
     * Discovered per-session clusters.
     * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder getWriteSessionsClustersOrBuilder( int index) { return writeSessionsClusters_.get(index); } public static final int READ_SESSIONS_CLUSTERS_FIELD_NUMBER = 2; private java.util.List readSessionsClusters_; /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ @java.lang.Override public java.util.List getReadSessionsClustersList() { return readSessionsClusters_; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ @java.lang.Override public java.util.List getReadSessionsClustersOrBuilderList() { return readSessionsClusters_; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ @java.lang.Override public int getReadSessionsClustersCount() { return readSessionsClusters_.size(); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getReadSessionsClusters(int index) { return readSessionsClusters_.get(index); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder getReadSessionsClustersOrBuilder( int index) { return readSessionsClusters_.get(index); } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** *
     * Latest clusters status version known to the cluster discovery service.
     * 
* * int64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } 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 < writeSessionsClusters_.size(); i++) { output.writeMessage(1, writeSessionsClusters_.get(i)); } for (int i = 0; i < readSessionsClusters_.size(); i++) { output.writeMessage(2, readSessionsClusters_.get(i)); } if (version_ != 0L) { output.writeInt64(3, version_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < writeSessionsClusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, writeSessionsClusters_.get(i)); } for (int i = 0; i < readSessionsClusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, readSessionsClusters_.get(i)); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, version_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult)) { return super.equals(obj); } com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult other = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult) obj; if (!getWriteSessionsClustersList() .equals(other.getWriteSessionsClustersList())) return false; if (!getReadSessionsClustersList() .equals(other.getReadSessionsClustersList())) return false; if (getVersion() != other.getVersion()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getWriteSessionsClustersCount() > 0) { hash = (37 * hash) + WRITE_SESSIONS_CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getWriteSessionsClustersList().hashCode(); } if (getReadSessionsClustersCount() > 0) { hash = (37 * hash) + READ_SESSIONS_CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getReadSessionsClustersList().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult 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(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult 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 Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult) com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.class, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.Builder.class); } // Construct using com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWriteSessionsClustersFieldBuilder(); getReadSessionsClustersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (writeSessionsClustersBuilder_ == null) { writeSessionsClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { writeSessionsClustersBuilder_.clear(); } if (readSessionsClustersBuilder_ == null) { readSessionsClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { readSessionsClustersBuilder_.clear(); } version_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult getDefaultInstanceForType() { return com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult build() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult buildPartial() { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult result = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult(this); int from_bitField0_ = bitField0_; if (writeSessionsClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { writeSessionsClusters_ = java.util.Collections.unmodifiableList(writeSessionsClusters_); bitField0_ = (bitField0_ & ~0x00000001); } result.writeSessionsClusters_ = writeSessionsClusters_; } else { result.writeSessionsClusters_ = writeSessionsClustersBuilder_.build(); } if (readSessionsClustersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { readSessionsClusters_ = java.util.Collections.unmodifiableList(readSessionsClusters_); bitField0_ = (bitField0_ & ~0x00000002); } result.readSessionsClusters_ = readSessionsClusters_; } else { result.readSessionsClusters_ = readSessionsClustersBuilder_.build(); } result.version_ = version_; 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 com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult) { return mergeFrom((com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult other) { if (other == com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult.getDefaultInstance()) return this; if (writeSessionsClustersBuilder_ == null) { if (!other.writeSessionsClusters_.isEmpty()) { if (writeSessionsClusters_.isEmpty()) { writeSessionsClusters_ = other.writeSessionsClusters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.addAll(other.writeSessionsClusters_); } onChanged(); } } else { if (!other.writeSessionsClusters_.isEmpty()) { if (writeSessionsClustersBuilder_.isEmpty()) { writeSessionsClustersBuilder_.dispose(); writeSessionsClustersBuilder_ = null; writeSessionsClusters_ = other.writeSessionsClusters_; bitField0_ = (bitField0_ & ~0x00000001); writeSessionsClustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWriteSessionsClustersFieldBuilder() : null; } else { writeSessionsClustersBuilder_.addAllMessages(other.writeSessionsClusters_); } } } if (readSessionsClustersBuilder_ == null) { if (!other.readSessionsClusters_.isEmpty()) { if (readSessionsClusters_.isEmpty()) { readSessionsClusters_ = other.readSessionsClusters_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReadSessionsClustersIsMutable(); readSessionsClusters_.addAll(other.readSessionsClusters_); } onChanged(); } } else { if (!other.readSessionsClusters_.isEmpty()) { if (readSessionsClustersBuilder_.isEmpty()) { readSessionsClustersBuilder_.dispose(); readSessionsClustersBuilder_ = null; readSessionsClusters_ = other.readSessionsClusters_; bitField0_ = (bitField0_ & ~0x00000002); readSessionsClustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReadSessionsClustersFieldBuilder() : null; } else { readSessionsClustersBuilder_.addAllMessages(other.readSessionsClusters_); } } } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List writeSessionsClusters_ = java.util.Collections.emptyList(); private void ensureWriteSessionsClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { writeSessionsClusters_ = new java.util.ArrayList(writeSessionsClusters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder> writeSessionsClustersBuilder_; /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public java.util.List getWriteSessionsClustersList() { if (writeSessionsClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(writeSessionsClusters_); } else { return writeSessionsClustersBuilder_.getMessageList(); } } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public int getWriteSessionsClustersCount() { if (writeSessionsClustersBuilder_ == null) { return writeSessionsClusters_.size(); } else { return writeSessionsClustersBuilder_.getCount(); } } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters getWriteSessionsClusters(int index) { if (writeSessionsClustersBuilder_ == null) { return writeSessionsClusters_.get(index); } else { return writeSessionsClustersBuilder_.getMessage(index); } } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder setWriteSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters value) { if (writeSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.set(index, value); onChanged(); } else { writeSessionsClustersBuilder_.setMessage(index, value); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder setWriteSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder builderForValue) { if (writeSessionsClustersBuilder_ == null) { ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.set(index, builderForValue.build()); onChanged(); } else { writeSessionsClustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder addWriteSessionsClusters(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters value) { if (writeSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.add(value); onChanged(); } else { writeSessionsClustersBuilder_.addMessage(value); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder addWriteSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters value) { if (writeSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.add(index, value); onChanged(); } else { writeSessionsClustersBuilder_.addMessage(index, value); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder addWriteSessionsClusters( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder builderForValue) { if (writeSessionsClustersBuilder_ == null) { ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.add(builderForValue.build()); onChanged(); } else { writeSessionsClustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder addWriteSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder builderForValue) { if (writeSessionsClustersBuilder_ == null) { ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.add(index, builderForValue.build()); onChanged(); } else { writeSessionsClustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder addAllWriteSessionsClusters( java.lang.Iterable values) { if (writeSessionsClustersBuilder_ == null) { ensureWriteSessionsClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, writeSessionsClusters_); onChanged(); } else { writeSessionsClustersBuilder_.addAllMessages(values); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder clearWriteSessionsClusters() { if (writeSessionsClustersBuilder_ == null) { writeSessionsClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { writeSessionsClustersBuilder_.clear(); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public Builder removeWriteSessionsClusters(int index) { if (writeSessionsClustersBuilder_ == null) { ensureWriteSessionsClustersIsMutable(); writeSessionsClusters_.remove(index); onChanged(); } else { writeSessionsClustersBuilder_.remove(index); } return this; } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder getWriteSessionsClustersBuilder( int index) { return getWriteSessionsClustersFieldBuilder().getBuilder(index); } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder getWriteSessionsClustersOrBuilder( int index) { if (writeSessionsClustersBuilder_ == null) { return writeSessionsClusters_.get(index); } else { return writeSessionsClustersBuilder_.getMessageOrBuilder(index); } } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public java.util.List getWriteSessionsClustersOrBuilderList() { if (writeSessionsClustersBuilder_ != null) { return writeSessionsClustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(writeSessionsClusters_); } } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder addWriteSessionsClustersBuilder() { return getWriteSessionsClustersFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.getDefaultInstance()); } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder addWriteSessionsClustersBuilder( int index) { return getWriteSessionsClustersFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.getDefaultInstance()); } /** *
       * Discovered per-session clusters.
       * 
* * repeated .Ydb.PersQueue.ClusterDiscovery.WriteSessionClusters write_sessions_clusters = 1; */ public java.util.List getWriteSessionsClustersBuilderList() { return getWriteSessionsClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder> getWriteSessionsClustersFieldBuilder() { if (writeSessionsClustersBuilder_ == null) { writeSessionsClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.WriteSessionClustersOrBuilder>( writeSessionsClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); writeSessionsClusters_ = null; } return writeSessionsClustersBuilder_; } private java.util.List readSessionsClusters_ = java.util.Collections.emptyList(); private void ensureReadSessionsClustersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { readSessionsClusters_ = new java.util.ArrayList(readSessionsClusters_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder> readSessionsClustersBuilder_; /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public java.util.List getReadSessionsClustersList() { if (readSessionsClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(readSessionsClusters_); } else { return readSessionsClustersBuilder_.getMessageList(); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public int getReadSessionsClustersCount() { if (readSessionsClustersBuilder_ == null) { return readSessionsClusters_.size(); } else { return readSessionsClustersBuilder_.getCount(); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters getReadSessionsClusters(int index) { if (readSessionsClustersBuilder_ == null) { return readSessionsClusters_.get(index); } else { return readSessionsClustersBuilder_.getMessage(index); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder setReadSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters value) { if (readSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsClustersIsMutable(); readSessionsClusters_.set(index, value); onChanged(); } else { readSessionsClustersBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder setReadSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder builderForValue) { if (readSessionsClustersBuilder_ == null) { ensureReadSessionsClustersIsMutable(); readSessionsClusters_.set(index, builderForValue.build()); onChanged(); } else { readSessionsClustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder addReadSessionsClusters(com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters value) { if (readSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsClustersIsMutable(); readSessionsClusters_.add(value); onChanged(); } else { readSessionsClustersBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder addReadSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters value) { if (readSessionsClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadSessionsClustersIsMutable(); readSessionsClusters_.add(index, value); onChanged(); } else { readSessionsClustersBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder addReadSessionsClusters( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder builderForValue) { if (readSessionsClustersBuilder_ == null) { ensureReadSessionsClustersIsMutable(); readSessionsClusters_.add(builderForValue.build()); onChanged(); } else { readSessionsClustersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder addReadSessionsClusters( int index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder builderForValue) { if (readSessionsClustersBuilder_ == null) { ensureReadSessionsClustersIsMutable(); readSessionsClusters_.add(index, builderForValue.build()); onChanged(); } else { readSessionsClustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder addAllReadSessionsClusters( java.lang.Iterable values) { if (readSessionsClustersBuilder_ == null) { ensureReadSessionsClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, readSessionsClusters_); onChanged(); } else { readSessionsClustersBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder clearReadSessionsClusters() { if (readSessionsClustersBuilder_ == null) { readSessionsClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { readSessionsClustersBuilder_.clear(); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public Builder removeReadSessionsClusters(int index) { if (readSessionsClustersBuilder_ == null) { ensureReadSessionsClustersIsMutable(); readSessionsClusters_.remove(index); onChanged(); } else { readSessionsClustersBuilder_.remove(index); } return this; } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder getReadSessionsClustersBuilder( int index) { return getReadSessionsClustersFieldBuilder().getBuilder(index); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder getReadSessionsClustersOrBuilder( int index) { if (readSessionsClustersBuilder_ == null) { return readSessionsClusters_.get(index); } else { return readSessionsClustersBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public java.util.List getReadSessionsClustersOrBuilderList() { if (readSessionsClustersBuilder_ != null) { return readSessionsClustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(readSessionsClusters_); } } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder addReadSessionsClustersBuilder() { return getReadSessionsClustersFieldBuilder().addBuilder( com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.getDefaultInstance()); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder addReadSessionsClustersBuilder( int index) { return getReadSessionsClustersFieldBuilder().addBuilder( index, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.getDefaultInstance()); } /** * repeated .Ydb.PersQueue.ClusterDiscovery.ReadSessionClusters read_sessions_clusters = 2; */ public java.util.List getReadSessionsClustersBuilderList() { return getReadSessionsClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder> getReadSessionsClustersFieldBuilder() { if (readSessionsClustersBuilder_ == null) { readSessionsClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClusters.Builder, com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.ReadSessionClustersOrBuilder>( readSessionsClusters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); readSessionsClusters_ = null; } return readSessionsClustersBuilder_; } private long version_ ; /** *
       * Latest clusters status version known to the cluster discovery service.
       * 
* * int64 version = 3; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** *
       * Latest clusters status version known to the cluster discovery service.
       * 
* * int64 version = 3; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** *
       * Latest clusters status version known to the cluster discovery service.
       * 
* * int64 version = 3; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 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:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult) } // @@protoc_insertion_point(class_scope:Ydb.PersQueue.ClusterDiscovery.DiscoverClustersResult) private static final com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult(); } public static com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoverClustersResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiscoverClustersResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.persqueue.cluster_discovery.YdbPersqueueClusterDiscovery.DiscoverClustersResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_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;ydb/public/api/protos/ydb_persqueue_cl" + "uster_discovery.proto\022\036Ydb.PersQueue.Clu" + "sterDiscovery\032\033google/protobuf/empty.pro" + "to\032)ydb/public/api/protos/ydb_operation." + "proto\"o\n\022WriteSessionParams\022\r\n\005topic\030\001 \001" + "(\t\022\021\n\tsource_id\030\002 \001(\014\022\027\n\017partition_group" + "\030\003 \001(\r\022\036\n\026preferred_cluster_name\030\004 \001(\t\"@" + "\n\013ClusterInfo\022\020\n\010endpoint\030\001 \001(\t\022\014\n\004name\030" + "\002 \001(\t\022\021\n\tavailable\030\003 \001(\010\"|\n\021ReadSessionP" + "arams\022\r\n\005topic\030\001 \001(\t\022\033\n\021mirror_to_cluste" + "r\030\002 \001(\tH\000\022.\n\014all_original\030\003 \001(\0132\026.google" + ".protobuf.EmptyH\000B\013\n\tread_rule\"\303\002\n\024Write" + "SessionClusters\022=\n\010clusters\030\001 \003(\0132+.Ydb." + "PersQueue.ClusterDiscovery.ClusterInfo\022n" + "\n primary_cluster_selection_reason\030\002 \001(\016" + "2D.Ydb.PersQueue.ClusterDiscovery.WriteS" + "essionClusters.SelectionReason\"|\n\017Select" + "ionReason\022 \n\034SELECTION_REASON_UNSPECIFIE" + "D\020\000\022\025\n\021CLIENT_PREFERENCE\020\001\022\023\n\017CLIENT_LOC" + "ATION\020\002\022\033\n\027CONSISTENT_DISTRIBUTION\020\003\"T\n\023" + "ReadSessionClusters\022=\n\010clusters\030\001 \003(\0132+." + "Ydb.PersQueue.ClusterDiscovery.ClusterIn" + "fo\"\203\002\n\027DiscoverClustersRequest\0229\n\020operat" + "ion_params\030\001 \001(\0132\037.Ydb.Operations.Operat" + "ionParams\022J\n\016write_sessions\030\002 \003(\01322.Ydb." + "PersQueue.ClusterDiscovery.WriteSessionP" + "arams\022H\n\rread_sessions\030\003 \003(\01321.Ydb.PersQ" + "ueue.ClusterDiscovery.ReadSessionParams\022" + "\027\n\017minimal_version\030\004 \001(\003\"H\n\030DiscoverClus" + "tersResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Op" + "erations.Operation\"\325\001\n\026DiscoverClustersR" + "esult\022U\n\027write_sessions_clusters\030\001 \003(\01324" + ".Ydb.PersQueue.ClusterDiscovery.WriteSes" + "sionClusters\022S\n\026read_sessions_clusters\030\002" + " \003(\01323.Ydb.PersQueue.ClusterDiscovery.Re" + "adSessionClusters\022\017\n\007version\030\003 \001(\003B/\n*co" + "m.yandex.ydb.persqueue.cluster_discovery" + "\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.EmptyProto.getDescriptor(), com.yandex.ydb.OperationProtos.getDescriptor(), }); internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionParams_descriptor, new java.lang.String[] { "Topic", "SourceId", "PartitionGroup", "PreferredClusterName", }); internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_ClusterInfo_descriptor, new java.lang.String[] { "Endpoint", "Name", "Available", }); internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionParams_descriptor, new java.lang.String[] { "Topic", "MirrorToCluster", "AllOriginal", "ReadRule", }); internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_WriteSessionClusters_descriptor, new java.lang.String[] { "Clusters", "PrimaryClusterSelectionReason", }); internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_ReadSessionClusters_descriptor, new java.lang.String[] { "Clusters", }); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersRequest_descriptor, new java.lang.String[] { "OperationParams", "WriteSessions", "ReadSessions", "MinimalVersion", }); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_PersQueue_ClusterDiscovery_DiscoverClustersResult_descriptor, new java.lang.String[] { "WriteSessionsClusters", "ReadSessionsClusters", "Version", }); com.google.protobuf.EmptyProto.getDescriptor(); com.yandex.ydb.OperationProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy