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

tech.ydb.proto.topic.YdbTopic Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: protos/ydb_topic.proto

package tech.ydb.proto.topic;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code Ydb.Topic.Codec}
   */
  public enum Codec
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * CODEC_UNSPECIFIED = 0;
     */
    CODEC_UNSPECIFIED(0),
    /**
     * CODEC_RAW = 1;
     */
    CODEC_RAW(1),
    /**
     * CODEC_GZIP = 2;
     */
    CODEC_GZIP(2),
    /**
     * CODEC_LZOP = 3;
     */
    CODEC_LZOP(3),
    /**
     * CODEC_ZSTD = 4;
     */
    CODEC_ZSTD(4),
    /**
     * 
     * User-defined codecs from 10000 to 19999
     * 
* * CODEC_CUSTOM = 10000; */ CODEC_CUSTOM(10000), UNRECOGNIZED(-1), ; /** * CODEC_UNSPECIFIED = 0; */ public static final int CODEC_UNSPECIFIED_VALUE = 0; /** * CODEC_RAW = 1; */ public static final int CODEC_RAW_VALUE = 1; /** * CODEC_GZIP = 2; */ public static final int CODEC_GZIP_VALUE = 2; /** * CODEC_LZOP = 3; */ public static final int CODEC_LZOP_VALUE = 3; /** * CODEC_ZSTD = 4; */ public static final int CODEC_ZSTD_VALUE = 4; /** *
     * User-defined codecs from 10000 to 19999
     * 
* * CODEC_CUSTOM = 10000; */ public static final int CODEC_CUSTOM_VALUE = 10000; 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 Codec 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 Codec forNumber(int value) { switch (value) { case 0: return CODEC_UNSPECIFIED; case 1: return CODEC_RAW; case 2: return CODEC_GZIP; case 3: return CODEC_LZOP; case 4: return CODEC_ZSTD; case 10000: return CODEC_CUSTOM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Codec> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Codec findValueByNumber(int number) { return Codec.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 tech.ydb.proto.topic.YdbTopic.getDescriptor().getEnumTypes().get(0); } private static final Codec[] VALUES = values(); public static Codec 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 Codec(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.Topic.Codec) } /** *
   * Metering mode specifies the method used to determine consumption of resources by the topic.
   * This settings will have an effect only in a serverless database.
   * 
* * Protobuf enum {@code Ydb.Topic.MeteringMode} */ public enum MeteringMode implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Use default
     * 
* * METERING_MODE_UNSPECIFIED = 0; */ METERING_MODE_UNSPECIFIED(0), /** *
     * Metering based on resource reservation
     * 
* * METERING_MODE_RESERVED_CAPACITY = 1; */ METERING_MODE_RESERVED_CAPACITY(1), /** *
     * Metering based on actual consumption. Default.
     * 
* * METERING_MODE_REQUEST_UNITS = 2; */ METERING_MODE_REQUEST_UNITS(2), UNRECOGNIZED(-1), ; /** *
     * Use default
     * 
* * METERING_MODE_UNSPECIFIED = 0; */ public static final int METERING_MODE_UNSPECIFIED_VALUE = 0; /** *
     * Metering based on resource reservation
     * 
* * METERING_MODE_RESERVED_CAPACITY = 1; */ public static final int METERING_MODE_RESERVED_CAPACITY_VALUE = 1; /** *
     * Metering based on actual consumption. Default.
     * 
* * METERING_MODE_REQUEST_UNITS = 2; */ public static final int METERING_MODE_REQUEST_UNITS_VALUE = 2; 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 MeteringMode 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 MeteringMode forNumber(int value) { switch (value) { case 0: return METERING_MODE_UNSPECIFIED; case 1: return METERING_MODE_RESERVED_CAPACITY; case 2: return METERING_MODE_REQUEST_UNITS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MeteringMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MeteringMode findValueByNumber(int number) { return MeteringMode.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 tech.ydb.proto.topic.YdbTopic.getDescriptor().getEnumTypes().get(1); } private static final MeteringMode[] VALUES = values(); public static MeteringMode 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 MeteringMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.Topic.MeteringMode) } public interface SupportedCodecsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.SupportedCodecs) com.google.protobuf.MessageOrBuilder { /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return A list containing the codecs. */ java.util.List getCodecsList(); /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return The count of codecs. */ int getCodecsCount(); /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The codecs at the given index. */ int getCodecs(int index); } /** *
   * Description of supported codecs.
   * 
* * Protobuf type {@code Ydb.Topic.SupportedCodecs} */ public static final class SupportedCodecs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.SupportedCodecs) SupportedCodecsOrBuilder { private static final long serialVersionUID = 0L; // Use SupportedCodecs.newBuilder() to construct. private SupportedCodecs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SupportedCodecs() { codecs_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SupportedCodecs(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_SupportedCodecs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_SupportedCodecs_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.class, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder.class); } public static final int CODECS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList codecs_ = emptyIntList(); /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return A list containing the codecs. */ @java.lang.Override public java.util.List getCodecsList() { return codecs_; } /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return The count of codecs. */ public int getCodecsCount() { return codecs_.size(); } /** *
     * List of supported codecs.
     * See enum Codec above for values.
     * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The codecs at the given index. */ public int getCodecs(int index) { return codecs_.getInt(index); } private int codecsMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (getCodecsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(codecsMemoizedSerializedSize); } for (int i = 0; i < codecs_.size(); i++) { output.writeInt32NoTag(codecs_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < codecs_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(codecs_.getInt(i)); } size += dataSize; if (!getCodecsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } codecsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.SupportedCodecs)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.SupportedCodecs other = (tech.ydb.proto.topic.YdbTopic.SupportedCodecs) obj; if (!getCodecsList() .equals(other.getCodecsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCodecsCount() > 0) { hash = (37 * hash) + CODECS_FIELD_NUMBER; hash = (53 * hash) + getCodecsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs 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 tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs 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 tech.ydb.proto.topic.YdbTopic.SupportedCodecs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs 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(tech.ydb.proto.topic.YdbTopic.SupportedCodecs 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; } /** *
     * Description of supported codecs.
     * 
* * Protobuf type {@code Ydb.Topic.SupportedCodecs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.SupportedCodecs) tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_SupportedCodecs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_SupportedCodecs_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.class, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.SupportedCodecs.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; codecs_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_SupportedCodecs_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs build() { tech.ydb.proto.topic.YdbTopic.SupportedCodecs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs buildPartial() { tech.ydb.proto.topic.YdbTopic.SupportedCodecs result = new tech.ydb.proto.topic.YdbTopic.SupportedCodecs(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.SupportedCodecs result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { codecs_.makeImmutable(); result.codecs_ = codecs_; } } @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 tech.ydb.proto.topic.YdbTopic.SupportedCodecs) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.SupportedCodecs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.SupportedCodecs other) { if (other == tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) return this; if (!other.codecs_.isEmpty()) { if (codecs_.isEmpty()) { codecs_ = other.codecs_; codecs_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureCodecsIsMutable(); codecs_.addAll(other.codecs_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int v = input.readInt32(); ensureCodecsIsMutable(); codecs_.addInt(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureCodecsIsMutable(); while (input.getBytesUntilLimit() > 0) { codecs_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList codecs_ = emptyIntList(); private void ensureCodecsIsMutable() { if (!codecs_.isModifiable()) { codecs_ = makeMutableCopy(codecs_); } bitField0_ |= 0x00000001; } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return A list containing the codecs. */ public java.util.List getCodecsList() { codecs_.makeImmutable(); return codecs_; } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return The count of codecs. */ public int getCodecsCount() { return codecs_.size(); } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The codecs at the given index. */ public int getCodecs(int index) { return codecs_.getInt(index); } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param index The index to set the value at. * @param value The codecs to set. * @return This builder for chaining. */ public Builder setCodecs( int index, int value) { ensureCodecsIsMutable(); codecs_.setInt(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param value The codecs to add. * @return This builder for chaining. */ public Builder addCodecs(int value) { ensureCodecsIsMutable(); codecs_.addInt(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @param values The codecs to add. * @return This builder for chaining. */ public Builder addAllCodecs( java.lang.Iterable values) { ensureCodecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, codecs_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * List of supported codecs.
       * See enum Codec above for values.
       * 
* * repeated int32 codecs = 1 [(.Ydb.size) = { ... } * @return This builder for chaining. */ public Builder clearCodecs() { codecs_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); 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.Topic.SupportedCodecs) } // @@protoc_insertion_point(class_scope:Ydb.Topic.SupportedCodecs) private static final tech.ydb.proto.topic.YdbTopic.SupportedCodecs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.SupportedCodecs(); } public static tech.ydb.proto.topic.YdbTopic.SupportedCodecs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SupportedCodecs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OffsetsRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.OffsetsRange) com.google.protobuf.MessageOrBuilder { /** * int64 start = 1; * @return The start. */ long getStart(); /** * int64 end = 2; * @return The end. */ long getEnd(); } /** *
   * Represents range [start, end).
   * I.e. (end - 1) is the greatest of offsets, included in non-empty range.
   * 
* * Protobuf type {@code Ydb.Topic.OffsetsRange} */ public static final class OffsetsRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.OffsetsRange) OffsetsRangeOrBuilder { private static final long serialVersionUID = 0L; // Use OffsetsRange.newBuilder() to construct. private OffsetsRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OffsetsRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OffsetsRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_OffsetsRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_OffsetsRange_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.OffsetsRange.class, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } 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 (start_ != 0L) { output.writeInt64(1, start_); } if (end_ != 0L) { output.writeInt64(2, end_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, start_); } if (end_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, end_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.OffsetsRange)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.OffsetsRange other = (tech.ydb.proto.topic.YdbTopic.OffsetsRange) obj; if (getStart() != other.getStart()) return false; if (getEnd() != other.getEnd()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStart()); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEnd()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange 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 tech.ydb.proto.topic.YdbTopic.OffsetsRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange 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 tech.ydb.proto.topic.YdbTopic.OffsetsRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange 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(tech.ydb.proto.topic.YdbTopic.OffsetsRange 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; } /** *
     * Represents range [start, end).
     * I.e. (end - 1) is the greatest of offsets, included in non-empty range.
     * 
* * Protobuf type {@code Ydb.Topic.OffsetsRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.OffsetsRange) tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_OffsetsRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_OffsetsRange_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.OffsetsRange.class, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.OffsetsRange.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; start_ = 0L; end_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_OffsetsRange_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange build() { tech.ydb.proto.topic.YdbTopic.OffsetsRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange buildPartial() { tech.ydb.proto.topic.YdbTopic.OffsetsRange result = new tech.ydb.proto.topic.YdbTopic.OffsetsRange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.OffsetsRange result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.start_ = start_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; } } @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 tech.ydb.proto.topic.YdbTopic.OffsetsRange) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.OffsetsRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.OffsetsRange other) { if (other == tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()) return this; if (other.getStart() != 0L) { setStart(other.getStart()); } if (other.getEnd() != 0L) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { start_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { end_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long start_ ; /** * int64 start = 1; * @return The start. */ @java.lang.Override public long getStart() { return start_; } /** * int64 start = 1; * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(long value) { start_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 start = 1; * @return This builder for chaining. */ public Builder clearStart() { bitField0_ = (bitField0_ & ~0x00000001); start_ = 0L; onChanged(); return this; } private long end_ ; /** * int64 end = 2; * @return The end. */ @java.lang.Override public long getEnd() { return end_; } /** * int64 end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(long value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 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.Topic.OffsetsRange) } // @@protoc_insertion_point(class_scope:Ydb.Topic.OffsetsRange) private static final tech.ydb.proto.topic.YdbTopic.OffsetsRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.OffsetsRange(); } public static tech.ydb.proto.topic.YdbTopic.OffsetsRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OffsetsRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateTokenRequest) com.google.protobuf.MessageOrBuilder { /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The token. */ java.lang.String getToken(); /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The bytes for token. */ com.google.protobuf.ByteString getTokenBytes(); } /** *
   * In-session reauthentication and reauthorization, lets user increase session lifetime.
   * Client should wait for UpdateTokenResponse before sending next UpdateTokenRequest.
   * 
* * Protobuf type {@code Ydb.Topic.UpdateTokenRequest} */ public static final class UpdateTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateTokenRequest) UpdateTokenRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateTokenRequest.newBuilder() to construct. private UpdateTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateTokenRequest() { token_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateTokenRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.class, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder.class); } public static final int TOKEN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object token_ = ""; /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The token. */ @java.lang.Override public java.lang.String getToken() { java.lang.Object ref = token_; 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(); token_ = s; return s; } } /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The bytes for token. */ @java.lang.Override public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = 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(token_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest other = (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) obj; if (!getToken() .equals(other.getToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest 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 tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest 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 tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest 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(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest 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; } /** *
     * In-session reauthentication and reauthorization, lets user increase session lifetime.
     * Client should wait for UpdateTokenResponse before sending next UpdateTokenRequest.
     * 
* * Protobuf type {@code Ydb.Topic.UpdateTokenRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateTokenRequest) tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.class, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; token_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest build() { tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest result = new tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.token_ = token_; } } @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 tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance()) return this; if (!other.getToken().isEmpty()) { token_ = other.token_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { token_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object token_ = ""; /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The token. */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** * string token = 1 [(.Ydb.sensitive) = true]; * @return The bytes for token. */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string token = 1 [(.Ydb.sensitive) = true]; * @param value The token to set. * @return This builder for chaining. */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } token_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string token = 1 [(.Ydb.sensitive) = true]; * @return This builder for chaining. */ public Builder clearToken() { token_ = getDefaultInstance().getToken(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string token = 1 [(.Ydb.sensitive) = true]; * @param value The bytes for token to set. * @return This builder for chaining. */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); token_ = value; bitField0_ |= 0x00000001; 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.Topic.UpdateTokenRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateTokenRequest) private static final tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest(); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateTokenRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateTokenResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code Ydb.Topic.UpdateTokenResponse} */ public static final class UpdateTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateTokenResponse) UpdateTokenResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateTokenResponse.newBuilder() to construct. private UpdateTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateTokenResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateTokenResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.class, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse other = (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse 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 tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse 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 tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse 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(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse 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.Topic.UpdateTokenResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateTokenResponse) tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.class, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateTokenResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse build() { tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse result = new tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.UpdateTokenResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateTokenResponse) private static final tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse(); } public static tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateTokenResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionWithGenerationOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.PartitionWithGeneration) com.google.protobuf.MessageOrBuilder { /** *
     * Partition identifier.
     * 
* * int64 partition_id = 1; * @return The partitionId. */ long getPartitionId(); /** *
     * Partition generation.
     * 
* * int64 generation = 2; * @return The generation. */ long getGeneration(); } /** * Protobuf type {@code Ydb.Topic.PartitionWithGeneration} */ public static final class PartitionWithGeneration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.PartitionWithGeneration) PartitionWithGenerationOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionWithGeneration.newBuilder() to construct. private PartitionWithGeneration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionWithGeneration() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionWithGeneration(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionWithGeneration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionWithGeneration_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.class, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder.class); } public static final int PARTITION_ID_FIELD_NUMBER = 1; private long partitionId_ = 0L; /** *
     * Partition identifier.
     * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int GENERATION_FIELD_NUMBER = 2; private long generation_ = 0L; /** *
     * Partition generation.
     * 
* * int64 generation = 2; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } 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 (partitionId_ != 0L) { output.writeInt64(1, partitionId_); } if (generation_ != 0L) { output.writeInt64(2, generation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionId_); } if (generation_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, generation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration other = (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) obj; if (getPartitionId() != other.getPartitionId()) return false; if (getGeneration() != other.getGeneration()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGeneration()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration 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 tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration 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 tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration 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(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration 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.Topic.PartitionWithGeneration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.PartitionWithGeneration) tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionWithGeneration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionWithGeneration_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.class, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionId_ = 0L; generation_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionWithGeneration_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration build() { tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration buildPartial() { tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration result = new tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionId_ = partitionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.generation_ = generation_; } } @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 tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration other) { if (other == tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance()) return this; if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.getGeneration() != 0L) { setGeneration(other.getGeneration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { generation_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionId_ ; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionId_ = 0L; onChanged(); return this; } private long generation_ ; /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { generation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @return This builder for chaining. */ public Builder clearGeneration() { bitField0_ = (bitField0_ & ~0x00000002); generation_ = 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.Topic.PartitionWithGeneration) } // @@protoc_insertion_point(class_scope:Ydb.Topic.PartitionWithGeneration) private static final tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration(); } public static tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionWithGeneration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataItemOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.MetadataItem) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * bytes value = 2; * @return The value. */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code Ydb.Topic.MetadataItem} */ public static final class MetadataItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.MetadataItem) MetadataItemOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataItem.newBuilder() to construct. private MetadataItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataItem() { key_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MetadataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MetadataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.MetadataItem.class, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.MetadataItem)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.MetadataItem other = (tech.ydb.proto.topic.YdbTopic.MetadataItem) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValue() .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem 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 tech.ydb.proto.topic.YdbTopic.MetadataItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem 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 tech.ydb.proto.topic.YdbTopic.MetadataItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem 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(tech.ydb.proto.topic.YdbTopic.MetadataItem 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.Topic.MetadataItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.MetadataItem) tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MetadataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MetadataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.MetadataItem.class, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.MetadataItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MetadataItem_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem build() { tech.ydb.proto.topic.YdbTopic.MetadataItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem buildPartial() { tech.ydb.proto.topic.YdbTopic.MetadataItem result = new tech.ydb.proto.topic.YdbTopic.MetadataItem(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.MetadataItem result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; } } @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 tech.ydb.proto.topic.YdbTopic.MetadataItem) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.MetadataItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.MetadataItem other) { if (other == tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); 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.Topic.MetadataItem) } // @@protoc_insertion_point(class_scope:Ydb.Topic.MetadataItem) private static final tech.ydb.proto.topic.YdbTopic.MetadataItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.MetadataItem(); } public static tech.ydb.proto.topic.YdbTopic.MetadataItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamWriteMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage) com.google.protobuf.MessageOrBuilder { } /** *
   * Messages for bidirectional streaming rpc StreamWrite
   * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage} */ public static final class StreamWriteMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage) StreamWriteMessageOrBuilder { private static final long serialVersionUID = 0L; // Use StreamWriteMessage.newBuilder() to construct. private StreamWriteMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamWriteMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamWriteMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.Builder.class); } public interface FromClientOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.FromClient) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ boolean hasInitRequest(); /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return The initRequest. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getInitRequest(); /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder getInitRequestOrBuilder(); /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return Whether the writeRequest field is set. */ boolean hasWriteRequest(); /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return The writeRequest. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getWriteRequest(); /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder getWriteRequestOrBuilder(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ boolean hasUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.ClientMessageCase getClientMessageCase(); } /** *
     * Client-server message for write session. Contains one of:
     *     InitRequest - handshake request.
     *     WriteRequest - portion of data to be written.
     *     UpdateTokenRequest - user credentials if update is needed.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.FromClient} */ public static final class FromClient extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.FromClient) FromClientOrBuilder { private static final long serialVersionUID = 0L; // Use FromClient.newBuilder() to construct. private FromClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromClient() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromClient(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.Builder.class); } private int clientMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object clientMessage_; public enum ClientMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INIT_REQUEST(1), WRITE_REQUEST(2), UPDATE_TOKEN_REQUEST(3), CLIENTMESSAGE_NOT_SET(0); private final int value; private ClientMessageCase(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 ClientMessageCase valueOf(int value) { return forNumber(value); } public static ClientMessageCase forNumber(int value) { switch (value) { case 1: return INIT_REQUEST; case 2: return WRITE_REQUEST; case 3: return UPDATE_TOKEN_REQUEST; case 0: return CLIENTMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public static final int INIT_REQUEST_FIELD_NUMBER = 1; /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ @java.lang.Override public boolean hasInitRequest() { return clientMessageCase_ == 1; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return The initRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getInitRequest() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder getInitRequestOrBuilder() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } public static final int WRITE_REQUEST_FIELD_NUMBER = 2; /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return Whether the writeRequest field is set. */ @java.lang.Override public boolean hasWriteRequest() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return The writeRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getWriteRequest() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder getWriteRequestOrBuilder() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } public static final int UPDATE_TOKEN_REQUEST_FIELD_NUMBER = 3; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.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 (clientMessageCase_ == 1) { output.writeMessage(1, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_); } if (clientMessageCase_ == 2) { output.writeMessage(2, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_); } if (clientMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clientMessageCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_); } if (clientMessageCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_); } if (clientMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient) obj; if (!getClientMessageCase().equals(other.getClientMessageCase())) return false; switch (clientMessageCase_) { case 1: if (!getInitRequest() .equals(other.getInitRequest())) return false; break; case 2: if (!getWriteRequest() .equals(other.getWriteRequest())) return false; break; case 3: if (!getUpdateTokenRequest() .equals(other.getUpdateTokenRequest())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (clientMessageCase_) { case 1: hash = (37 * hash) + INIT_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getInitRequest().hashCode(); break; case 2: hash = (37 * hash) + WRITE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getWriteRequest().hashCode(); break; case 3: hash = (37 * hash) + UPDATE_TOKEN_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenRequest().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient 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; } /** *
       * Client-server message for write session. Contains one of:
       *     InitRequest - handshake request.
       *     WriteRequest - portion of data to be written.
       *     UpdateTokenRequest - user credentials if update is needed.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.FromClient} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.FromClient) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClientOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (initRequestBuilder_ != null) { initRequestBuilder_.clear(); } if (writeRequestBuilder_ != null) { writeRequestBuilder_.clear(); } if (updateTokenRequestBuilder_ != null) { updateTokenRequestBuilder_.clear(); } clientMessageCase_ = 0; clientMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient result) { result.clientMessageCase_ = clientMessageCase_; result.clientMessage_ = this.clientMessage_; if (clientMessageCase_ == 1 && initRequestBuilder_ != null) { result.clientMessage_ = initRequestBuilder_.build(); } if (clientMessageCase_ == 2 && writeRequestBuilder_ != null) { result.clientMessage_ = writeRequestBuilder_.build(); } if (clientMessageCase_ == 3 && updateTokenRequestBuilder_ != null) { result.clientMessage_ = updateTokenRequestBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient.getDefaultInstance()) return this; switch (other.getClientMessageCase()) { case INIT_REQUEST: { mergeInitRequest(other.getInitRequest()); break; } case WRITE_REQUEST: { mergeWriteRequest(other.getWriteRequest()); break; } case UPDATE_TOKEN_REQUEST: { mergeUpdateTokenRequest(other.getUpdateTokenRequest()); break; } case CLIENTMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInitRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 1; break; } // case 10 case 18: { input.readMessage( getWriteRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 2; break; } // case 18 case 26: { input.readMessage( getUpdateTokenRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int clientMessageCase_ = 0; private java.lang.Object clientMessage_; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public Builder clearClientMessage() { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder> initRequestBuilder_; /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ @java.lang.Override public boolean hasInitRequest() { return clientMessageCase_ == 1; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; * @return The initRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getInitRequest() { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 1) { return initRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ public Builder setInitRequest(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest value) { if (initRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { initRequestBuilder_.setMessage(value); } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ public Builder setInitRequest( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder builderForValue) { if (initRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { initRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ public Builder mergeInitRequest(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest value) { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 1) { initRequestBuilder_.mergeFrom(value); } else { initRequestBuilder_.setMessage(value); } } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ public Builder clearInitRequest() { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; } initRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder getInitRequestBuilder() { return getInitRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder getInitRequestOrBuilder() { if ((clientMessageCase_ == 1) && (initRequestBuilder_ != null)) { return initRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.InitRequest init_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder> getInitRequestFieldBuilder() { if (initRequestBuilder_ == null) { if (!(clientMessageCase_ == 1)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } initRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 1; onChanged(); return initRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder> writeRequestBuilder_; /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return Whether the writeRequest field is set. */ @java.lang.Override public boolean hasWriteRequest() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; * @return The writeRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getWriteRequest() { if (writeRequestBuilder_ == null) { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 2) { return writeRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ public Builder setWriteRequest(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest value) { if (writeRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { writeRequestBuilder_.setMessage(value); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ public Builder setWriteRequest( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder builderForValue) { if (writeRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { writeRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ public Builder mergeWriteRequest(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest value) { if (writeRequestBuilder_ == null) { if (clientMessageCase_ == 2 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 2) { writeRequestBuilder_.mergeFrom(value); } else { writeRequestBuilder_.setMessage(value); } } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ public Builder clearWriteRequest() { if (writeRequestBuilder_ == null) { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; } writeRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder getWriteRequestBuilder() { return getWriteRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder getWriteRequestOrBuilder() { if ((clientMessageCase_ == 2) && (writeRequestBuilder_ != null)) { return writeRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteRequest write_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder> getWriteRequestFieldBuilder() { if (writeRequestBuilder_ == null) { if (!(clientMessageCase_ == 2)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } writeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 2; onChanged(); return writeRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> updateTokenRequestBuilder_; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 3) { return updateTokenRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder setUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { updateTokenRequestBuilder_.setMessage(value); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder setUpdateTokenRequest( tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder builderForValue) { if (updateTokenRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { updateTokenRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder mergeUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 3) { updateTokenRequestBuilder_.mergeFrom(value); } else { updateTokenRequestBuilder_.setMessage(value); } } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder clearUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; } updateTokenRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder getUpdateTokenRequestBuilder() { return getUpdateTokenRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if ((clientMessageCase_ == 3) && (updateTokenRequestBuilder_ != null)) { return updateTokenRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> getUpdateTokenRequestFieldBuilder() { if (updateTokenRequestBuilder_ == null) { if (!(clientMessageCase_ == 3)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } updateTokenRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 3; onChanged(); return updateTokenRequestBuilder_; } @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.Topic.StreamWriteMessage.FromClient) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.FromClient) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromClient parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromClient getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromServerOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.FromServer) com.google.protobuf.MessageOrBuilder { /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ boolean hasInitResponse(); /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return The initResponse. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getInitResponse(); /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder getInitResponseOrBuilder(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return Whether the writeResponse field is set. */ boolean hasWriteResponse(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return The writeResponse. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getWriteResponse(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder getWriteResponseOrBuilder(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ boolean hasUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.ServerMessageCase getServerMessageCase(); } /** *
     * Server-client message for write session. Contains either non-success status, or one of:
     *     InitResponse - correct handshake response.
     *     WriteResponse - acknowledgment of storing client messages.
     *     UpdateTokenResponse - acknowledgment of reauthentication and reauthorization.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.FromServer} */ public static final class FromServer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.FromServer) FromServerOrBuilder { private static final long serialVersionUID = 0L; // Use FromServer.newBuilder() to construct. private FromServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromServer() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromServer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.Builder.class); } private int serverMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object serverMessage_; public enum ServerMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INIT_RESPONSE(3), WRITE_RESPONSE(4), UPDATE_TOKEN_RESPONSE(5), SERVERMESSAGE_NOT_SET(0); private final int value; private ServerMessageCase(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 ServerMessageCase valueOf(int value) { return forNumber(value); } public static ServerMessageCase forNumber(int value) { switch (value) { case 3: return INIT_RESPONSE; case 4: return WRITE_RESPONSE; case 5: return UPDATE_TOKEN_RESPONSE; case 0: return SERVERMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public static final int STATUS_FIELD_NUMBER = 1; private int status_ = 0; /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List issues_; /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int INIT_RESPONSE_FIELD_NUMBER = 3; /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ @java.lang.Override public boolean hasInitResponse() { return serverMessageCase_ == 3; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return The initResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getInitResponse() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder getInitResponseOrBuilder() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } public static final int WRITE_RESPONSE_FIELD_NUMBER = 4; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return Whether the writeResponse field is set. */ @java.lang.Override public boolean hasWriteResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return The writeResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getWriteResponse() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder getWriteResponseOrBuilder() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } public static final int UPDATE_TOKEN_RESPONSE_FIELD_NUMBER = 5; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.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 (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } if (serverMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_); } if (serverMessageCase_ == 4) { output.writeMessage(4, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_); } if (serverMessageCase_ == 5) { output.writeMessage(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } if (serverMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_); } if (serverMessageCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_); } if (serverMessageCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getServerMessageCase().equals(other.getServerMessageCase())) return false; switch (serverMessageCase_) { case 3: if (!getInitResponse() .equals(other.getInitResponse())) return false; break; case 4: if (!getWriteResponse() .equals(other.getWriteResponse())) return false; break; case 5: if (!getUpdateTokenResponse() .equals(other.getUpdateTokenResponse())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } switch (serverMessageCase_) { case 3: hash = (37 * hash) + INIT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getInitResponse().hashCode(); break; case 4: hash = (37 * hash) + WRITE_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getWriteResponse().hashCode(); break; case 5: hash = (37 * hash) + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenResponse().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer 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; } /** *
       * Server-client message for write session. Contains either non-success status, or one of:
       *     InitResponse - correct handshake response.
       *     WriteResponse - acknowledgment of storing client messages.
       *     UpdateTokenResponse - acknowledgment of reauthentication and reauthorization.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.FromServer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.FromServer) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (initResponseBuilder_ != null) { initResponseBuilder_.clear(); } if (writeResponseBuilder_ != null) { writeResponseBuilder_.clear(); } if (updateTokenResponseBuilder_ != null) { updateTokenResponseBuilder_.clear(); } serverMessageCase_ = 0; serverMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer result) { result.serverMessageCase_ = serverMessageCase_; result.serverMessage_ = this.serverMessage_; if (serverMessageCase_ == 3 && initResponseBuilder_ != null) { result.serverMessage_ = initResponseBuilder_.build(); } if (serverMessageCase_ == 4 && writeResponseBuilder_ != null) { result.serverMessage_ = writeResponseBuilder_.build(); } if (serverMessageCase_ == 5 && updateTokenResponseBuilder_ != null) { result.serverMessage_ = updateTokenResponseBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } switch (other.getServerMessageCase()) { case INIT_RESPONSE: { mergeInitResponse(other.getInitResponse()); break; } case WRITE_RESPONSE: { mergeWriteResponse(other.getWriteResponse()); break; } case UPDATE_TOKEN_RESPONSE: { mergeUpdateTokenResponse(other.getUpdateTokenResponse()); break; } case SERVERMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getInitResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 3; break; } // case 26 case 34: { input.readMessage( getWriteResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 4; break; } // case 34 case 42: { input.readMessage( getUpdateTokenResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int serverMessageCase_ = 0; private java.lang.Object serverMessage_; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public Builder clearServerMessage() { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); return this; } private int bitField0_; private int status_ = 0; /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder> initResponseBuilder_; /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ @java.lang.Override public boolean hasInitResponse() { return serverMessageCase_ == 3; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; * @return The initResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getInitResponse() { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 3) { return initResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ public Builder setInitResponse(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse value) { if (initResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { initResponseBuilder_.setMessage(value); } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ public Builder setInitResponse( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder builderForValue) { if (initResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { initResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ public Builder mergeInitResponse(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse value) { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 3) { initResponseBuilder_.mergeFrom(value); } else { initResponseBuilder_.setMessage(value); } } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ public Builder clearInitResponse() { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; } initResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder getInitResponseBuilder() { return getInitResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder getInitResponseOrBuilder() { if ((serverMessageCase_ == 3) && (initResponseBuilder_ != null)) { return initResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.InitResponse init_response = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder> getInitResponseFieldBuilder() { if (initResponseBuilder_ == null) { if (!(serverMessageCase_ == 3)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } initResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 3; onChanged(); return initResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder> writeResponseBuilder_; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return Whether the writeResponse field is set. */ @java.lang.Override public boolean hasWriteResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; * @return The writeResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getWriteResponse() { if (writeResponseBuilder_ == null) { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 4) { return writeResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ public Builder setWriteResponse(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse value) { if (writeResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { writeResponseBuilder_.setMessage(value); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ public Builder setWriteResponse( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder builderForValue) { if (writeResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { writeResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ public Builder mergeWriteResponse(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse value) { if (writeResponseBuilder_ == null) { if (serverMessageCase_ == 4 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 4) { writeResponseBuilder_.mergeFrom(value); } else { writeResponseBuilder_.setMessage(value); } } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ public Builder clearWriteResponse() { if (writeResponseBuilder_ == null) { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; } writeResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder getWriteResponseBuilder() { return getWriteResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder getWriteResponseOrBuilder() { if ((serverMessageCase_ == 4) && (writeResponseBuilder_ != null)) { return writeResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse write_response = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder> getWriteResponseFieldBuilder() { if (writeResponseBuilder_ == null) { if (!(serverMessageCase_ == 4)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } writeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 4; onChanged(); return writeResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> updateTokenResponseBuilder_; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 5) { return updateTokenResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder setUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { updateTokenResponseBuilder_.setMessage(value); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder setUpdateTokenResponse( tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder builderForValue) { if (updateTokenResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { updateTokenResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder mergeUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 5) { updateTokenResponseBuilder_.mergeFrom(value); } else { updateTokenResponseBuilder_.setMessage(value); } } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder clearUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; } updateTokenResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder getUpdateTokenResponseBuilder() { return getUpdateTokenResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if ((serverMessageCase_ == 5) && (updateTokenResponseBuilder_ != null)) { return updateTokenResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> getUpdateTokenResponseFieldBuilder() { if (updateTokenResponseBuilder_ == null) { if (!(serverMessageCase_ == 5)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } updateTokenResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 5; onChanged(); return updateTokenResponseBuilder_; } @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.Topic.StreamWriteMessage.FromServer) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.FromServer) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromServer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.FromServer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.InitRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Full path of topic to write to.
       * 
* * string path = 1; * @return The path. */ java.lang.String getPath(); /** *
       * Full path of topic to write to.
       * 
* * string path = 1; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
       * Producer identifier of client data stream.
       * Used for message deduplication by sequence numbers.
       * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ java.lang.String getProducerId(); /** *
       * Producer identifier of client data stream.
       * Used for message deduplication by sequence numbers.
       * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ com.google.protobuf.ByteString getProducerIdBytes(); /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ int getWriteSessionMetaCount(); /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ boolean containsWriteSessionMeta( java.lang.String key); /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Deprecated java.util.Map getWriteSessionMeta(); /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ java.util.Map getWriteSessionMetaMap(); /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ java.lang.String getWriteSessionMetaOrThrow( java.lang.String key); /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ boolean hasMessageGroupId(); /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The messageGroupId. */ java.lang.String getMessageGroupId(); /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ com.google.protobuf.ByteString getMessageGroupIdBytes(); /** *
       * Explicit partition id to write to.
       * 
* * int64 partition_id = 5; * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** *
       * Explicit partition id to write to.
       * 
* * int64 partition_id = 5; * @return The partitionId. */ long getPartitionId(); /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return Whether the partitionWithGeneration field is set. */ boolean hasPartitionWithGeneration(); /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return The partitionWithGeneration. */ tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration(); /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder(); /** *
       * Explicitly request for last sequential number
       * It may be expensive, if producer wrote to many partitions before.
       * 
* * bool get_last_seq_no = 6; * @return The getLastSeqNo. */ boolean getGetLastSeqNo(); tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.PartitioningCase getPartitioningCase(); } /** *
     * Handshake request that must be sent to server first.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.InitRequest} */ public static final class InitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.InitRequest) InitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use InitRequest.newBuilder() to construct. private InitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitRequest() { path_ = ""; producerId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InitRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder.class); } private int partitioningCase_ = 0; @SuppressWarnings("serial") private java.lang.Object partitioning_; public enum PartitioningCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MESSAGE_GROUP_ID(4), PARTITION_ID(5), PARTITION_WITH_GENERATION(7), PARTITIONING_NOT_SET(0); private final int value; private PartitioningCase(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 PartitioningCase valueOf(int value) { return forNumber(value); } public static PartitioningCase forNumber(int value) { switch (value) { case 4: return MESSAGE_GROUP_ID; case 5: return PARTITION_ID; case 7: return PARTITION_WITH_GENERATION; case 0: return PARTITIONING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PartitioningCase getPartitioningCase() { return PartitioningCase.forNumber( partitioningCase_); } public static final int PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
       * Full path of topic to write to.
       * 
* * string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
       * Full path of topic to write to.
       * 
* * string path = 1; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRODUCER_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object producerId_ = ""; /** *
       * Producer identifier of client data stream.
       * Used for message deduplication by sequence numbers.
       * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ @java.lang.Override public java.lang.String getProducerId() { java.lang.Object ref = producerId_; 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(); producerId_ = s; return s; } } /** *
       * Producer identifier of client data stream.
       * Used for message deduplication by sequence numbers.
       * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ @java.lang.Override public com.google.protobuf.ByteString getProducerIdBytes() { java.lang.Object ref = producerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WRITE_SESSION_META_FIELD_NUMBER = 3; private static final class WriteSessionMetaDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> writeSessionMeta_; private com.google.protobuf.MapField internalGetWriteSessionMeta() { if (writeSessionMeta_ == null) { return com.google.protobuf.MapField.emptyMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } return writeSessionMeta_; } public int getWriteSessionMetaCount() { return internalGetWriteSessionMeta().getMap().size(); } /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public boolean containsWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWriteSessionMeta().getMap().containsKey(key); } /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWriteSessionMeta() { return getWriteSessionMetaMap(); } /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.util.Map getWriteSessionMetaMap() { return internalGetWriteSessionMeta().getMap(); } /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User metadata attached to this write session.
       * Reader will get this session meta data with each message read.
       * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.lang.String getWriteSessionMetaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MESSAGE_GROUP_ID_FIELD_NUMBER = 4; /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ public boolean hasMessageGroupId() { return partitioningCase_ == 4; } /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The messageGroupId. */ public java.lang.String getMessageGroupId() { java.lang.Object ref = ""; if (partitioningCase_ == 4) { ref = partitioning_; } 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 (partitioningCase_ == 4) { partitioning_ = s; } return s; } } /** *
       * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
       * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = ""; if (partitioningCase_ == 4) { ref = partitioning_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (partitioningCase_ == 4) { partitioning_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 5; /** *
       * Explicit partition id to write to.
       * 
* * int64 partition_id = 5; * @return Whether the partitionId field is set. */ @java.lang.Override public boolean hasPartitionId() { return partitioningCase_ == 5; } /** *
       * Explicit partition id to write to.
       * 
* * int64 partition_id = 5; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { if (partitioningCase_ == 5) { return (java.lang.Long) partitioning_; } return 0L; } public static final int PARTITION_WITH_GENERATION_FIELD_NUMBER = 7; /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return Whether the partitionWithGeneration field is set. */ @java.lang.Override public boolean hasPartitionWithGeneration() { return partitioningCase_ == 7; } /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return The partitionWithGeneration. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration() { if (partitioningCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } /** *
       * Explicit partition location to write to.
       * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder() { if (partitioningCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } public static final int GET_LAST_SEQ_NO_FIELD_NUMBER = 6; private boolean getLastSeqNo_ = false; /** *
       * Explicitly request for last sequential number
       * It may be expensive, if producer wrote to many partitions before.
       * 
* * bool get_last_seq_no = 6; * @return The getLastSeqNo. */ @java.lang.Override public boolean getGetLastSeqNo() { return getLastSeqNo_; } 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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetWriteSessionMeta(), WriteSessionMetaDefaultEntryHolder.defaultEntry, 3); if (partitioningCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, partitioning_); } if (partitioningCase_ == 5) { output.writeInt64( 5, (long)((java.lang.Long) partitioning_)); } if (getLastSeqNo_ != false) { output.writeBool(6, getLastSeqNo_); } if (partitioningCase_ == 7) { output.writeMessage(7, (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); } for (java.util.Map.Entry entry : internalGetWriteSessionMeta().getMap().entrySet()) { com.google.protobuf.MapEntry writeSessionMeta__ = WriteSessionMetaDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, writeSessionMeta__); } if (partitioningCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, partitioning_); } if (partitioningCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 5, (long)((java.lang.Long) partitioning_)); } if (getLastSeqNo_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, getLastSeqNo_); } if (partitioningCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) obj; if (!getPath() .equals(other.getPath())) return false; if (!getProducerId() .equals(other.getProducerId())) return false; if (!internalGetWriteSessionMeta().equals( other.internalGetWriteSessionMeta())) return false; if (getGetLastSeqNo() != other.getGetLastSeqNo()) return false; if (!getPartitioningCase().equals(other.getPartitioningCase())) return false; switch (partitioningCase_) { case 4: if (!getMessageGroupId() .equals(other.getMessageGroupId())) return false; break; case 5: if (getPartitionId() != other.getPartitionId()) return false; break; case 7: if (!getPartitionWithGeneration() .equals(other.getPartitionWithGeneration())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; hash = (53 * hash) + getProducerId().hashCode(); if (!internalGetWriteSessionMeta().getMap().isEmpty()) { hash = (37 * hash) + WRITE_SESSION_META_FIELD_NUMBER; hash = (53 * hash) + internalGetWriteSessionMeta().hashCode(); } hash = (37 * hash) + GET_LAST_SEQ_NO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getGetLastSeqNo()); switch (partitioningCase_) { case 4: hash = (37 * hash) + MESSAGE_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getMessageGroupId().hashCode(); break; case 5: hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); break; case 7: hash = (37 * hash) + PARTITION_WITH_GENERATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionWithGeneration().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest 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; } /** *
       * Handshake request that must be sent to server first.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.InitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.InitRequest) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; path_ = ""; producerId_ = ""; internalGetMutableWriteSessionMeta().clear(); if (partitionWithGenerationBuilder_ != null) { partitionWithGenerationBuilder_.clear(); } getLastSeqNo_ = false; partitioningCase_ = 0; partitioning_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.producerId_ = producerId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.writeSessionMeta_ = internalGetWriteSessionMeta(); result.writeSessionMeta_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.getLastSeqNo_ = getLastSeqNo_; } } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest result) { result.partitioningCase_ = partitioningCase_; result.partitioning_ = this.partitioning_; if (partitioningCase_ == 7 && partitionWithGenerationBuilder_ != null) { result.partitioning_ = partitionWithGenerationBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getProducerId().isEmpty()) { producerId_ = other.producerId_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableWriteSessionMeta().mergeFrom( other.internalGetWriteSessionMeta()); bitField0_ |= 0x00000004; if (other.getGetLastSeqNo() != false) { setGetLastSeqNo(other.getGetLastSeqNo()); } switch (other.getPartitioningCase()) { case MESSAGE_GROUP_ID: { partitioningCase_ = 4; partitioning_ = other.partitioning_; onChanged(); break; } case PARTITION_ID: { setPartitionId(other.getPartitionId()); break; } case PARTITION_WITH_GENERATION: { mergePartitionWithGeneration(other.getPartitionWithGeneration()); break; } case PARTITIONING_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { producerId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry writeSessionMeta__ = input.readMessage( WriteSessionMetaDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableWriteSessionMeta().getMutableMap().put( writeSessionMeta__.getKey(), writeSessionMeta__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); partitioningCase_ = 4; partitioning_ = s; break; } // case 34 case 40: { partitioning_ = input.readInt64(); partitioningCase_ = 5; break; } // case 40 case 48: { getLastSeqNo_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 48 case 58: { input.readMessage( getPartitionWithGenerationFieldBuilder().getBuilder(), extensionRegistry); partitioningCase_ = 7; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int partitioningCase_ = 0; private java.lang.Object partitioning_; public PartitioningCase getPartitioningCase() { return PartitioningCase.forNumber( partitioningCase_); } public Builder clearPartitioning() { partitioningCase_ = 0; partitioning_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
         * Full path of topic to write to.
         * 
* * string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Full path of topic to write to.
         * 
* * string path = 1; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Full path of topic to write to.
         * 
* * string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Full path of topic to write to.
         * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Full path of topic to write to.
         * 
* * string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object producerId_ = ""; /** *
         * Producer identifier of client data stream.
         * Used for message deduplication by sequence numbers.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ public java.lang.String getProducerId() { java.lang.Object ref = producerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Producer identifier of client data stream.
         * Used for message deduplication by sequence numbers.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ public com.google.protobuf.ByteString getProducerIdBytes() { java.lang.Object ref = producerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Producer identifier of client data stream.
         * Used for message deduplication by sequence numbers.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @param value The producerId to set. * @return This builder for chaining. */ public Builder setProducerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } producerId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Producer identifier of client data stream.
         * Used for message deduplication by sequence numbers.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return This builder for chaining. */ public Builder clearProducerId() { producerId_ = getDefaultInstance().getProducerId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * Producer identifier of client data stream.
         * Used for message deduplication by sequence numbers.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @param value The bytes for producerId to set. * @return This builder for chaining. */ public Builder setProducerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producerId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> writeSessionMeta_; private com.google.protobuf.MapField internalGetWriteSessionMeta() { if (writeSessionMeta_ == null) { return com.google.protobuf.MapField.emptyMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } return writeSessionMeta_; } private com.google.protobuf.MapField internalGetMutableWriteSessionMeta() { if (writeSessionMeta_ == null) { writeSessionMeta_ = com.google.protobuf.MapField.newMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } if (!writeSessionMeta_.isMutable()) { writeSessionMeta_ = writeSessionMeta_.copy(); } bitField0_ |= 0x00000004; onChanged(); return writeSessionMeta_; } public int getWriteSessionMetaCount() { return internalGetWriteSessionMeta().getMap().size(); } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public boolean containsWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWriteSessionMeta().getMap().containsKey(key); } /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWriteSessionMeta() { return getWriteSessionMetaMap(); } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.util.Map getWriteSessionMetaMap() { return internalGetWriteSessionMeta().getMap(); } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.lang.String getWriteSessionMetaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearWriteSessionMeta() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableWriteSessionMeta().getMutableMap() .clear(); return this; } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ public Builder removeWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableWriteSessionMeta().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWriteSessionMeta() { bitField0_ |= 0x00000004; return internalGetMutableWriteSessionMeta().getMutableMap(); } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ public Builder putWriteSessionMeta( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableWriteSessionMeta().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
         * User metadata attached to this write session.
         * Reader will get this session meta data with each message read.
         * 
* * map<string, string> write_session_meta = 3; */ public Builder putAllWriteSessionMeta( java.util.Map values) { internalGetMutableWriteSessionMeta().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ @java.lang.Override public boolean hasMessageGroupId() { return partitioningCase_ == 4; } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The messageGroupId. */ @java.lang.Override public java.lang.String getMessageGroupId() { java.lang.Object ref = ""; if (partitioningCase_ == 4) { ref = partitioning_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (partitioningCase_ == 4) { partitioning_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = ""; if (partitioningCase_ == 4) { ref = partitioning_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (partitioningCase_ == 4) { partitioning_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @param value The messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } partitioningCase_ = 4; partitioning_ = value; onChanged(); return this; } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @return This builder for chaining. */ public Builder clearMessageGroupId() { if (partitioningCase_ == 4) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } return this; } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 4 [(.Ydb.length) = { ... } * @param value The bytes for messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partitioningCase_ = 4; partitioning_ = value; onChanged(); return this; } /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 5; * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitioningCase_ == 5; } /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 5; * @return The partitionId. */ public long getPartitionId() { if (partitioningCase_ == 5) { return (java.lang.Long) partitioning_; } return 0L; } /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 5; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitioningCase_ = 5; partitioning_ = value; onChanged(); return this; } /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 5; * @return This builder for chaining. */ public Builder clearPartitionId() { if (partitioningCase_ == 5) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder> partitionWithGenerationBuilder_; /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return Whether the partitionWithGeneration field is set. */ @java.lang.Override public boolean hasPartitionWithGeneration() { return partitioningCase_ == 7; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; * @return The partitionWithGeneration. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration() { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } else { if (partitioningCase_ == 7) { return partitionWithGenerationBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ public Builder setPartitionWithGeneration(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration value) { if (partitionWithGenerationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitioning_ = value; onChanged(); } else { partitionWithGenerationBuilder_.setMessage(value); } partitioningCase_ = 7; return this; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ public Builder setPartitionWithGeneration( tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder builderForValue) { if (partitionWithGenerationBuilder_ == null) { partitioning_ = builderForValue.build(); onChanged(); } else { partitionWithGenerationBuilder_.setMessage(builderForValue.build()); } partitioningCase_ = 7; return this; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ public Builder mergePartitionWithGeneration(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration value) { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 7 && partitioning_ != tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance()) { partitioning_ = tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.newBuilder((tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_) .mergeFrom(value).buildPartial(); } else { partitioning_ = value; } onChanged(); } else { if (partitioningCase_ == 7) { partitionWithGenerationBuilder_.mergeFrom(value); } else { partitionWithGenerationBuilder_.setMessage(value); } } partitioningCase_ = 7; return this; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ public Builder clearPartitionWithGeneration() { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 7) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } } else { if (partitioningCase_ == 7) { partitioningCase_ = 0; partitioning_ = null; } partitionWithGenerationBuilder_.clear(); } return this; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder getPartitionWithGenerationBuilder() { return getPartitionWithGenerationFieldBuilder().getBuilder(); } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder() { if ((partitioningCase_ == 7) && (partitionWithGenerationBuilder_ != null)) { return partitionWithGenerationBuilder_.getMessageOrBuilder(); } else { if (partitioningCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder> getPartitionWithGenerationFieldBuilder() { if (partitionWithGenerationBuilder_ == null) { if (!(partitioningCase_ == 7)) { partitioning_ = tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } partitionWithGenerationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder>( (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_, getParentForChildren(), isClean()); partitioning_ = null; } partitioningCase_ = 7; onChanged(); return partitionWithGenerationBuilder_; } private boolean getLastSeqNo_ ; /** *
         * Explicitly request for last sequential number
         * It may be expensive, if producer wrote to many partitions before.
         * 
* * bool get_last_seq_no = 6; * @return The getLastSeqNo. */ @java.lang.Override public boolean getGetLastSeqNo() { return getLastSeqNo_; } /** *
         * Explicitly request for last sequential number
         * It may be expensive, if producer wrote to many partitions before.
         * 
* * bool get_last_seq_no = 6; * @param value The getLastSeqNo to set. * @return This builder for chaining. */ public Builder setGetLastSeqNo(boolean value) { getLastSeqNo_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
         * Explicitly request for last sequential number
         * It may be expensive, if producer wrote to many partitions before.
         * 
* * bool get_last_seq_no = 6; * @return This builder for chaining. */ public Builder clearGetLastSeqNo() { bitField0_ = (bitField0_ & ~0x00000040); getLastSeqNo_ = 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.Topic.StreamWriteMessage.InitRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.InitRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.InitResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Last persisted message's sequence number for this producer.
       * Zero for new producer.
       * 
* * int64 last_seq_no = 1; * @return The lastSeqNo. */ long getLastSeqNo(); /** *
       * Unique identifier of write session. Used for debug purposes.
       * 
* * string session_id = 2; * @return The sessionId. */ java.lang.String getSessionId(); /** *
       * Unique identifier of write session. Used for debug purposes.
       * 
* * string session_id = 2; * @return The bytes for sessionId. */ com.google.protobuf.ByteString getSessionIdBytes(); /** *
       * Identifier of partition that is matched for this write session.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ long getPartitionId(); /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return Whether the supportedCodecs field is set. */ boolean hasSupportedCodecs(); /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return The supportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs(); /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder(); } /** *
     * Response to the handshake.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.InitResponse} */ public static final class InitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.InitResponse) InitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use InitResponse.newBuilder() to construct. private InitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitResponse() { sessionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InitResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder.class); } private int bitField0_; public static final int LAST_SEQ_NO_FIELD_NUMBER = 1; private long lastSeqNo_ = 0L; /** *
       * Last persisted message's sequence number for this producer.
       * Zero for new producer.
       * 
* * int64 last_seq_no = 1; * @return The lastSeqNo. */ @java.lang.Override public long getLastSeqNo() { return lastSeqNo_; } public static final int SESSION_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** *
       * Unique identifier of write session. Used for debug purposes.
       * 
* * string session_id = 2; * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; 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(); sessionId_ = s; return s; } } /** *
       * Unique identifier of write session. Used for debug purposes.
       * 
* * string session_id = 2; * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; /** *
       * Identifier of partition that is matched for this write session.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int SUPPORTED_CODECS_FIELD_NUMBER = 4; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return Whether the supportedCodecs field is set. */ @java.lang.Override public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return The supportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } /** *
       * Client can only use compression codecs from this set to write messages to topic.
       * Otherwise session will be closed with BAD_REQUEST.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } 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 (lastSeqNo_ != 0L) { output.writeInt64(1, lastSeqNo_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSupportedCodecs()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (lastSeqNo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, lastSeqNo_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSupportedCodecs()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) obj; if (getLastSeqNo() != other.getLastSeqNo()) return false; if (!getSessionId() .equals(other.getSessionId())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (hasSupportedCodecs() != other.hasSupportedCodecs()) return false; if (hasSupportedCodecs()) { if (!getSupportedCodecs() .equals(other.getSupportedCodecs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LAST_SEQ_NO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastSeqNo()); hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); if (hasSupportedCodecs()) { hash = (37 * hash) + SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSupportedCodecs().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse 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; } /** *
       * Response to the handshake.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.InitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.InitResponse) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSupportedCodecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; lastSeqNo_ = 0L; sessionId_ = ""; partitionId_ = 0L; supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lastSeqNo_ = lastSeqNo_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sessionId_ = sessionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.supportedCodecs_ = supportedCodecsBuilder_ == null ? supportedCodecs_ : supportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse.getDefaultInstance()) return this; if (other.getLastSeqNo() != 0L) { setLastSeqNo(other.getLastSeqNo()); } if (!other.getSessionId().isEmpty()) { sessionId_ = other.sessionId_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.hasSupportedCodecs()) { mergeSupportedCodecs(other.getSupportedCodecs()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { lastSeqNo_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { sessionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long lastSeqNo_ ; /** *
         * Last persisted message's sequence number for this producer.
         * Zero for new producer.
         * 
* * int64 last_seq_no = 1; * @return The lastSeqNo. */ @java.lang.Override public long getLastSeqNo() { return lastSeqNo_; } /** *
         * Last persisted message's sequence number for this producer.
         * Zero for new producer.
         * 
* * int64 last_seq_no = 1; * @param value The lastSeqNo to set. * @return This builder for chaining. */ public Builder setLastSeqNo(long value) { lastSeqNo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Last persisted message's sequence number for this producer.
         * Zero for new producer.
         * 
* * int64 last_seq_no = 1; * @return This builder for chaining. */ public Builder clearLastSeqNo() { bitField0_ = (bitField0_ & ~0x00000001); lastSeqNo_ = 0L; onChanged(); return this; } private java.lang.Object sessionId_ = ""; /** *
         * Unique identifier of write session. Used for debug purposes.
         * 
* * string session_id = 2; * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Unique identifier of write session. Used for debug purposes.
         * 
* * string session_id = 2; * @return The bytes for sessionId. */ public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Unique identifier of write session. Used for debug purposes.
         * 
* * string session_id = 2; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Unique identifier of write session. Used for debug purposes.
         * 
* * string session_id = 2; * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * Unique identifier of write session. Used for debug purposes.
         * 
* * string session_id = 2; * @param value The bytes for sessionId to set. * @return This builder for chaining. */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long partitionId_ ; /** *
         * Identifier of partition that is matched for this write session.
         * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
         * Identifier of partition that is matched for this write session.
         * 
* * int64 partition_id = 3; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Identifier of partition that is matched for this write session.
         * 
* * int64 partition_id = 3; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000004); partitionId_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> supportedCodecsBuilder_; /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return Whether the supportedCodecs field is set. */ public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; * @return The supportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { if (supportedCodecsBuilder_ == null) { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } else { return supportedCodecsBuilder_.getMessage(); } } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public Builder setSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportedCodecs_ = value; } else { supportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public Builder setSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (supportedCodecsBuilder_ == null) { supportedCodecs_ = builderForValue.build(); } else { supportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public Builder mergeSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && supportedCodecs_ != null && supportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSupportedCodecsBuilder().mergeFrom(value); } else { supportedCodecs_ = value; } } else { supportedCodecsBuilder_.mergeFrom(value); } if (supportedCodecs_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public Builder clearSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000008); supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSupportedCodecsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSupportedCodecsFieldBuilder().getBuilder(); } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { if (supportedCodecsBuilder_ != null) { return supportedCodecsBuilder_.getMessageOrBuilder(); } else { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } } /** *
         * Client can only use compression codecs from this set to write messages to topic.
         * Otherwise session will be closed with BAD_REQUEST.
         * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSupportedCodecsFieldBuilder() { if (supportedCodecsBuilder_ == null) { supportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSupportedCodecs(), getParentForChildren(), isClean()); supportedCodecs_ = null; } return supportedCodecsBuilder_; } @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.Topic.StreamWriteMessage.InitResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.InitResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.InitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WriteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteRequest) com.google.protobuf.MessageOrBuilder { /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ java.util.List getMessagesList(); /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getMessages(int index); /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ int getMessagesCount(); /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ java.util.List getMessagesOrBuilderList(); /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder getMessagesOrBuilder( int index); /** *
       * Codec that is used for data compression.
       * See enum Codec above for values.
       * 
* * int32 codec = 2; * @return The codec. */ int getCodec(); /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return Whether the tx field is set. */ boolean hasTx(); /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return The tx. */ tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx(); /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder(); } /** *
     * Represents portion of client messages.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteRequest} */ public static final class WriteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteRequest) WriteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use WriteRequest.newBuilder() to construct. private WriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteRequest() { messages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder.class); } public interface MessageDataOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData) com.google.protobuf.MessageOrBuilder { /** *
         * Message sequence number, provided by client for deduplication.
         * Starts at 1
         * 
* * int64 seq_no = 1; * @return The seqNo. */ long getSeqNo(); /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
         * Compressed client message body.
         * 
* * bytes data = 3; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
         * Uncompressed size of client message body.
         * 
* * int64 uncompressed_size = 4; * @return The uncompressedSize. */ long getUncompressedSize(); /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ boolean hasMessageGroupId(); /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The messageGroupId. */ java.lang.String getMessageGroupId(); /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ com.google.protobuf.ByteString getMessageGroupIdBytes(); /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 6; * @return Whether the partitionId field is set. */ boolean hasPartitionId(); /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 6; * @return The partitionId. */ long getPartitionId(); /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return Whether the partitionWithGeneration field is set. */ boolean hasPartitionWithGeneration(); /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return The partitionWithGeneration. */ tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration(); /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder(); /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ java.util.List getMetadataItemsList(); /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index); /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ int getMetadataItemsCount(); /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ java.util.List getMetadataItemsOrBuilderList(); /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index); tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.PartitioningCase getPartitioningCase(); } /** * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData} */ public static final class MessageData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData) MessageDataOrBuilder { private static final long serialVersionUID = 0L; // Use MessageData.newBuilder() to construct. private MessageData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageData() { data_ = com.google.protobuf.ByteString.EMPTY; metadataItems_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MessageData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder.class); } private int bitField0_; private int partitioningCase_ = 0; @SuppressWarnings("serial") private java.lang.Object partitioning_; public enum PartitioningCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MESSAGE_GROUP_ID(5), PARTITION_ID(6), PARTITION_WITH_GENERATION(8), PARTITIONING_NOT_SET(0); private final int value; private PartitioningCase(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 PartitioningCase valueOf(int value) { return forNumber(value); } public static PartitioningCase forNumber(int value) { switch (value) { case 5: return MESSAGE_GROUP_ID; case 6: return PARTITION_ID; case 8: return PARTITION_WITH_GENERATION; case 0: return PARTITIONING_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PartitioningCase getPartitioningCase() { return PartitioningCase.forNumber( partitioningCase_); } public static final int SEQ_NO_FIELD_NUMBER = 1; private long seqNo_ = 0L; /** *
         * Message sequence number, provided by client for deduplication.
         * Starts at 1
         * 
* * int64 seq_no = 1; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } public static final int CREATED_AT_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createdAt_; /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
         * Creation timestamp
         * 
* * .google.protobuf.Timestamp created_at = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
         * Compressed client message body.
         * 
* * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int UNCOMPRESSED_SIZE_FIELD_NUMBER = 4; private long uncompressedSize_ = 0L; /** *
         * Uncompressed size of client message body.
         * 
* * int64 uncompressed_size = 4; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } public static final int MESSAGE_GROUP_ID_FIELD_NUMBER = 5; /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ public boolean hasMessageGroupId() { return partitioningCase_ == 5; } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The messageGroupId. */ public java.lang.String getMessageGroupId() { java.lang.Object ref = ""; if (partitioningCase_ == 5) { ref = partitioning_; } 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 (partitioningCase_ == 5) { partitioning_ = s; } return s; } } /** *
         * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
         * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = ""; if (partitioningCase_ == 5) { ref = partitioning_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (partitioningCase_ == 5) { partitioning_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 6; /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 6; * @return Whether the partitionId field is set. */ @java.lang.Override public boolean hasPartitionId() { return partitioningCase_ == 6; } /** *
         * Explicit partition id to write to.
         * 
* * int64 partition_id = 6; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { if (partitioningCase_ == 6) { return (java.lang.Long) partitioning_; } return 0L; } public static final int PARTITION_WITH_GENERATION_FIELD_NUMBER = 8; /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return Whether the partitionWithGeneration field is set. */ @java.lang.Override public boolean hasPartitionWithGeneration() { return partitioningCase_ == 8; } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return The partitionWithGeneration. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration() { if (partitioningCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } /** *
         * Explicit partition location to write to.
         * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder() { if (partitioningCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } public static final int METADATA_ITEMS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List metadataItems_; /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getMetadataItemsList() { return metadataItems_; } /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getMetadataItemsOrBuilderList() { return metadataItems_; } /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ @java.lang.Override public int getMetadataItemsCount() { return metadataItems_.size(); } /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index) { return metadataItems_.get(index); } /** *
         * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
         * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index) { return metadataItems_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (seqNo_ != 0L) { output.writeInt64(1, seqNo_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCreatedAt()); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } if (uncompressedSize_ != 0L) { output.writeInt64(4, uncompressedSize_); } if (partitioningCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, partitioning_); } if (partitioningCase_ == 6) { output.writeInt64( 6, (long)((java.lang.Long) partitioning_)); } for (int i = 0; i < metadataItems_.size(); i++) { output.writeMessage(7, metadataItems_.get(i)); } if (partitioningCase_ == 8) { output.writeMessage(8, (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (seqNo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, seqNo_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCreatedAt()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } if (uncompressedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, uncompressedSize_); } if (partitioningCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, partitioning_); } if (partitioningCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 6, (long)((java.lang.Long) partitioning_)); } for (int i = 0; i < metadataItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, metadataItems_.get(i)); } if (partitioningCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData) obj; if (getSeqNo() != other.getSeqNo()) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getData() .equals(other.getData())) return false; if (getUncompressedSize() != other.getUncompressedSize()) return false; if (!getMetadataItemsList() .equals(other.getMetadataItemsList())) return false; if (!getPartitioningCase().equals(other.getPartitioningCase())) return false; switch (partitioningCase_) { case 5: if (!getMessageGroupId() .equals(other.getMessageGroupId())) return false; break; case 6: if (getPartitionId() != other.getPartitionId()) return false; break; case 8: if (!getPartitionWithGeneration() .equals(other.getPartitionWithGeneration())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SEQ_NO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqNo()); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + UNCOMPRESSED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUncompressedSize()); if (getMetadataItemsCount() > 0) { hash = (37 * hash) + METADATA_ITEMS_FIELD_NUMBER; hash = (53 * hash) + getMetadataItemsList().hashCode(); } switch (partitioningCase_) { case 5: hash = (37 * hash) + MESSAGE_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getMessageGroupId().hashCode(); break; case 6: hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); break; case 8: hash = (37 * hash) + PARTITION_WITH_GENERATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionWithGeneration().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData 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.Topic.StreamWriteMessage.WriteRequest.MessageData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCreatedAtFieldBuilder(); getMetadataItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; seqNo_ = 0L; createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; uncompressedSize_ = 0L; if (partitionWithGenerationBuilder_ != null) { partitionWithGenerationBuilder_.clear(); } if (metadataItemsBuilder_ == null) { metadataItems_ = java.util.Collections.emptyList(); } else { metadataItems_ = null; metadataItemsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); partitioningCase_ = 0; partitioning_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData result) { if (metadataItemsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { metadataItems_ = java.util.Collections.unmodifiableList(metadataItems_); bitField0_ = (bitField0_ & ~0x00000080); } result.metadataItems_ = metadataItems_; } else { result.metadataItems_ = metadataItemsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.seqNo_ = seqNo_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.uncompressedSize_ = uncompressedSize_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData result) { result.partitioningCase_ = partitioningCase_; result.partitioning_ = this.partitioning_; if (partitioningCase_ == 8 && partitionWithGenerationBuilder_ != null) { result.partitioning_ = partitionWithGenerationBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.getDefaultInstance()) return this; if (other.getSeqNo() != 0L) { setSeqNo(other.getSeqNo()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getUncompressedSize() != 0L) { setUncompressedSize(other.getUncompressedSize()); } if (metadataItemsBuilder_ == null) { if (!other.metadataItems_.isEmpty()) { if (metadataItems_.isEmpty()) { metadataItems_ = other.metadataItems_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureMetadataItemsIsMutable(); metadataItems_.addAll(other.metadataItems_); } onChanged(); } } else { if (!other.metadataItems_.isEmpty()) { if (metadataItemsBuilder_.isEmpty()) { metadataItemsBuilder_.dispose(); metadataItemsBuilder_ = null; metadataItems_ = other.metadataItems_; bitField0_ = (bitField0_ & ~0x00000080); metadataItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetadataItemsFieldBuilder() : null; } else { metadataItemsBuilder_.addAllMessages(other.metadataItems_); } } } switch (other.getPartitioningCase()) { case MESSAGE_GROUP_ID: { partitioningCase_ = 5; partitioning_ = other.partitioning_; onChanged(); break; } case PARTITION_ID: { setPartitionId(other.getPartitionId()); break; } case PARTITION_WITH_GENERATION: { mergePartitionWithGeneration(other.getPartitionWithGeneration()); break; } case PARTITIONING_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { seqNo_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getCreatedAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { data_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { uncompressedSize_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { java.lang.String s = input.readStringRequireUtf8(); partitioningCase_ = 5; partitioning_ = s; break; } // case 42 case 48: { partitioning_ = input.readInt64(); partitioningCase_ = 6; break; } // case 48 case 58: { tech.ydb.proto.topic.YdbTopic.MetadataItem m = input.readMessage( tech.ydb.proto.topic.YdbTopic.MetadataItem.parser(), extensionRegistry); if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(m); } else { metadataItemsBuilder_.addMessage(m); } break; } // case 58 case 66: { input.readMessage( getPartitionWithGenerationFieldBuilder().getBuilder(), extensionRegistry); partitioningCase_ = 8; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int partitioningCase_ = 0; private java.lang.Object partitioning_; public PartitioningCase getPartitioningCase() { return PartitioningCase.forNumber( partitioningCase_); } public Builder clearPartitioning() { partitioningCase_ = 0; partitioning_ = null; onChanged(); return this; } private int bitField0_; private long seqNo_ ; /** *
           * Message sequence number, provided by client for deduplication.
           * Starts at 1
           * 
* * int64 seq_no = 1; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } /** *
           * Message sequence number, provided by client for deduplication.
           * Starts at 1
           * 
* * int64 seq_no = 1; * @param value The seqNo to set. * @return This builder for chaining. */ public Builder setSeqNo(long value) { seqNo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Message sequence number, provided by client for deduplication.
           * Starts at 1
           * 
* * int64 seq_no = 1; * @return This builder for chaining. */ public Builder clearSeqNo() { bitField0_ = (bitField0_ & ~0x00000001); seqNo_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return ((bitField0_ & 0x00000002) != 0); } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; } else { createdAtBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && createdAt_ != null && createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreatedAtBuilder().mergeFrom(value); } else { createdAt_ = value; } } else { createdAtBuilder_.mergeFrom(value); } if (createdAt_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public Builder clearCreatedAt() { bitField0_ = (bitField0_ & ~0x00000002); createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } onChanged(); return this; } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
           * Creation timestamp
           * 
* * .google.protobuf.Timestamp created_at = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
           * Compressed client message body.
           * 
* * bytes data = 3; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
           * Compressed client message body.
           * 
* * bytes data = 3; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Compressed client message body.
           * 
* * bytes data = 3; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); data_ = getDefaultInstance().getData(); onChanged(); return this; } private long uncompressedSize_ ; /** *
           * Uncompressed size of client message body.
           * 
* * int64 uncompressed_size = 4; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } /** *
           * Uncompressed size of client message body.
           * 
* * int64 uncompressed_size = 4; * @param value The uncompressedSize to set. * @return This builder for chaining. */ public Builder setUncompressedSize(long value) { uncompressedSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Uncompressed size of client message body.
           * 
* * int64 uncompressed_size = 4; * @return This builder for chaining. */ public Builder clearUncompressedSize() { bitField0_ = (bitField0_ & ~0x00000008); uncompressedSize_ = 0L; onChanged(); return this; } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return Whether the messageGroupId field is set. */ @java.lang.Override public boolean hasMessageGroupId() { return partitioningCase_ == 5; } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The messageGroupId. */ @java.lang.Override public java.lang.String getMessageGroupId() { java.lang.Object ref = ""; if (partitioningCase_ == 5) { ref = partitioning_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (partitioningCase_ == 5) { partitioning_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = ""; if (partitioningCase_ == 5) { ref = partitioning_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (partitioningCase_ == 5) { partitioning_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @param value The messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } partitioningCase_ = 5; partitioning_ = value; onChanged(); return this; } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @return This builder for chaining. */ public Builder clearMessageGroupId() { if (partitioningCase_ == 5) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } return this; } /** *
           * All messages with given pair (producer_id, message_group_id) go to single partition in order of writes.
           * 
* * string message_group_id = 5 [(.Ydb.length) = { ... } * @param value The bytes for messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partitioningCase_ = 5; partitioning_ = value; onChanged(); return this; } /** *
           * Explicit partition id to write to.
           * 
* * int64 partition_id = 6; * @return Whether the partitionId field is set. */ public boolean hasPartitionId() { return partitioningCase_ == 6; } /** *
           * Explicit partition id to write to.
           * 
* * int64 partition_id = 6; * @return The partitionId. */ public long getPartitionId() { if (partitioningCase_ == 6) { return (java.lang.Long) partitioning_; } return 0L; } /** *
           * Explicit partition id to write to.
           * 
* * int64 partition_id = 6; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitioningCase_ = 6; partitioning_ = value; onChanged(); return this; } /** *
           * Explicit partition id to write to.
           * 
* * int64 partition_id = 6; * @return This builder for chaining. */ public Builder clearPartitionId() { if (partitioningCase_ == 6) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder> partitionWithGenerationBuilder_; /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return Whether the partitionWithGeneration field is set. */ @java.lang.Override public boolean hasPartitionWithGeneration() { return partitioningCase_ == 8; } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; * @return The partitionWithGeneration. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration getPartitionWithGeneration() { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } else { if (partitioningCase_ == 8) { return partitionWithGenerationBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ public Builder setPartitionWithGeneration(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration value) { if (partitionWithGenerationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitioning_ = value; onChanged(); } else { partitionWithGenerationBuilder_.setMessage(value); } partitioningCase_ = 8; return this; } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ public Builder setPartitionWithGeneration( tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder builderForValue) { if (partitionWithGenerationBuilder_ == null) { partitioning_ = builderForValue.build(); onChanged(); } else { partitionWithGenerationBuilder_.setMessage(builderForValue.build()); } partitioningCase_ = 8; return this; } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ public Builder mergePartitionWithGeneration(tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration value) { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 8 && partitioning_ != tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance()) { partitioning_ = tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.newBuilder((tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_) .mergeFrom(value).buildPartial(); } else { partitioning_ = value; } onChanged(); } else { if (partitioningCase_ == 8) { partitionWithGenerationBuilder_.mergeFrom(value); } else { partitionWithGenerationBuilder_.setMessage(value); } } partitioningCase_ = 8; return this; } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ public Builder clearPartitionWithGeneration() { if (partitionWithGenerationBuilder_ == null) { if (partitioningCase_ == 8) { partitioningCase_ = 0; partitioning_ = null; onChanged(); } } else { if (partitioningCase_ == 8) { partitioningCase_ = 0; partitioning_ = null; } partitionWithGenerationBuilder_.clear(); } return this; } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ public tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder getPartitionWithGenerationBuilder() { return getPartitionWithGenerationFieldBuilder().getBuilder(); } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder getPartitionWithGenerationOrBuilder() { if ((partitioningCase_ == 8) && (partitionWithGenerationBuilder_ != null)) { return partitionWithGenerationBuilder_.getMessageOrBuilder(); } else { if (partitioningCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_; } return tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } } /** *
           * Explicit partition location to write to.
           * 
* * .Ydb.Topic.PartitionWithGeneration partition_with_generation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder> getPartitionWithGenerationFieldBuilder() { if (partitionWithGenerationBuilder_ == null) { if (!(partitioningCase_ == 8)) { partitioning_ = tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.getDefaultInstance(); } partitionWithGenerationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration, tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration.Builder, tech.ydb.proto.topic.YdbTopic.PartitionWithGenerationOrBuilder>( (tech.ydb.proto.topic.YdbTopic.PartitionWithGeneration) partitioning_, getParentForChildren(), isClean()); partitioning_ = null; } partitioningCase_ = 8; onChanged(); return partitionWithGenerationBuilder_; } private java.util.List metadataItems_ = java.util.Collections.emptyList(); private void ensureMetadataItemsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { metadataItems_ = new java.util.ArrayList(metadataItems_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder> metadataItemsBuilder_; /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public java.util.List getMetadataItemsList() { if (metadataItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(metadataItems_); } else { return metadataItemsBuilder_.getMessageList(); } } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public int getMetadataItemsCount() { if (metadataItemsBuilder_ == null) { return metadataItems_.size(); } else { return metadataItemsBuilder_.getCount(); } } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index) { if (metadataItemsBuilder_ == null) { return metadataItems_.get(index); } else { return metadataItemsBuilder_.getMessage(index); } } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder setMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.set(index, value); onChanged(); } else { metadataItemsBuilder_.setMessage(index, value); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder setMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.set(index, builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder addMetadataItems(tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.add(value); onChanged(); } else { metadataItemsBuilder_.addMessage(value); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder addMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.add(index, value); onChanged(); } else { metadataItemsBuilder_.addMessage(index, value); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder addMetadataItems( tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder addMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(index, builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder addAllMetadataItems( java.lang.Iterable values) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metadataItems_); onChanged(); } else { metadataItemsBuilder_.addAllMessages(values); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder clearMetadataItems() { if (metadataItemsBuilder_ == null) { metadataItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { metadataItemsBuilder_.clear(); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public Builder removeMetadataItems(int index) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.remove(index); onChanged(); } else { metadataItemsBuilder_.remove(index); } return this; } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder getMetadataItemsBuilder( int index) { return getMetadataItemsFieldBuilder().getBuilder(index); } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index) { if (metadataItemsBuilder_ == null) { return metadataItems_.get(index); } else { return metadataItemsBuilder_.getMessageOrBuilder(index); } } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public java.util.List getMetadataItemsOrBuilderList() { if (metadataItemsBuilder_ != null) { return metadataItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metadataItems_); } } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder addMetadataItemsBuilder() { return getMetadataItemsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance()); } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder addMetadataItemsBuilder( int index) { return getMetadataItemsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance()); } /** *
           * Message metadata. Overall size is limited to 4096 symbols (all keys and values combined).
           * 
* * repeated .Ydb.Topic.MetadataItem metadata_items = 7 [(.Ydb.size) = { ... } */ public java.util.List getMetadataItemsBuilderList() { return getMetadataItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder> getMetadataItemsFieldBuilder() { if (metadataItemsBuilder_ == null) { metadataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder>( metadataItems_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); metadataItems_ = null; } return metadataItemsBuilder_; } @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.Topic.StreamWriteMessage.WriteRequest.MessageData) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MessageData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int MESSAGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List messages_; /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ @java.lang.Override public java.util.List getMessagesList() { return messages_; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ @java.lang.Override public java.util.List getMessagesOrBuilderList() { return messages_; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ @java.lang.Override public int getMessagesCount() { return messages_.size(); } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getMessages(int index) { return messages_.get(index); } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder getMessagesOrBuilder( int index) { return messages_.get(index); } public static final int CODEC_FIELD_NUMBER = 2; private int codec_ = 0; /** *
       * Codec that is used for data compression.
       * See enum Codec above for values.
       * 
* * int32 codec = 2; * @return The codec. */ @java.lang.Override public int getCodec() { return codec_; } public static final int TX_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.TransactionIdentity tx_; /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return Whether the tx field is set. */ @java.lang.Override public boolean hasTx() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return The tx. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx() { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder() { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } 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 < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } if (codec_ != 0) { output.writeInt32(2, codec_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getTx()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, messages_.get(i)); } if (codec_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, codec_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTx()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) obj; if (!getMessagesList() .equals(other.getMessagesList())) return false; if (getCodec() != other.getCodec()) return false; if (hasTx() != other.hasTx()) return false; if (hasTx()) { if (!getTx() .equals(other.getTx())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMessagesCount() > 0) { hash = (37 * hash) + MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMessagesList().hashCode(); } hash = (37 * hash) + CODEC_FIELD_NUMBER; hash = (53 * hash) + getCodec(); if (hasTx()) { hash = (37 * hash) + TX_FIELD_NUMBER; hash = (53 * hash) + getTx().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest 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; } /** *
       * Represents portion of client messages.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteRequest) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMessagesFieldBuilder(); getTxFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { messages_ = null; messagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); codec_ = 0; tx_ = null; if (txBuilder_ != null) { txBuilder_.dispose(); txBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.codec_ = codec_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.tx_ = txBuilder_ == null ? tx_ : txBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.getDefaultInstance()) return this; if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } onChanged(); } } else { if (!other.messages_.isEmpty()) { if (messagesBuilder_.isEmpty()) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } } } if (other.getCodec() != 0) { setCodec(other.getCodec()); } if (other.hasTx()) { mergeTx(other.getTx()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.parser(), extensionRegistry); if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(m); } else { messagesBuilder_.addMessage(m); } break; } // case 10 case 16: { codec_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getTxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder> messagesBuilder_; /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { return java.util.Collections.unmodifiableList(messages_); } else { return messagesBuilder_.getMessageList(); } } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public int getMessagesCount() { if (messagesBuilder_ == null) { return messages_.size(); } else { return messagesBuilder_.getCount(); } } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData getMessages(int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessage(index); } } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder setMessages( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.set(index, value); onChanged(); } else { messagesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder setMessages( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.set(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder addMessages(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(value); onChanged(); } else { messagesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder addMessages( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessagesIsMutable(); messages_.add(index, value); onChanged(); } else { messagesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder addMessages( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder addMessages( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(index, builderForValue.build()); onChanged(); } else { messagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messagesBuilder_.clear(); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.remove(index); onChanged(); } else { messagesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder getMessagesBuilder( int index) { return getMessagesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public java.util.List getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messages_); } } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder addMessagesBuilder() { return getMessagesFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.getDefaultInstance()); } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder addMessagesBuilder( int index) { return getMessagesFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.getDefaultInstance()); } /** * repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1; */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest.MessageDataOrBuilder>( messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } private int codec_ ; /** *
         * Codec that is used for data compression.
         * See enum Codec above for values.
         * 
* * int32 codec = 2; * @return The codec. */ @java.lang.Override public int getCodec() { return codec_; } /** *
         * Codec that is used for data compression.
         * See enum Codec above for values.
         * 
* * int32 codec = 2; * @param value The codec to set. * @return This builder for chaining. */ public Builder setCodec(int value) { codec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Codec that is used for data compression.
         * See enum Codec above for values.
         * 
* * int32 codec = 2; * @return This builder for chaining. */ public Builder clearCodec() { bitField0_ = (bitField0_ & ~0x00000002); codec_ = 0; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.TransactionIdentity tx_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder> txBuilder_; /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return Whether the tx field is set. */ public boolean hasTx() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; * @return The tx. */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx() { if (txBuilder_ == null) { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } else { return txBuilder_.getMessage(); } } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public Builder setTx(tech.ydb.proto.topic.YdbTopic.TransactionIdentity value) { if (txBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tx_ = value; } else { txBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public Builder setTx( tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder builderForValue) { if (txBuilder_ == null) { tx_ = builderForValue.build(); } else { txBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public Builder mergeTx(tech.ydb.proto.topic.YdbTopic.TransactionIdentity value) { if (txBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && tx_ != null && tx_ != tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance()) { getTxBuilder().mergeFrom(value); } else { tx_ = value; } } else { txBuilder_.mergeFrom(value); } if (tx_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public Builder clearTx() { bitField0_ = (bitField0_ & ~0x00000004); tx_ = null; if (txBuilder_ != null) { txBuilder_.dispose(); txBuilder_ = null; } onChanged(); return this; } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder getTxBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTxFieldBuilder().getBuilder(); } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder() { if (txBuilder_ != null) { return txBuilder_.getMessageOrBuilder(); } else { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } } /** * optional .Ydb.Topic.TransactionIdentity tx = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder> getTxFieldBuilder() { if (txBuilder_ == null) { txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder>( getTx(), getParentForChildren(), isClean()); tx_ = null; } return txBuilder_; } @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.Topic.StreamWriteMessage.WriteRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WriteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ java.util.List getAcksList(); /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getAcks(int index); /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ int getAcksCount(); /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ java.util.List getAcksOrBuilderList(); /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder getAcksOrBuilder( int index); /** *
       * Assigned partition for all client messages inside this batch.
       * This actual partition may differ from that returned in InitResponse
       * or other WriteResponses in this write session.
       * 
* * int64 partition_id = 2; * @return The partitionId. */ long getPartitionId(); /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return Whether the writeStatistics field is set. */ boolean hasWriteStatistics(); /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return The writeStatistics. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getWriteStatistics(); /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder getWriteStatisticsOrBuilder(); } /** *
     * Message that represents acknowledgment for sequence of client messages.
     * This sequence is persisted together so write statistics is for messages batch.
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse} */ public static final class WriteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteResponse) WriteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use WriteResponse.newBuilder() to construct. private WriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteResponse() { acks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder.class); } public interface WriteAckOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck) com.google.protobuf.MessageOrBuilder { /** *
         * Sequence number as in WriteRequest.
         * 
* * int64 seq_no = 1; * @return The seqNo. */ long getSeqNo(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return Whether the written field is set. */ boolean hasWritten(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return The written. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getWritten(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder getWrittenOrBuilder(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return Whether the skipped field is set. */ boolean hasSkipped(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return The skipped. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getSkipped(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder getSkippedOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.MessageWriteStatusCase getMessageWriteStatusCase(); } /** *
       * Acknowledgment for one persistently written message.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck} */ public static final class WriteAck extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck) WriteAckOrBuilder { private static final long serialVersionUID = 0L; // Use WriteAck.newBuilder() to construct. private WriteAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteAck() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteAck(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder.class); } public interface WrittenOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written) com.google.protobuf.MessageOrBuilder { /** *
           * Assigned partition offset.
           * 
* * int64 offset = 1; * @return The offset. */ long getOffset(); } /** * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written} */ public static final class Written extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written) WrittenOrBuilder { private static final long serialVersionUID = 0L; // Use Written.newBuilder() to construct. private Written(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Written() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Written(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** *
           * Assigned partition offset.
           * 
* * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } 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 (offset_ != 0L) { output.writeInt64(1, offset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) obj; if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written 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.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; offset_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.offset_ = offset_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance()) return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { offset_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long offset_ ; /** *
             * Assigned partition offset.
             * 
* * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** *
             * Assigned partition offset.
             * 
* * int64 offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
             * Assigned partition offset.
             * 
* * int64 offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000001); offset_ = 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.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Written parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SkippedOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The reason. */ tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason getReason(); } /** * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped} */ public static final class Skipped extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) SkippedOrBuilder { private static final long serialVersionUID = 0L; // Use Skipped.newBuilder() to construct. private Skipped(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Skipped() { reason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Skipped(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder.class); } /** * Protobuf enum {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason} */ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** * REASON_UNSPECIFIED = 0; */ REASON_UNSPECIFIED(0), /** * REASON_ALREADY_WRITTEN = 1; */ REASON_ALREADY_WRITTEN(1), UNRECOGNIZED(-1), ; /** * REASON_UNSPECIFIED = 0; */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** * REASON_ALREADY_WRITTEN = 1; */ public static final int REASON_ALREADY_WRITTEN_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Reason 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 Reason forNumber(int value) { switch (value) { case 0: return REASON_UNSPECIFIED; case 1: return REASON_ALREADY_WRITTEN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Reason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Reason findValueByNumber(int number) { return Reason.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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDescriptor().getEnumTypes().get(0); } private static final Reason[] VALUES = values(); public static Reason 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 Reason(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason) } public static final int REASON_FIELD_NUMBER = 1; private int reason_ = 0; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The reason. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason getReason() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason result = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.forNumber(reason_); return result == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reason_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.REASON_UNSPECIFIED.getNumber()) { output.writeEnum(1, reason_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reason_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.REASON_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) obj; if (reason_ != other.reason_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + reason_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped 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.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; reason_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.reason_ = reason_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance()) return this; if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reason_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int reason_ = 0; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The enum numeric value on the wire for reason. */ @java.lang.Override public int getReasonValue() { return reason_; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ public Builder setReasonValue(int value) { reason_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return The reason. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason getReason() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason result = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.forNumber(reason_); return result == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason.UNRECOGNIZED : result; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @param value The reason to set. * @return This builder for chaining. */ public Builder setReason(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reason_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Reason reason = 1; * @return This builder for chaining. */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000001); reason_ = 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.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Skipped parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int messageWriteStatusCase_ = 0; @SuppressWarnings("serial") private java.lang.Object messageWriteStatus_; public enum MessageWriteStatusCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { WRITTEN(2), SKIPPED(3), MESSAGEWRITESTATUS_NOT_SET(0); private final int value; private MessageWriteStatusCase(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 MessageWriteStatusCase valueOf(int value) { return forNumber(value); } public static MessageWriteStatusCase forNumber(int value) { switch (value) { case 2: return WRITTEN; case 3: return SKIPPED; case 0: return MESSAGEWRITESTATUS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MessageWriteStatusCase getMessageWriteStatusCase() { return MessageWriteStatusCase.forNumber( messageWriteStatusCase_); } public static final int SEQ_NO_FIELD_NUMBER = 1; private long seqNo_ = 0L; /** *
         * Sequence number as in WriteRequest.
         * 
* * int64 seq_no = 1; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } public static final int WRITTEN_FIELD_NUMBER = 2; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return Whether the written field is set. */ @java.lang.Override public boolean hasWritten() { return messageWriteStatusCase_ == 2; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return The written. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getWritten() { if (messageWriteStatusCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder getWrittenOrBuilder() { if (messageWriteStatusCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } public static final int SKIPPED_FIELD_NUMBER = 3; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return Whether the skipped field is set. */ @java.lang.Override public boolean hasSkipped() { return messageWriteStatusCase_ == 3; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return The skipped. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getSkipped() { if (messageWriteStatusCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder getSkippedOrBuilder() { if (messageWriteStatusCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.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 (seqNo_ != 0L) { output.writeInt64(1, seqNo_); } if (messageWriteStatusCase_ == 2) { output.writeMessage(2, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_); } if (messageWriteStatusCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (seqNo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, seqNo_); } if (messageWriteStatusCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_); } if (messageWriteStatusCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck) obj; if (getSeqNo() != other.getSeqNo()) return false; if (!getMessageWriteStatusCase().equals(other.getMessageWriteStatusCase())) return false; switch (messageWriteStatusCase_) { case 2: if (!getWritten() .equals(other.getWritten())) return false; break; case 3: if (!getSkipped() .equals(other.getSkipped())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SEQ_NO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqNo()); switch (messageWriteStatusCase_) { case 2: hash = (37 * hash) + WRITTEN_FIELD_NUMBER; hash = (53 * hash) + getWritten().hashCode(); break; case 3: hash = (37 * hash) + SKIPPED_FIELD_NUMBER; hash = (53 * hash) + getSkipped().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck 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; } /** *
         * Acknowledgment for one persistently written message.
         * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; seqNo_ = 0L; if (writtenBuilder_ != null) { writtenBuilder_.clear(); } if (skippedBuilder_ != null) { skippedBuilder_.clear(); } messageWriteStatusCase_ = 0; messageWriteStatus_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.seqNo_ = seqNo_; } } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck result) { result.messageWriteStatusCase_ = messageWriteStatusCase_; result.messageWriteStatus_ = this.messageWriteStatus_; if (messageWriteStatusCase_ == 2 && writtenBuilder_ != null) { result.messageWriteStatus_ = writtenBuilder_.build(); } if (messageWriteStatusCase_ == 3 && skippedBuilder_ != null) { result.messageWriteStatus_ = skippedBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.getDefaultInstance()) return this; if (other.getSeqNo() != 0L) { setSeqNo(other.getSeqNo()); } switch (other.getMessageWriteStatusCase()) { case WRITTEN: { mergeWritten(other.getWritten()); break; } case SKIPPED: { mergeSkipped(other.getSkipped()); break; } case MESSAGEWRITESTATUS_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { seqNo_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getWrittenFieldBuilder().getBuilder(), extensionRegistry); messageWriteStatusCase_ = 2; break; } // case 18 case 26: { input.readMessage( getSkippedFieldBuilder().getBuilder(), extensionRegistry); messageWriteStatusCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int messageWriteStatusCase_ = 0; private java.lang.Object messageWriteStatus_; public MessageWriteStatusCase getMessageWriteStatusCase() { return MessageWriteStatusCase.forNumber( messageWriteStatusCase_); } public Builder clearMessageWriteStatus() { messageWriteStatusCase_ = 0; messageWriteStatus_ = null; onChanged(); return this; } private int bitField0_; private long seqNo_ ; /** *
           * Sequence number as in WriteRequest.
           * 
* * int64 seq_no = 1; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } /** *
           * Sequence number as in WriteRequest.
           * 
* * int64 seq_no = 1; * @param value The seqNo to set. * @return This builder for chaining. */ public Builder setSeqNo(long value) { seqNo_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Sequence number as in WriteRequest.
           * 
* * int64 seq_no = 1; * @return This builder for chaining. */ public Builder clearSeqNo() { bitField0_ = (bitField0_ & ~0x00000001); seqNo_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder> writtenBuilder_; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return Whether the written field is set. */ @java.lang.Override public boolean hasWritten() { return messageWriteStatusCase_ == 2; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; * @return The written. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written getWritten() { if (writtenBuilder_ == null) { if (messageWriteStatusCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } else { if (messageWriteStatusCase_ == 2) { return writtenBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ public Builder setWritten(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written value) { if (writtenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageWriteStatus_ = value; onChanged(); } else { writtenBuilder_.setMessage(value); } messageWriteStatusCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ public Builder setWritten( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder builderForValue) { if (writtenBuilder_ == null) { messageWriteStatus_ = builderForValue.build(); onChanged(); } else { writtenBuilder_.setMessage(builderForValue.build()); } messageWriteStatusCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ public Builder mergeWritten(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written value) { if (writtenBuilder_ == null) { if (messageWriteStatusCase_ == 2 && messageWriteStatus_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance()) { messageWriteStatus_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_) .mergeFrom(value).buildPartial(); } else { messageWriteStatus_ = value; } onChanged(); } else { if (messageWriteStatusCase_ == 2) { writtenBuilder_.mergeFrom(value); } else { writtenBuilder_.setMessage(value); } } messageWriteStatusCase_ = 2; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ public Builder clearWritten() { if (writtenBuilder_ == null) { if (messageWriteStatusCase_ == 2) { messageWriteStatusCase_ = 0; messageWriteStatus_ = null; onChanged(); } } else { if (messageWriteStatusCase_ == 2) { messageWriteStatusCase_ = 0; messageWriteStatus_ = null; } writtenBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder getWrittenBuilder() { return getWrittenFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder getWrittenOrBuilder() { if ((messageWriteStatusCase_ == 2) && (writtenBuilder_ != null)) { return writtenBuilder_.getMessageOrBuilder(); } else { if (messageWriteStatusCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder> getWrittenFieldBuilder() { if (writtenBuilder_ == null) { if (!(messageWriteStatusCase_ == 2)) { messageWriteStatus_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.getDefaultInstance(); } writtenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.WrittenOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Written) messageWriteStatus_, getParentForChildren(), isClean()); messageWriteStatus_ = null; } messageWriteStatusCase_ = 2; onChanged(); return writtenBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder> skippedBuilder_; /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return Whether the skipped field is set. */ @java.lang.Override public boolean hasSkipped() { return messageWriteStatusCase_ == 3; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; * @return The skipped. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped getSkipped() { if (skippedBuilder_ == null) { if (messageWriteStatusCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } else { if (messageWriteStatusCase_ == 3) { return skippedBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ public Builder setSkipped(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped value) { if (skippedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageWriteStatus_ = value; onChanged(); } else { skippedBuilder_.setMessage(value); } messageWriteStatusCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ public Builder setSkipped( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder builderForValue) { if (skippedBuilder_ == null) { messageWriteStatus_ = builderForValue.build(); onChanged(); } else { skippedBuilder_.setMessage(builderForValue.build()); } messageWriteStatusCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ public Builder mergeSkipped(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped value) { if (skippedBuilder_ == null) { if (messageWriteStatusCase_ == 3 && messageWriteStatus_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance()) { messageWriteStatus_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_) .mergeFrom(value).buildPartial(); } else { messageWriteStatus_ = value; } onChanged(); } else { if (messageWriteStatusCase_ == 3) { skippedBuilder_.mergeFrom(value); } else { skippedBuilder_.setMessage(value); } } messageWriteStatusCase_ = 3; return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ public Builder clearSkipped() { if (skippedBuilder_ == null) { if (messageWriteStatusCase_ == 3) { messageWriteStatusCase_ = 0; messageWriteStatus_ = null; onChanged(); } } else { if (messageWriteStatusCase_ == 3) { messageWriteStatusCase_ = 0; messageWriteStatus_ = null; } skippedBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder getSkippedBuilder() { return getSkippedFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder getSkippedOrBuilder() { if ((messageWriteStatusCase_ == 3) && (skippedBuilder_ != null)) { return skippedBuilder_.getMessageOrBuilder(); } else { if (messageWriteStatusCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_; } return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } } /** * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder> getSkippedFieldBuilder() { if (skippedBuilder_ == null) { if (!(messageWriteStatusCase_ == 3)) { messageWriteStatus_ = tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.getDefaultInstance(); } skippedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.SkippedOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Skipped) messageWriteStatus_, getParentForChildren(), isClean()); messageWriteStatus_ = null; } messageWriteStatusCase_ = 3; onChanged(); return skippedBuilder_; } @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.Topic.StreamWriteMessage.WriteResponse.WriteAck) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteAck parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WriteStatisticsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics) com.google.protobuf.MessageOrBuilder { /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; * @return Whether the persistingTime field is set. */ boolean hasPersistingTime(); /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; * @return The persistingTime. */ com.google.protobuf.Duration getPersistingTime(); /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; */ com.google.protobuf.DurationOrBuilder getPersistingTimeOrBuilder(); /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return Whether the minQueueWaitTime field is set. */ boolean hasMinQueueWaitTime(); /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return The minQueueWaitTime. */ com.google.protobuf.Duration getMinQueueWaitTime(); /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ com.google.protobuf.DurationOrBuilder getMinQueueWaitTimeOrBuilder(); /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return Whether the maxQueueWaitTime field is set. */ boolean hasMaxQueueWaitTime(); /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return The maxQueueWaitTime. */ com.google.protobuf.Duration getMaxQueueWaitTime(); /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ com.google.protobuf.DurationOrBuilder getMaxQueueWaitTimeOrBuilder(); /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return Whether the partitionQuotaWaitTime field is set. */ boolean hasPartitionQuotaWaitTime(); /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return The partitionQuotaWaitTime. */ com.google.protobuf.Duration getPartitionQuotaWaitTime(); /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ com.google.protobuf.DurationOrBuilder getPartitionQuotaWaitTimeOrBuilder(); /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return Whether the topicQuotaWaitTime field is set. */ boolean hasTopicQuotaWaitTime(); /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return The topicQuotaWaitTime. */ com.google.protobuf.Duration getTopicQuotaWaitTime(); /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ com.google.protobuf.DurationOrBuilder getTopicQuotaWaitTimeOrBuilder(); } /** *
       * Message with write statistics.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics} */ public static final class WriteStatistics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics) WriteStatisticsOrBuilder { private static final long serialVersionUID = 0L; // Use WriteStatistics.newBuilder() to construct. private WriteStatistics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteStatistics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteStatistics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder.class); } private int bitField0_; public static final int PERSISTING_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration persistingTime_; /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; * @return Whether the persistingTime field is set. */ @java.lang.Override public boolean hasPersistingTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; * @return The persistingTime. */ @java.lang.Override public com.google.protobuf.Duration getPersistingTime() { return persistingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : persistingTime_; } /** *
         * Time spent in persisting of data. Same for each message in response.
         * 
* * .google.protobuf.Duration persisting_time = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getPersistingTimeOrBuilder() { return persistingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : persistingTime_; } public static final int MIN_QUEUE_WAIT_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Duration minQueueWaitTime_; /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return Whether the minQueueWaitTime field is set. */ @java.lang.Override public boolean hasMinQueueWaitTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return The minQueueWaitTime. */ @java.lang.Override public com.google.protobuf.Duration getMinQueueWaitTime() { return minQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minQueueWaitTime_; } /** *
         * Time spent in queue before persisting, minimal of all messages in response.
         * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinQueueWaitTimeOrBuilder() { return minQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minQueueWaitTime_; } public static final int MAX_QUEUE_WAIT_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Duration maxQueueWaitTime_; /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return Whether the maxQueueWaitTime field is set. */ @java.lang.Override public boolean hasMaxQueueWaitTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return The maxQueueWaitTime. */ @java.lang.Override public com.google.protobuf.Duration getMaxQueueWaitTime() { return maxQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxQueueWaitTime_; } /** *
         * Time spent in queue before persisting, maximal of all messages in response.
         * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxQueueWaitTimeOrBuilder() { return maxQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxQueueWaitTime_; } public static final int PARTITION_QUOTA_WAIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration partitionQuotaWaitTime_; /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return Whether the partitionQuotaWaitTime field is set. */ @java.lang.Override public boolean hasPartitionQuotaWaitTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return The partitionQuotaWaitTime. */ @java.lang.Override public com.google.protobuf.Duration getPartitionQuotaWaitTime() { return partitionQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : partitionQuotaWaitTime_; } /** *
         * Time spent awaiting for partition write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getPartitionQuotaWaitTimeOrBuilder() { return partitionQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : partitionQuotaWaitTime_; } public static final int TOPIC_QUOTA_WAIT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration topicQuotaWaitTime_; /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return Whether the topicQuotaWaitTime field is set. */ @java.lang.Override public boolean hasTopicQuotaWaitTime() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return The topicQuotaWaitTime. */ @java.lang.Override public com.google.protobuf.Duration getTopicQuotaWaitTime() { return topicQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicQuotaWaitTime_; } /** *
         * Time spent awaiting for topic write quota. Same for each message in response.
         * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTopicQuotaWaitTimeOrBuilder() { return topicQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicQuotaWaitTime_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPersistingTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMinQueueWaitTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getMaxQueueWaitTime()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getPartitionQuotaWaitTime()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getTopicQuotaWaitTime()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPersistingTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMinQueueWaitTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxQueueWaitTime()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPartitionQuotaWaitTime()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTopicQuotaWaitTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics) obj; if (hasPersistingTime() != other.hasPersistingTime()) return false; if (hasPersistingTime()) { if (!getPersistingTime() .equals(other.getPersistingTime())) return false; } if (hasMinQueueWaitTime() != other.hasMinQueueWaitTime()) return false; if (hasMinQueueWaitTime()) { if (!getMinQueueWaitTime() .equals(other.getMinQueueWaitTime())) return false; } if (hasMaxQueueWaitTime() != other.hasMaxQueueWaitTime()) return false; if (hasMaxQueueWaitTime()) { if (!getMaxQueueWaitTime() .equals(other.getMaxQueueWaitTime())) return false; } if (hasPartitionQuotaWaitTime() != other.hasPartitionQuotaWaitTime()) return false; if (hasPartitionQuotaWaitTime()) { if (!getPartitionQuotaWaitTime() .equals(other.getPartitionQuotaWaitTime())) return false; } if (hasTopicQuotaWaitTime() != other.hasTopicQuotaWaitTime()) return false; if (hasTopicQuotaWaitTime()) { if (!getTopicQuotaWaitTime() .equals(other.getTopicQuotaWaitTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPersistingTime()) { hash = (37 * hash) + PERSISTING_TIME_FIELD_NUMBER; hash = (53 * hash) + getPersistingTime().hashCode(); } if (hasMinQueueWaitTime()) { hash = (37 * hash) + MIN_QUEUE_WAIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getMinQueueWaitTime().hashCode(); } if (hasMaxQueueWaitTime()) { hash = (37 * hash) + MAX_QUEUE_WAIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getMaxQueueWaitTime().hashCode(); } if (hasPartitionQuotaWaitTime()) { hash = (37 * hash) + PARTITION_QUOTA_WAIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getPartitionQuotaWaitTime().hashCode(); } if (hasTopicQuotaWaitTime()) { hash = (37 * hash) + TOPIC_QUOTA_WAIT_TIME_FIELD_NUMBER; hash = (53 * hash) + getTopicQuotaWaitTime().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics 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; } /** *
         * Message with write statistics.
         * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPersistingTimeFieldBuilder(); getMinQueueWaitTimeFieldBuilder(); getMaxQueueWaitTimeFieldBuilder(); getPartitionQuotaWaitTimeFieldBuilder(); getTopicQuotaWaitTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; persistingTime_ = null; if (persistingTimeBuilder_ != null) { persistingTimeBuilder_.dispose(); persistingTimeBuilder_ = null; } minQueueWaitTime_ = null; if (minQueueWaitTimeBuilder_ != null) { minQueueWaitTimeBuilder_.dispose(); minQueueWaitTimeBuilder_ = null; } maxQueueWaitTime_ = null; if (maxQueueWaitTimeBuilder_ != null) { maxQueueWaitTimeBuilder_.dispose(); maxQueueWaitTimeBuilder_ = null; } partitionQuotaWaitTime_ = null; if (partitionQuotaWaitTimeBuilder_ != null) { partitionQuotaWaitTimeBuilder_.dispose(); partitionQuotaWaitTimeBuilder_ = null; } topicQuotaWaitTime_ = null; if (topicQuotaWaitTimeBuilder_ != null) { topicQuotaWaitTimeBuilder_.dispose(); topicQuotaWaitTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.persistingTime_ = persistingTimeBuilder_ == null ? persistingTime_ : persistingTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minQueueWaitTime_ = minQueueWaitTimeBuilder_ == null ? minQueueWaitTime_ : minQueueWaitTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxQueueWaitTime_ = maxQueueWaitTimeBuilder_ == null ? maxQueueWaitTime_ : maxQueueWaitTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.partitionQuotaWaitTime_ = partitionQuotaWaitTimeBuilder_ == null ? partitionQuotaWaitTime_ : partitionQuotaWaitTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.topicQuotaWaitTime_ = topicQuotaWaitTimeBuilder_ == null ? topicQuotaWaitTime_ : topicQuotaWaitTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance()) return this; if (other.hasPersistingTime()) { mergePersistingTime(other.getPersistingTime()); } if (other.hasMinQueueWaitTime()) { mergeMinQueueWaitTime(other.getMinQueueWaitTime()); } if (other.hasMaxQueueWaitTime()) { mergeMaxQueueWaitTime(other.getMaxQueueWaitTime()); } if (other.hasPartitionQuotaWaitTime()) { mergePartitionQuotaWaitTime(other.getPartitionQuotaWaitTime()); } if (other.hasTopicQuotaWaitTime()) { mergeTopicQuotaWaitTime(other.getTopicQuotaWaitTime()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPersistingTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMinQueueWaitTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMaxQueueWaitTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getPartitionQuotaWaitTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTopicQuotaWaitTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Duration persistingTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> persistingTimeBuilder_; /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; * @return Whether the persistingTime field is set. */ public boolean hasPersistingTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; * @return The persistingTime. */ public com.google.protobuf.Duration getPersistingTime() { if (persistingTimeBuilder_ == null) { return persistingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : persistingTime_; } else { return persistingTimeBuilder_.getMessage(); } } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public Builder setPersistingTime(com.google.protobuf.Duration value) { if (persistingTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } persistingTime_ = value; } else { persistingTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public Builder setPersistingTime( com.google.protobuf.Duration.Builder builderForValue) { if (persistingTimeBuilder_ == null) { persistingTime_ = builderForValue.build(); } else { persistingTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public Builder mergePersistingTime(com.google.protobuf.Duration value) { if (persistingTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && persistingTime_ != null && persistingTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getPersistingTimeBuilder().mergeFrom(value); } else { persistingTime_ = value; } } else { persistingTimeBuilder_.mergeFrom(value); } if (persistingTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public Builder clearPersistingTime() { bitField0_ = (bitField0_ & ~0x00000001); persistingTime_ = null; if (persistingTimeBuilder_ != null) { persistingTimeBuilder_.dispose(); persistingTimeBuilder_ = null; } onChanged(); return this; } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public com.google.protobuf.Duration.Builder getPersistingTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPersistingTimeFieldBuilder().getBuilder(); } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ public com.google.protobuf.DurationOrBuilder getPersistingTimeOrBuilder() { if (persistingTimeBuilder_ != null) { return persistingTimeBuilder_.getMessageOrBuilder(); } else { return persistingTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : persistingTime_; } } /** *
           * Time spent in persisting of data. Same for each message in response.
           * 
* * .google.protobuf.Duration persisting_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getPersistingTimeFieldBuilder() { if (persistingTimeBuilder_ == null) { persistingTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getPersistingTime(), getParentForChildren(), isClean()); persistingTime_ = null; } return persistingTimeBuilder_; } private com.google.protobuf.Duration minQueueWaitTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minQueueWaitTimeBuilder_; /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return Whether the minQueueWaitTime field is set. */ public boolean hasMinQueueWaitTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; * @return The minQueueWaitTime. */ public com.google.protobuf.Duration getMinQueueWaitTime() { if (minQueueWaitTimeBuilder_ == null) { return minQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minQueueWaitTime_; } else { return minQueueWaitTimeBuilder_.getMessage(); } } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public Builder setMinQueueWaitTime(com.google.protobuf.Duration value) { if (minQueueWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minQueueWaitTime_ = value; } else { minQueueWaitTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public Builder setMinQueueWaitTime( com.google.protobuf.Duration.Builder builderForValue) { if (minQueueWaitTimeBuilder_ == null) { minQueueWaitTime_ = builderForValue.build(); } else { minQueueWaitTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public Builder mergeMinQueueWaitTime(com.google.protobuf.Duration value) { if (minQueueWaitTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && minQueueWaitTime_ != null && minQueueWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinQueueWaitTimeBuilder().mergeFrom(value); } else { minQueueWaitTime_ = value; } } else { minQueueWaitTimeBuilder_.mergeFrom(value); } if (minQueueWaitTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public Builder clearMinQueueWaitTime() { bitField0_ = (bitField0_ & ~0x00000002); minQueueWaitTime_ = null; if (minQueueWaitTimeBuilder_ != null) { minQueueWaitTimeBuilder_.dispose(); minQueueWaitTimeBuilder_ = null; } onChanged(); return this; } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public com.google.protobuf.Duration.Builder getMinQueueWaitTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinQueueWaitTimeFieldBuilder().getBuilder(); } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ public com.google.protobuf.DurationOrBuilder getMinQueueWaitTimeOrBuilder() { if (minQueueWaitTimeBuilder_ != null) { return minQueueWaitTimeBuilder_.getMessageOrBuilder(); } else { return minQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minQueueWaitTime_; } } /** *
           * Time spent in queue before persisting, minimal of all messages in response.
           * 
* * .google.protobuf.Duration min_queue_wait_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMinQueueWaitTimeFieldBuilder() { if (minQueueWaitTimeBuilder_ == null) { minQueueWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMinQueueWaitTime(), getParentForChildren(), isClean()); minQueueWaitTime_ = null; } return minQueueWaitTimeBuilder_; } private com.google.protobuf.Duration maxQueueWaitTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxQueueWaitTimeBuilder_; /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return Whether the maxQueueWaitTime field is set. */ public boolean hasMaxQueueWaitTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; * @return The maxQueueWaitTime. */ public com.google.protobuf.Duration getMaxQueueWaitTime() { if (maxQueueWaitTimeBuilder_ == null) { return maxQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxQueueWaitTime_; } else { return maxQueueWaitTimeBuilder_.getMessage(); } } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public Builder setMaxQueueWaitTime(com.google.protobuf.Duration value) { if (maxQueueWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxQueueWaitTime_ = value; } else { maxQueueWaitTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public Builder setMaxQueueWaitTime( com.google.protobuf.Duration.Builder builderForValue) { if (maxQueueWaitTimeBuilder_ == null) { maxQueueWaitTime_ = builderForValue.build(); } else { maxQueueWaitTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public Builder mergeMaxQueueWaitTime(com.google.protobuf.Duration value) { if (maxQueueWaitTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maxQueueWaitTime_ != null && maxQueueWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxQueueWaitTimeBuilder().mergeFrom(value); } else { maxQueueWaitTime_ = value; } } else { maxQueueWaitTimeBuilder_.mergeFrom(value); } if (maxQueueWaitTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public Builder clearMaxQueueWaitTime() { bitField0_ = (bitField0_ & ~0x00000004); maxQueueWaitTime_ = null; if (maxQueueWaitTimeBuilder_ != null) { maxQueueWaitTimeBuilder_.dispose(); maxQueueWaitTimeBuilder_ = null; } onChanged(); return this; } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public com.google.protobuf.Duration.Builder getMaxQueueWaitTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxQueueWaitTimeFieldBuilder().getBuilder(); } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ public com.google.protobuf.DurationOrBuilder getMaxQueueWaitTimeOrBuilder() { if (maxQueueWaitTimeBuilder_ != null) { return maxQueueWaitTimeBuilder_.getMessageOrBuilder(); } else { return maxQueueWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxQueueWaitTime_; } } /** *
           * Time spent in queue before persisting, maximal of all messages in response.
           * 
* * .google.protobuf.Duration max_queue_wait_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxQueueWaitTimeFieldBuilder() { if (maxQueueWaitTimeBuilder_ == null) { maxQueueWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxQueueWaitTime(), getParentForChildren(), isClean()); maxQueueWaitTime_ = null; } return maxQueueWaitTimeBuilder_; } private com.google.protobuf.Duration partitionQuotaWaitTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> partitionQuotaWaitTimeBuilder_; /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return Whether the partitionQuotaWaitTime field is set. */ public boolean hasPartitionQuotaWaitTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; * @return The partitionQuotaWaitTime. */ public com.google.protobuf.Duration getPartitionQuotaWaitTime() { if (partitionQuotaWaitTimeBuilder_ == null) { return partitionQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : partitionQuotaWaitTime_; } else { return partitionQuotaWaitTimeBuilder_.getMessage(); } } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public Builder setPartitionQuotaWaitTime(com.google.protobuf.Duration value) { if (partitionQuotaWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionQuotaWaitTime_ = value; } else { partitionQuotaWaitTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public Builder setPartitionQuotaWaitTime( com.google.protobuf.Duration.Builder builderForValue) { if (partitionQuotaWaitTimeBuilder_ == null) { partitionQuotaWaitTime_ = builderForValue.build(); } else { partitionQuotaWaitTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public Builder mergePartitionQuotaWaitTime(com.google.protobuf.Duration value) { if (partitionQuotaWaitTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && partitionQuotaWaitTime_ != null && partitionQuotaWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getPartitionQuotaWaitTimeBuilder().mergeFrom(value); } else { partitionQuotaWaitTime_ = value; } } else { partitionQuotaWaitTimeBuilder_.mergeFrom(value); } if (partitionQuotaWaitTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public Builder clearPartitionQuotaWaitTime() { bitField0_ = (bitField0_ & ~0x00000008); partitionQuotaWaitTime_ = null; if (partitionQuotaWaitTimeBuilder_ != null) { partitionQuotaWaitTimeBuilder_.dispose(); partitionQuotaWaitTimeBuilder_ = null; } onChanged(); return this; } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public com.google.protobuf.Duration.Builder getPartitionQuotaWaitTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPartitionQuotaWaitTimeFieldBuilder().getBuilder(); } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ public com.google.protobuf.DurationOrBuilder getPartitionQuotaWaitTimeOrBuilder() { if (partitionQuotaWaitTimeBuilder_ != null) { return partitionQuotaWaitTimeBuilder_.getMessageOrBuilder(); } else { return partitionQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : partitionQuotaWaitTime_; } } /** *
           * Time spent awaiting for partition write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration partition_quota_wait_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getPartitionQuotaWaitTimeFieldBuilder() { if (partitionQuotaWaitTimeBuilder_ == null) { partitionQuotaWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getPartitionQuotaWaitTime(), getParentForChildren(), isClean()); partitionQuotaWaitTime_ = null; } return partitionQuotaWaitTimeBuilder_; } private com.google.protobuf.Duration topicQuotaWaitTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> topicQuotaWaitTimeBuilder_; /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return Whether the topicQuotaWaitTime field is set. */ public boolean hasTopicQuotaWaitTime() { return ((bitField0_ & 0x00000010) != 0); } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; * @return The topicQuotaWaitTime. */ public com.google.protobuf.Duration getTopicQuotaWaitTime() { if (topicQuotaWaitTimeBuilder_ == null) { return topicQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicQuotaWaitTime_; } else { return topicQuotaWaitTimeBuilder_.getMessage(); } } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public Builder setTopicQuotaWaitTime(com.google.protobuf.Duration value) { if (topicQuotaWaitTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topicQuotaWaitTime_ = value; } else { topicQuotaWaitTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public Builder setTopicQuotaWaitTime( com.google.protobuf.Duration.Builder builderForValue) { if (topicQuotaWaitTimeBuilder_ == null) { topicQuotaWaitTime_ = builderForValue.build(); } else { topicQuotaWaitTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public Builder mergeTopicQuotaWaitTime(com.google.protobuf.Duration value) { if (topicQuotaWaitTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && topicQuotaWaitTime_ != null && topicQuotaWaitTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTopicQuotaWaitTimeBuilder().mergeFrom(value); } else { topicQuotaWaitTime_ = value; } } else { topicQuotaWaitTimeBuilder_.mergeFrom(value); } if (topicQuotaWaitTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public Builder clearTopicQuotaWaitTime() { bitField0_ = (bitField0_ & ~0x00000010); topicQuotaWaitTime_ = null; if (topicQuotaWaitTimeBuilder_ != null) { topicQuotaWaitTimeBuilder_.dispose(); topicQuotaWaitTimeBuilder_ = null; } onChanged(); return this; } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public com.google.protobuf.Duration.Builder getTopicQuotaWaitTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTopicQuotaWaitTimeFieldBuilder().getBuilder(); } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ public com.google.protobuf.DurationOrBuilder getTopicQuotaWaitTimeOrBuilder() { if (topicQuotaWaitTimeBuilder_ != null) { return topicQuotaWaitTimeBuilder_.getMessageOrBuilder(); } else { return topicQuotaWaitTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicQuotaWaitTime_; } } /** *
           * Time spent awaiting for topic write quota. Same for each message in response.
           * 
* * .google.protobuf.Duration topic_quota_wait_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTopicQuotaWaitTimeFieldBuilder() { if (topicQuotaWaitTimeBuilder_ == null) { topicQuotaWaitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTopicQuotaWaitTime(), getParentForChildren(), isClean()); topicQuotaWaitTime_ = null; } return topicQuotaWaitTimeBuilder_; } @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.Topic.StreamWriteMessage.WriteResponse.WriteStatistics) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteStatistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ACKS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List acks_; /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ @java.lang.Override public java.util.List getAcksList() { return acks_; } /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ @java.lang.Override public java.util.List getAcksOrBuilderList() { return acks_; } /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ @java.lang.Override public int getAcksCount() { return acks_.size(); } /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getAcks(int index) { return acks_.get(index); } /** *
       * Number of acks is equal to number of messages in the corresponding WriteRequests.
       * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder getAcksOrBuilder( int index) { return acks_.get(index); } public static final int PARTITION_ID_FIELD_NUMBER = 2; private long partitionId_ = 0L; /** *
       * Assigned partition for all client messages inside this batch.
       * This actual partition may differ from that returned in InitResponse
       * or other WriteResponses in this write session.
       * 
* * int64 partition_id = 2; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int WRITE_STATISTICS_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics writeStatistics_; /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return Whether the writeStatistics field is set. */ @java.lang.Override public boolean hasWriteStatistics() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return The writeStatistics. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getWriteStatistics() { return writeStatistics_ == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance() : writeStatistics_; } /** *
       * Write statistics for this sequence of client messages.
       * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder getWriteStatisticsOrBuilder() { return writeStatistics_ == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance() : writeStatistics_; } 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 < acks_.size(); i++) { output.writeMessage(1, acks_.get(i)); } if (partitionId_ != 0L) { output.writeInt64(2, partitionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getWriteStatistics()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < acks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, acks_.get(i)); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, partitionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWriteStatistics()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) obj; if (!getAcksList() .equals(other.getAcksList())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (hasWriteStatistics() != other.hasWriteStatistics()) return false; if (hasWriteStatistics()) { if (!getWriteStatistics() .equals(other.getWriteStatistics())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getAcksCount() > 0) { hash = (37 * hash) + ACKS_FIELD_NUMBER; hash = (53 * hash) + getAcksList().hashCode(); } hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); if (hasWriteStatistics()) { hash = (37 * hash) + WRITE_STATISTICS_FIELD_NUMBER; hash = (53 * hash) + getWriteStatistics().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse 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; } /** *
       * Message that represents acknowledgment for sequence of client messages.
       * This sequence is persisted together so write statistics is for messages batch.
       * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage.WriteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage.WriteResponse) tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAcksFieldBuilder(); getWriteStatisticsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (acksBuilder_ == null) { acks_ = java.util.Collections.emptyList(); } else { acks_ = null; acksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); partitionId_ = 0L; writeStatistics_ = null; if (writeStatisticsBuilder_ != null) { writeStatisticsBuilder_.dispose(); writeStatisticsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse result) { if (acksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { acks_ = java.util.Collections.unmodifiableList(acks_); bitField0_ = (bitField0_ & ~0x00000001); } result.acks_ = acks_; } else { result.acks_ = acksBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.partitionId_ = partitionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.writeStatistics_ = writeStatisticsBuilder_ == null ? writeStatistics_ : writeStatisticsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.getDefaultInstance()) return this; if (acksBuilder_ == null) { if (!other.acks_.isEmpty()) { if (acks_.isEmpty()) { acks_ = other.acks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAcksIsMutable(); acks_.addAll(other.acks_); } onChanged(); } } else { if (!other.acks_.isEmpty()) { if (acksBuilder_.isEmpty()) { acksBuilder_.dispose(); acksBuilder_ = null; acks_ = other.acks_; bitField0_ = (bitField0_ & ~0x00000001); acksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAcksFieldBuilder() : null; } else { acksBuilder_.addAllMessages(other.acks_); } } } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.hasWriteStatistics()) { mergeWriteStatistics(other.getWriteStatistics()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.parser(), extensionRegistry); if (acksBuilder_ == null) { ensureAcksIsMutable(); acks_.add(m); } else { acksBuilder_.addMessage(m); } break; } // case 10 case 16: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getWriteStatisticsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List acks_ = java.util.Collections.emptyList(); private void ensureAcksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { acks_ = new java.util.ArrayList(acks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder> acksBuilder_; /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public java.util.List getAcksList() { if (acksBuilder_ == null) { return java.util.Collections.unmodifiableList(acks_); } else { return acksBuilder_.getMessageList(); } } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public int getAcksCount() { if (acksBuilder_ == null) { return acks_.size(); } else { return acksBuilder_.getCount(); } } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck getAcks(int index) { if (acksBuilder_ == null) { return acks_.get(index); } else { return acksBuilder_.getMessage(index); } } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder setAcks( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck value) { if (acksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcksIsMutable(); acks_.set(index, value); onChanged(); } else { acksBuilder_.setMessage(index, value); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder setAcks( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder builderForValue) { if (acksBuilder_ == null) { ensureAcksIsMutable(); acks_.set(index, builderForValue.build()); onChanged(); } else { acksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder addAcks(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck value) { if (acksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcksIsMutable(); acks_.add(value); onChanged(); } else { acksBuilder_.addMessage(value); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder addAcks( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck value) { if (acksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcksIsMutable(); acks_.add(index, value); onChanged(); } else { acksBuilder_.addMessage(index, value); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder addAcks( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder builderForValue) { if (acksBuilder_ == null) { ensureAcksIsMutable(); acks_.add(builderForValue.build()); onChanged(); } else { acksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder addAcks( int index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder builderForValue) { if (acksBuilder_ == null) { ensureAcksIsMutable(); acks_.add(index, builderForValue.build()); onChanged(); } else { acksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder addAllAcks( java.lang.Iterable values) { if (acksBuilder_ == null) { ensureAcksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, acks_); onChanged(); } else { acksBuilder_.addAllMessages(values); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder clearAcks() { if (acksBuilder_ == null) { acks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { acksBuilder_.clear(); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public Builder removeAcks(int index) { if (acksBuilder_ == null) { ensureAcksIsMutable(); acks_.remove(index); onChanged(); } else { acksBuilder_.remove(index); } return this; } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder getAcksBuilder( int index) { return getAcksFieldBuilder().getBuilder(index); } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder getAcksOrBuilder( int index) { if (acksBuilder_ == null) { return acks_.get(index); } else { return acksBuilder_.getMessageOrBuilder(index); } } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public java.util.List getAcksOrBuilderList() { if (acksBuilder_ != null) { return acksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(acks_); } } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder addAcksBuilder() { return getAcksFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.getDefaultInstance()); } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder addAcksBuilder( int index) { return getAcksFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.getDefaultInstance()); } /** *
         * Number of acks is equal to number of messages in the corresponding WriteRequests.
         * 
* * repeated .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck acks = 1; */ public java.util.List getAcksBuilderList() { return getAcksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder> getAcksFieldBuilder() { if (acksBuilder_ == null) { acksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteAckOrBuilder>( acks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); acks_ = null; } return acksBuilder_; } private long partitionId_ ; /** *
         * Assigned partition for all client messages inside this batch.
         * This actual partition may differ from that returned in InitResponse
         * or other WriteResponses in this write session.
         * 
* * int64 partition_id = 2; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
         * Assigned partition for all client messages inside this batch.
         * This actual partition may differ from that returned in InitResponse
         * or other WriteResponses in this write session.
         * 
* * int64 partition_id = 2; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Assigned partition for all client messages inside this batch.
         * This actual partition may differ from that returned in InitResponse
         * or other WriteResponses in this write session.
         * 
* * int64 partition_id = 2; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000002); partitionId_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics writeStatistics_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder> writeStatisticsBuilder_; /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return Whether the writeStatistics field is set. */ public boolean hasWriteStatistics() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; * @return The writeStatistics. */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics getWriteStatistics() { if (writeStatisticsBuilder_ == null) { return writeStatistics_ == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance() : writeStatistics_; } else { return writeStatisticsBuilder_.getMessage(); } } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public Builder setWriteStatistics(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics value) { if (writeStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writeStatistics_ = value; } else { writeStatisticsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public Builder setWriteStatistics( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder builderForValue) { if (writeStatisticsBuilder_ == null) { writeStatistics_ = builderForValue.build(); } else { writeStatisticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public Builder mergeWriteStatistics(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics value) { if (writeStatisticsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && writeStatistics_ != null && writeStatistics_ != tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance()) { getWriteStatisticsBuilder().mergeFrom(value); } else { writeStatistics_ = value; } } else { writeStatisticsBuilder_.mergeFrom(value); } if (writeStatistics_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public Builder clearWriteStatistics() { bitField0_ = (bitField0_ & ~0x00000004); writeStatistics_ = null; if (writeStatisticsBuilder_ != null) { writeStatisticsBuilder_.dispose(); writeStatisticsBuilder_ = null; } onChanged(); return this; } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder getWriteStatisticsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWriteStatisticsFieldBuilder().getBuilder(); } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder getWriteStatisticsOrBuilder() { if (writeStatisticsBuilder_ != null) { return writeStatisticsBuilder_.getMessageOrBuilder(); } else { return writeStatistics_ == null ? tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.getDefaultInstance() : writeStatistics_; } } /** *
         * Write statistics for this sequence of client messages.
         * 
* * .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteStatistics write_statistics = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder> getWriteStatisticsFieldBuilder() { if (writeStatisticsBuilder_ == null) { writeStatisticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatistics.Builder, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse.WriteStatisticsOrBuilder>( getWriteStatistics(), getParentForChildren(), isClean()); writeStatistics_ = null; } return writeStatisticsBuilder_; } @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.Topic.StreamWriteMessage.WriteResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage.WriteResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WriteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.WriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamWriteMessage other = (tech.ydb.proto.topic.YdbTopic.StreamWriteMessage) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage 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 tech.ydb.proto.topic.YdbTopic.StreamWriteMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage 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(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage 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; } /** *
     * Messages for bidirectional streaming rpc StreamWrite
     * 
* * Protobuf type {@code Ydb.Topic.StreamWriteMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamWriteMessage) tech.ydb.proto.topic.YdbTopic.StreamWriteMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.class, tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamWriteMessage_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage build() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamWriteMessage result = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.StreamWriteMessage) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamWriteMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamWriteMessage other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamWriteMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.StreamWriteMessage) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamWriteMessage) private static final tech.ydb.proto.topic.YdbTopic.StreamWriteMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamWriteMessage(); } public static tech.ydb.proto.topic.YdbTopic.StreamWriteMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamWriteMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamWriteMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamReadMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage) com.google.protobuf.MessageOrBuilder { } /** *
   * Messages for bidirectional streaming rpc StreamRead
   * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage} */ public static final class StreamReadMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage) StreamReadMessageOrBuilder { private static final long serialVersionUID = 0L; // Use StreamReadMessage.newBuilder() to construct. private StreamReadMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamReadMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamReadMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.Builder.class); } public interface PartitionSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.PartitionSession) com.google.protobuf.MessageOrBuilder { /** *
       * Identifier of partition session. Unique inside one RPC call.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ long getPartitionId(); } /** *
     * Within a StreamRead session delivered messages are separated by partition.
     * Reads from a single partition are represented by a partition session.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.PartitionSession} */ public static final class PartitionSession extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.PartitionSession) PartitionSessionOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionSession.newBuilder() to construct. private PartitionSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionSession() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionSession(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Identifier of partition session. Unique inside one RPC call.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (!getPath() .equals(other.getPath())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession 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; } /** *
       * Within a StreamRead session delivered messages are separated by partition.
       * Reads from a single partition are represented by a partition session.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.PartitionSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.PartitionSession) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; path_ = ""; partitionId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Identifier of partition session. Unique inside one RPC call.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Identifier of partition session. Unique inside one RPC call.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Identifier of partition session. Unique inside one RPC call.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
         * Topic path of partition.
         * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Topic path of partition.
         * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Topic path of partition.
         * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Topic path of partition.
         * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * Topic path of partition.
         * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long partitionId_ ; /** *
         * Partition identifier.
         * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 3; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 3; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000004); partitionId_ = 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.Topic.StreamReadMessage.PartitionSession) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.PartitionSession) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromClientOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.FromClient) com.google.protobuf.MessageOrBuilder { /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ boolean hasInitRequest(); /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return The initRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getInitRequest(); /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder getInitRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return Whether the readRequest field is set. */ boolean hasReadRequest(); /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return The readRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getReadRequest(); /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder getReadRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return Whether the commitOffsetRequest field is set. */ boolean hasCommitOffsetRequest(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return The commitOffsetRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getCommitOffsetRequest(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder getCommitOffsetRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return Whether the partitionSessionStatusRequest field is set. */ boolean hasPartitionSessionStatusRequest(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return The partitionSessionStatusRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getPartitionSessionStatusRequest(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder getPartitionSessionStatusRequestOrBuilder(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return Whether the updateTokenRequest field is set. */ boolean hasUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return The updateTokenRequest. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return Whether the directReadAck field is set. */ boolean hasDirectReadAck(); /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return The directReadAck. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDirectReadAck(); /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder getDirectReadAckOrBuilder(); /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return Whether the startPartitionSessionResponse field is set. */ boolean hasStartPartitionSessionResponse(); /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return The startPartitionSessionResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getStartPartitionSessionResponse(); /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder getStartPartitionSessionResponseOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return Whether the stopPartitionSessionResponse field is set. */ boolean hasStopPartitionSessionResponse(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return The stopPartitionSessionResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getStopPartitionSessionResponse(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder getStopPartitionSessionResponseOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.ClientMessageCase getClientMessageCase(); } /** *
     * Client-server message for read session. Contains one of:
     *     InitRequest - handshake request.
     *     ReadRequest - request for data.
     *     CommitOffsetRequest - request for commit of some read data.
     *     PartitionSessionStatusRequest - request for session status
     *     UpdateTokenRequest - request to update auth token
     *     DirectReadAck - client signals it has finished direct reading from the partition node.
     *
     *     StartPartitionSessionResponse - Response to StreamReadServerMessage.StartPartitionSessionRequest.
     *         Client signals it is ready to get data from partition.
     *     StopPartitionSessionResponse - Response to StreamReadServerMessage.StopPartitionSessionRequest.
     *         Client signals it has finished working with partition. Mandatory for graceful stop, optional otherwise.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.FromClient} */ public static final class FromClient extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.FromClient) FromClientOrBuilder { private static final long serialVersionUID = 0L; // Use FromClient.newBuilder() to construct. private FromClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromClient() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromClient(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.Builder.class); } private int clientMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object clientMessage_; public enum ClientMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INIT_REQUEST(1), READ_REQUEST(2), COMMIT_OFFSET_REQUEST(3), PARTITION_SESSION_STATUS_REQUEST(4), UPDATE_TOKEN_REQUEST(5), DIRECT_READ_ACK(8), START_PARTITION_SESSION_RESPONSE(6), STOP_PARTITION_SESSION_RESPONSE(7), CLIENTMESSAGE_NOT_SET(0); private final int value; private ClientMessageCase(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 ClientMessageCase valueOf(int value) { return forNumber(value); } public static ClientMessageCase forNumber(int value) { switch (value) { case 1: return INIT_REQUEST; case 2: return READ_REQUEST; case 3: return COMMIT_OFFSET_REQUEST; case 4: return PARTITION_SESSION_STATUS_REQUEST; case 5: return UPDATE_TOKEN_REQUEST; case 8: return DIRECT_READ_ACK; case 6: return START_PARTITION_SESSION_RESPONSE; case 7: return STOP_PARTITION_SESSION_RESPONSE; case 0: return CLIENTMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public static final int INIT_REQUEST_FIELD_NUMBER = 1; /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ @java.lang.Override public boolean hasInitRequest() { return clientMessageCase_ == 1; } /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return The initRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getInitRequest() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } /** *
       * Client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder getInitRequestOrBuilder() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } public static final int READ_REQUEST_FIELD_NUMBER = 2; /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return Whether the readRequest field is set. */ @java.lang.Override public boolean hasReadRequest() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return The readRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getReadRequest() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder getReadRequestOrBuilder() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } public static final int COMMIT_OFFSET_REQUEST_FIELD_NUMBER = 3; /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return Whether the commitOffsetRequest field is set. */ @java.lang.Override public boolean hasCommitOffsetRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return The commitOffsetRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getCommitOffsetRequest() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder getCommitOffsetRequestOrBuilder() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } public static final int PARTITION_SESSION_STATUS_REQUEST_FIELD_NUMBER = 4; /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return Whether the partitionSessionStatusRequest field is set. */ @java.lang.Override public boolean hasPartitionSessionStatusRequest() { return clientMessageCase_ == 4; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return The partitionSessionStatusRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getPartitionSessionStatusRequest() { if (clientMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder getPartitionSessionStatusRequestOrBuilder() { if (clientMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } public static final int UPDATE_TOKEN_REQUEST_FIELD_NUMBER = 5; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (clientMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if (clientMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } public static final int DIRECT_READ_ACK_FIELD_NUMBER = 8; /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return Whether the directReadAck field is set. */ @java.lang.Override public boolean hasDirectReadAck() { return clientMessageCase_ == 8; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return The directReadAck. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDirectReadAck() { if (clientMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder getDirectReadAckOrBuilder() { if (clientMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } public static final int START_PARTITION_SESSION_RESPONSE_FIELD_NUMBER = 6; /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return Whether the startPartitionSessionResponse field is set. */ @java.lang.Override public boolean hasStartPartitionSessionResponse() { return clientMessageCase_ == 6; } /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return The startPartitionSessionResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getStartPartitionSessionResponse() { if (clientMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } /** *
       * Responses to respective server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder getStartPartitionSessionResponseOrBuilder() { if (clientMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } public static final int STOP_PARTITION_SESSION_RESPONSE_FIELD_NUMBER = 7; /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return Whether the stopPartitionSessionResponse field is set. */ @java.lang.Override public boolean hasStopPartitionSessionResponse() { return clientMessageCase_ == 7; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return The stopPartitionSessionResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getStopPartitionSessionResponse() { if (clientMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder getStopPartitionSessionResponseOrBuilder() { if (clientMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.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 (clientMessageCase_ == 1) { output.writeMessage(1, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_); } if (clientMessageCase_ == 2) { output.writeMessage(2, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_); } if (clientMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_); } if (clientMessageCase_ == 4) { output.writeMessage(4, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_); } if (clientMessageCase_ == 5) { output.writeMessage(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } if (clientMessageCase_ == 6) { output.writeMessage(6, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_); } if (clientMessageCase_ == 7) { output.writeMessage(7, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_); } if (clientMessageCase_ == 8) { output.writeMessage(8, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clientMessageCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_); } if (clientMessageCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_); } if (clientMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_); } if (clientMessageCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_); } if (clientMessageCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } if (clientMessageCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_); } if (clientMessageCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_); } if (clientMessageCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient) obj; if (!getClientMessageCase().equals(other.getClientMessageCase())) return false; switch (clientMessageCase_) { case 1: if (!getInitRequest() .equals(other.getInitRequest())) return false; break; case 2: if (!getReadRequest() .equals(other.getReadRequest())) return false; break; case 3: if (!getCommitOffsetRequest() .equals(other.getCommitOffsetRequest())) return false; break; case 4: if (!getPartitionSessionStatusRequest() .equals(other.getPartitionSessionStatusRequest())) return false; break; case 5: if (!getUpdateTokenRequest() .equals(other.getUpdateTokenRequest())) return false; break; case 8: if (!getDirectReadAck() .equals(other.getDirectReadAck())) return false; break; case 6: if (!getStartPartitionSessionResponse() .equals(other.getStartPartitionSessionResponse())) return false; break; case 7: if (!getStopPartitionSessionResponse() .equals(other.getStopPartitionSessionResponse())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (clientMessageCase_) { case 1: hash = (37 * hash) + INIT_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getInitRequest().hashCode(); break; case 2: hash = (37 * hash) + READ_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getReadRequest().hashCode(); break; case 3: hash = (37 * hash) + COMMIT_OFFSET_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getCommitOffsetRequest().hashCode(); break; case 4: hash = (37 * hash) + PARTITION_SESSION_STATUS_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getPartitionSessionStatusRequest().hashCode(); break; case 5: hash = (37 * hash) + UPDATE_TOKEN_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenRequest().hashCode(); break; case 8: hash = (37 * hash) + DIRECT_READ_ACK_FIELD_NUMBER; hash = (53 * hash) + getDirectReadAck().hashCode(); break; case 6: hash = (37 * hash) + START_PARTITION_SESSION_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getStartPartitionSessionResponse().hashCode(); break; case 7: hash = (37 * hash) + STOP_PARTITION_SESSION_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getStopPartitionSessionResponse().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient 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; } /** *
       * Client-server message for read session. Contains one of:
       *     InitRequest - handshake request.
       *     ReadRequest - request for data.
       *     CommitOffsetRequest - request for commit of some read data.
       *     PartitionSessionStatusRequest - request for session status
       *     UpdateTokenRequest - request to update auth token
       *     DirectReadAck - client signals it has finished direct reading from the partition node.
       *
       *     StartPartitionSessionResponse - Response to StreamReadServerMessage.StartPartitionSessionRequest.
       *         Client signals it is ready to get data from partition.
       *     StopPartitionSessionResponse - Response to StreamReadServerMessage.StopPartitionSessionRequest.
       *         Client signals it has finished working with partition. Mandatory for graceful stop, optional otherwise.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.FromClient} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.FromClient) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClientOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (initRequestBuilder_ != null) { initRequestBuilder_.clear(); } if (readRequestBuilder_ != null) { readRequestBuilder_.clear(); } if (commitOffsetRequestBuilder_ != null) { commitOffsetRequestBuilder_.clear(); } if (partitionSessionStatusRequestBuilder_ != null) { partitionSessionStatusRequestBuilder_.clear(); } if (updateTokenRequestBuilder_ != null) { updateTokenRequestBuilder_.clear(); } if (directReadAckBuilder_ != null) { directReadAckBuilder_.clear(); } if (startPartitionSessionResponseBuilder_ != null) { startPartitionSessionResponseBuilder_.clear(); } if (stopPartitionSessionResponseBuilder_ != null) { stopPartitionSessionResponseBuilder_.clear(); } clientMessageCase_ = 0; clientMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient result) { result.clientMessageCase_ = clientMessageCase_; result.clientMessage_ = this.clientMessage_; if (clientMessageCase_ == 1 && initRequestBuilder_ != null) { result.clientMessage_ = initRequestBuilder_.build(); } if (clientMessageCase_ == 2 && readRequestBuilder_ != null) { result.clientMessage_ = readRequestBuilder_.build(); } if (clientMessageCase_ == 3 && commitOffsetRequestBuilder_ != null) { result.clientMessage_ = commitOffsetRequestBuilder_.build(); } if (clientMessageCase_ == 4 && partitionSessionStatusRequestBuilder_ != null) { result.clientMessage_ = partitionSessionStatusRequestBuilder_.build(); } if (clientMessageCase_ == 5 && updateTokenRequestBuilder_ != null) { result.clientMessage_ = updateTokenRequestBuilder_.build(); } if (clientMessageCase_ == 8 && directReadAckBuilder_ != null) { result.clientMessage_ = directReadAckBuilder_.build(); } if (clientMessageCase_ == 6 && startPartitionSessionResponseBuilder_ != null) { result.clientMessage_ = startPartitionSessionResponseBuilder_.build(); } if (clientMessageCase_ == 7 && stopPartitionSessionResponseBuilder_ != null) { result.clientMessage_ = stopPartitionSessionResponseBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient.getDefaultInstance()) return this; switch (other.getClientMessageCase()) { case INIT_REQUEST: { mergeInitRequest(other.getInitRequest()); break; } case READ_REQUEST: { mergeReadRequest(other.getReadRequest()); break; } case COMMIT_OFFSET_REQUEST: { mergeCommitOffsetRequest(other.getCommitOffsetRequest()); break; } case PARTITION_SESSION_STATUS_REQUEST: { mergePartitionSessionStatusRequest(other.getPartitionSessionStatusRequest()); break; } case UPDATE_TOKEN_REQUEST: { mergeUpdateTokenRequest(other.getUpdateTokenRequest()); break; } case DIRECT_READ_ACK: { mergeDirectReadAck(other.getDirectReadAck()); break; } case START_PARTITION_SESSION_RESPONSE: { mergeStartPartitionSessionResponse(other.getStartPartitionSessionResponse()); break; } case STOP_PARTITION_SESSION_RESPONSE: { mergeStopPartitionSessionResponse(other.getStopPartitionSessionResponse()); break; } case CLIENTMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInitRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 1; break; } // case 10 case 18: { input.readMessage( getReadRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCommitOffsetRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 3; break; } // case 26 case 34: { input.readMessage( getPartitionSessionStatusRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 4; break; } // case 34 case 42: { input.readMessage( getUpdateTokenRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 5; break; } // case 42 case 50: { input.readMessage( getStartPartitionSessionResponseFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 6; break; } // case 50 case 58: { input.readMessage( getStopPartitionSessionResponseFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 7; break; } // case 58 case 66: { input.readMessage( getDirectReadAckFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 8; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int clientMessageCase_ = 0; private java.lang.Object clientMessage_; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public Builder clearClientMessage() { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder> initRequestBuilder_; /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return Whether the initRequest field is set. */ @java.lang.Override public boolean hasInitRequest() { return clientMessageCase_ == 1; } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; * @return The initRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getInitRequest() { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 1) { return initRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ public Builder setInitRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest value) { if (initRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { initRequestBuilder_.setMessage(value); } clientMessageCase_ = 1; return this; } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ public Builder setInitRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder builderForValue) { if (initRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { initRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 1; return this; } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ public Builder mergeInitRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest value) { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 1) { initRequestBuilder_.mergeFrom(value); } else { initRequestBuilder_.setMessage(value); } } clientMessageCase_ = 1; return this; } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ public Builder clearInitRequest() { if (initRequestBuilder_ == null) { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; } initRequestBuilder_.clear(); } return this; } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder getInitRequestBuilder() { return getInitRequestFieldBuilder().getBuilder(); } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder getInitRequestOrBuilder() { if ((clientMessageCase_ == 1) && (initRequestBuilder_ != null)) { return initRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } } /** *
         * Client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitRequest init_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder> getInitRequestFieldBuilder() { if (initRequestBuilder_ == null) { if (!(clientMessageCase_ == 1)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } initRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 1; onChanged(); return initRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder> readRequestBuilder_; /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return Whether the readRequest field is set. */ @java.lang.Override public boolean hasReadRequest() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; * @return The readRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getReadRequest() { if (readRequestBuilder_ == null) { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 2) { return readRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ public Builder setReadRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest value) { if (readRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { readRequestBuilder_.setMessage(value); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ public Builder setReadRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder builderForValue) { if (readRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { readRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ public Builder mergeReadRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest value) { if (readRequestBuilder_ == null) { if (clientMessageCase_ == 2 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 2) { readRequestBuilder_.mergeFrom(value); } else { readRequestBuilder_.setMessage(value); } } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ public Builder clearReadRequest() { if (readRequestBuilder_ == null) { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; } readRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder getReadRequestBuilder() { return getReadRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder getReadRequestOrBuilder() { if ((clientMessageCase_ == 2) && (readRequestBuilder_ != null)) { return readRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.ReadRequest read_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder> getReadRequestFieldBuilder() { if (readRequestBuilder_ == null) { if (!(clientMessageCase_ == 2)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } readRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 2; onChanged(); return readRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder> commitOffsetRequestBuilder_; /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return Whether the commitOffsetRequest field is set. */ @java.lang.Override public boolean hasCommitOffsetRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; * @return The commitOffsetRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getCommitOffsetRequest() { if (commitOffsetRequestBuilder_ == null) { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 3) { return commitOffsetRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ public Builder setCommitOffsetRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest value) { if (commitOffsetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { commitOffsetRequestBuilder_.setMessage(value); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ public Builder setCommitOffsetRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder builderForValue) { if (commitOffsetRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { commitOffsetRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ public Builder mergeCommitOffsetRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest value) { if (commitOffsetRequestBuilder_ == null) { if (clientMessageCase_ == 3 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 3) { commitOffsetRequestBuilder_.mergeFrom(value); } else { commitOffsetRequestBuilder_.setMessage(value); } } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ public Builder clearCommitOffsetRequest() { if (commitOffsetRequestBuilder_ == null) { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; } commitOffsetRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder getCommitOffsetRequestBuilder() { return getCommitOffsetRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder getCommitOffsetRequestOrBuilder() { if ((clientMessageCase_ == 3) && (commitOffsetRequestBuilder_ != null)) { return commitOffsetRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetRequest commit_offset_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder> getCommitOffsetRequestFieldBuilder() { if (commitOffsetRequestBuilder_ == null) { if (!(clientMessageCase_ == 3)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } commitOffsetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 3; onChanged(); return commitOffsetRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder> partitionSessionStatusRequestBuilder_; /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return Whether the partitionSessionStatusRequest field is set. */ @java.lang.Override public boolean hasPartitionSessionStatusRequest() { return clientMessageCase_ == 4; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; * @return The partitionSessionStatusRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getPartitionSessionStatusRequest() { if (partitionSessionStatusRequestBuilder_ == null) { if (clientMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 4) { return partitionSessionStatusRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ public Builder setPartitionSessionStatusRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest value) { if (partitionSessionStatusRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { partitionSessionStatusRequestBuilder_.setMessage(value); } clientMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ public Builder setPartitionSessionStatusRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder builderForValue) { if (partitionSessionStatusRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { partitionSessionStatusRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ public Builder mergePartitionSessionStatusRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest value) { if (partitionSessionStatusRequestBuilder_ == null) { if (clientMessageCase_ == 4 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 4) { partitionSessionStatusRequestBuilder_.mergeFrom(value); } else { partitionSessionStatusRequestBuilder_.setMessage(value); } } clientMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ public Builder clearPartitionSessionStatusRequest() { if (partitionSessionStatusRequestBuilder_ == null) { if (clientMessageCase_ == 4) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 4) { clientMessageCase_ = 0; clientMessage_ = null; } partitionSessionStatusRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder getPartitionSessionStatusRequestBuilder() { return getPartitionSessionStatusRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder getPartitionSessionStatusRequestOrBuilder() { if ((clientMessageCase_ == 4) && (partitionSessionStatusRequestBuilder_ != null)) { return partitionSessionStatusRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest partition_session_status_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder> getPartitionSessionStatusRequestFieldBuilder() { if (partitionSessionStatusRequestBuilder_ == null) { if (!(clientMessageCase_ == 4)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } partitionSessionStatusRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 4; onChanged(); return partitionSessionStatusRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> updateTokenRequestBuilder_; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 5) { return updateTokenRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ public Builder setUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { updateTokenRequestBuilder_.setMessage(value); } clientMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ public Builder setUpdateTokenRequest( tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder builderForValue) { if (updateTokenRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { updateTokenRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ public Builder mergeUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 5 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 5) { updateTokenRequestBuilder_.mergeFrom(value); } else { updateTokenRequestBuilder_.setMessage(value); } } clientMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ public Builder clearUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 5) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 5) { clientMessageCase_ = 0; clientMessage_ = null; } updateTokenRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder getUpdateTokenRequestBuilder() { return getUpdateTokenRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if ((clientMessageCase_ == 5) && (updateTokenRequestBuilder_ != null)) { return updateTokenRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> getUpdateTokenRequestFieldBuilder() { if (updateTokenRequestBuilder_ == null) { if (!(clientMessageCase_ == 5)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } updateTokenRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 5; onChanged(); return updateTokenRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder> directReadAckBuilder_; /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return Whether the directReadAck field is set. */ @java.lang.Override public boolean hasDirectReadAck() { return clientMessageCase_ == 8; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; * @return The directReadAck. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDirectReadAck() { if (directReadAckBuilder_ == null) { if (clientMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } else { if (clientMessageCase_ == 8) { return directReadAckBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ public Builder setDirectReadAck(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck value) { if (directReadAckBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { directReadAckBuilder_.setMessage(value); } clientMessageCase_ = 8; return this; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ public Builder setDirectReadAck( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder builderForValue) { if (directReadAckBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { directReadAckBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 8; return this; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ public Builder mergeDirectReadAck(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck value) { if (directReadAckBuilder_ == null) { if (clientMessageCase_ == 8 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 8) { directReadAckBuilder_.mergeFrom(value); } else { directReadAckBuilder_.setMessage(value); } } clientMessageCase_ = 8; return this; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ public Builder clearDirectReadAck() { if (directReadAckBuilder_ == null) { if (clientMessageCase_ == 8) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 8) { clientMessageCase_ = 0; clientMessage_ = null; } directReadAckBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder getDirectReadAckBuilder() { return getDirectReadAckFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder getDirectReadAckOrBuilder() { if ((clientMessageCase_ == 8) && (directReadAckBuilder_ != null)) { return directReadAckBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.DirectReadAck direct_read_ack = 8; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder> getDirectReadAckFieldBuilder() { if (directReadAckBuilder_ == null) { if (!(clientMessageCase_ == 8)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } directReadAckBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 8; onChanged(); return directReadAckBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder> startPartitionSessionResponseBuilder_; /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return Whether the startPartitionSessionResponse field is set. */ @java.lang.Override public boolean hasStartPartitionSessionResponse() { return clientMessageCase_ == 6; } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; * @return The startPartitionSessionResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getStartPartitionSessionResponse() { if (startPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } else { if (clientMessageCase_ == 6) { return startPartitionSessionResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ public Builder setStartPartitionSessionResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse value) { if (startPartitionSessionResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { startPartitionSessionResponseBuilder_.setMessage(value); } clientMessageCase_ = 6; return this; } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ public Builder setStartPartitionSessionResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder builderForValue) { if (startPartitionSessionResponseBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { startPartitionSessionResponseBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 6; return this; } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ public Builder mergeStartPartitionSessionResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse value) { if (startPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 6 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 6) { startPartitionSessionResponseBuilder_.mergeFrom(value); } else { startPartitionSessionResponseBuilder_.setMessage(value); } } clientMessageCase_ = 6; return this; } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ public Builder clearStartPartitionSessionResponse() { if (startPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 6) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 6) { clientMessageCase_ = 0; clientMessage_ = null; } startPartitionSessionResponseBuilder_.clear(); } return this; } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder getStartPartitionSessionResponseBuilder() { return getStartPartitionSessionResponseFieldBuilder().getBuilder(); } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder getStartPartitionSessionResponseOrBuilder() { if ((clientMessageCase_ == 6) && (startPartitionSessionResponseBuilder_ != null)) { return startPartitionSessionResponseBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } } /** *
         * Responses to respective server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse start_partition_session_response = 6; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder> getStartPartitionSessionResponseFieldBuilder() { if (startPartitionSessionResponseBuilder_ == null) { if (!(clientMessageCase_ == 6)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } startPartitionSessionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 6; onChanged(); return startPartitionSessionResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder> stopPartitionSessionResponseBuilder_; /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return Whether the stopPartitionSessionResponse field is set. */ @java.lang.Override public boolean hasStopPartitionSessionResponse() { return clientMessageCase_ == 7; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; * @return The stopPartitionSessionResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getStopPartitionSessionResponse() { if (stopPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } else { if (clientMessageCase_ == 7) { return stopPartitionSessionResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ public Builder setStopPartitionSessionResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse value) { if (stopPartitionSessionResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { stopPartitionSessionResponseBuilder_.setMessage(value); } clientMessageCase_ = 7; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ public Builder setStopPartitionSessionResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder builderForValue) { if (stopPartitionSessionResponseBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { stopPartitionSessionResponseBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 7; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ public Builder mergeStopPartitionSessionResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse value) { if (stopPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 7 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 7) { stopPartitionSessionResponseBuilder_.mergeFrom(value); } else { stopPartitionSessionResponseBuilder_.setMessage(value); } } clientMessageCase_ = 7; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ public Builder clearStopPartitionSessionResponse() { if (stopPartitionSessionResponseBuilder_ == null) { if (clientMessageCase_ == 7) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 7) { clientMessageCase_ = 0; clientMessage_ = null; } stopPartitionSessionResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder getStopPartitionSessionResponseBuilder() { return getStopPartitionSessionResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder getStopPartitionSessionResponseOrBuilder() { if ((clientMessageCase_ == 7) && (stopPartitionSessionResponseBuilder_ != null)) { return stopPartitionSessionResponseBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse stop_partition_session_response = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder> getStopPartitionSessionResponseFieldBuilder() { if (stopPartitionSessionResponseBuilder_ == null) { if (!(clientMessageCase_ == 7)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } stopPartitionSessionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 7; onChanged(); return stopPartitionSessionResponseBuilder_; } @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.Topic.StreamReadMessage.FromClient) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.FromClient) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromClient parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromClient getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromServerOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.FromServer) com.google.protobuf.MessageOrBuilder { /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ boolean hasInitResponse(); /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return The initResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getInitResponse(); /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder getInitResponseOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return Whether the readResponse field is set. */ boolean hasReadResponse(); /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return The readResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getReadResponse(); /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder getReadResponseOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return Whether the commitOffsetResponse field is set. */ boolean hasCommitOffsetResponse(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return The commitOffsetResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getCommitOffsetResponse(); /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder getCommitOffsetResponseOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return Whether the partitionSessionStatusResponse field is set. */ boolean hasPartitionSessionStatusResponse(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return The partitionSessionStatusResponse. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getPartitionSessionStatusResponse(); /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder getPartitionSessionStatusResponseOrBuilder(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return Whether the updateTokenResponse field is set. */ boolean hasUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return The updateTokenResponse. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder(); /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return Whether the startPartitionSessionRequest field is set. */ boolean hasStartPartitionSessionRequest(); /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return The startPartitionSessionRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getStartPartitionSessionRequest(); /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder getStartPartitionSessionRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return Whether the stopPartitionSessionRequest field is set. */ boolean hasStopPartitionSessionRequest(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return The stopPartitionSessionRequest. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getStopPartitionSessionRequest(); /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder getStopPartitionSessionRequestOrBuilder(); /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return Whether the updatePartitionSession field is set. */ boolean hasUpdatePartitionSession(); /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return The updatePartitionSession. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getUpdatePartitionSession(); /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder getUpdatePartitionSessionOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.ServerMessageCase getServerMessageCase(); } /** *
     * Server-client message for read session. Contains one of:
     *     InitResponse - handshake response from server.
     *     ReadResponse - portion of data.
     *     CommitOffsetResponse - acknowledgment for commit.
     *     PartitionSessionStatusResponse - server response with partition session status.
     *     UpdateTokenResponse - acknowledgment of token update.
     *
     *     StartPartitionSessionRequest - command from server to create a partition session.
     *     StopPartitionSessionRequest - command from server to destroy a partition session.
     *     UpdatePartitionSession - command from server to update a partition session.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.FromServer} */ public static final class FromServer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.FromServer) FromServerOrBuilder { private static final long serialVersionUID = 0L; // Use FromServer.newBuilder() to construct. private FromServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromServer() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromServer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.Builder.class); } private int serverMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object serverMessage_; public enum ServerMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INIT_RESPONSE(3), READ_RESPONSE(4), COMMIT_OFFSET_RESPONSE(5), PARTITION_SESSION_STATUS_RESPONSE(6), UPDATE_TOKEN_RESPONSE(7), START_PARTITION_SESSION_REQUEST(8), STOP_PARTITION_SESSION_REQUEST(9), UPDATE_PARTITION_SESSION(10), SERVERMESSAGE_NOT_SET(0); private final int value; private ServerMessageCase(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 ServerMessageCase valueOf(int value) { return forNumber(value); } public static ServerMessageCase forNumber(int value) { switch (value) { case 3: return INIT_RESPONSE; case 4: return READ_RESPONSE; case 5: return COMMIT_OFFSET_RESPONSE; case 6: return PARTITION_SESSION_STATUS_RESPONSE; case 7: return UPDATE_TOKEN_RESPONSE; case 8: return START_PARTITION_SESSION_REQUEST; case 9: return STOP_PARTITION_SESSION_REQUEST; case 10: return UPDATE_PARTITION_SESSION; case 0: return SERVERMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public static final int STATUS_FIELD_NUMBER = 1; private int status_ = 0; /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List issues_; /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int INIT_RESPONSE_FIELD_NUMBER = 3; /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ @java.lang.Override public boolean hasInitResponse() { return serverMessageCase_ == 3; } /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return The initResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getInitResponse() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } /** *
       * Responses to respective client requests.
       * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder getInitResponseOrBuilder() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } public static final int READ_RESPONSE_FIELD_NUMBER = 4; /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return Whether the readResponse field is set. */ @java.lang.Override public boolean hasReadResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return The readResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getReadResponse() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder getReadResponseOrBuilder() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } public static final int COMMIT_OFFSET_RESPONSE_FIELD_NUMBER = 5; /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return Whether the commitOffsetResponse field is set. */ @java.lang.Override public boolean hasCommitOffsetResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return The commitOffsetResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getCommitOffsetResponse() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder getCommitOffsetResponseOrBuilder() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } public static final int PARTITION_SESSION_STATUS_RESPONSE_FIELD_NUMBER = 6; /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return Whether the partitionSessionStatusResponse field is set. */ @java.lang.Override public boolean hasPartitionSessionStatusResponse() { return serverMessageCase_ == 6; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return The partitionSessionStatusResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getPartitionSessionStatusResponse() { if (serverMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder getPartitionSessionStatusResponseOrBuilder() { if (serverMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } public static final int UPDATE_TOKEN_RESPONSE_FIELD_NUMBER = 7; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 7; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (serverMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if (serverMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } public static final int START_PARTITION_SESSION_REQUEST_FIELD_NUMBER = 8; /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return Whether the startPartitionSessionRequest field is set. */ @java.lang.Override public boolean hasStartPartitionSessionRequest() { return serverMessageCase_ == 8; } /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return The startPartitionSessionRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getStartPartitionSessionRequest() { if (serverMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } /** *
       * Server commands.
       * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder getStartPartitionSessionRequestOrBuilder() { if (serverMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } public static final int STOP_PARTITION_SESSION_REQUEST_FIELD_NUMBER = 9; /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return Whether the stopPartitionSessionRequest field is set. */ @java.lang.Override public boolean hasStopPartitionSessionRequest() { return serverMessageCase_ == 9; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return The stopPartitionSessionRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getStopPartitionSessionRequest() { if (serverMessageCase_ == 9) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder getStopPartitionSessionRequestOrBuilder() { if (serverMessageCase_ == 9) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } public static final int UPDATE_PARTITION_SESSION_FIELD_NUMBER = 10; /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return Whether the updatePartitionSession field is set. */ @java.lang.Override public boolean hasUpdatePartitionSession() { return serverMessageCase_ == 10; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return The updatePartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getUpdatePartitionSession() { if (serverMessageCase_ == 10) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder getUpdatePartitionSessionOrBuilder() { if (serverMessageCase_ == 10) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.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 (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } if (serverMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_); } if (serverMessageCase_ == 4) { output.writeMessage(4, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_); } if (serverMessageCase_ == 5) { output.writeMessage(5, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_); } if (serverMessageCase_ == 6) { output.writeMessage(6, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_); } if (serverMessageCase_ == 7) { output.writeMessage(7, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } if (serverMessageCase_ == 8) { output.writeMessage(8, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_); } if (serverMessageCase_ == 9) { output.writeMessage(9, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_); } if (serverMessageCase_ == 10) { output.writeMessage(10, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } if (serverMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_); } if (serverMessageCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_); } if (serverMessageCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_); } if (serverMessageCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_); } if (serverMessageCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } if (serverMessageCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_); } if (serverMessageCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_); } if (serverMessageCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getServerMessageCase().equals(other.getServerMessageCase())) return false; switch (serverMessageCase_) { case 3: if (!getInitResponse() .equals(other.getInitResponse())) return false; break; case 4: if (!getReadResponse() .equals(other.getReadResponse())) return false; break; case 5: if (!getCommitOffsetResponse() .equals(other.getCommitOffsetResponse())) return false; break; case 6: if (!getPartitionSessionStatusResponse() .equals(other.getPartitionSessionStatusResponse())) return false; break; case 7: if (!getUpdateTokenResponse() .equals(other.getUpdateTokenResponse())) return false; break; case 8: if (!getStartPartitionSessionRequest() .equals(other.getStartPartitionSessionRequest())) return false; break; case 9: if (!getStopPartitionSessionRequest() .equals(other.getStopPartitionSessionRequest())) return false; break; case 10: if (!getUpdatePartitionSession() .equals(other.getUpdatePartitionSession())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } switch (serverMessageCase_) { case 3: hash = (37 * hash) + INIT_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getInitResponse().hashCode(); break; case 4: hash = (37 * hash) + READ_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getReadResponse().hashCode(); break; case 5: hash = (37 * hash) + COMMIT_OFFSET_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getCommitOffsetResponse().hashCode(); break; case 6: hash = (37 * hash) + PARTITION_SESSION_STATUS_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getPartitionSessionStatusResponse().hashCode(); break; case 7: hash = (37 * hash) + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenResponse().hashCode(); break; case 8: hash = (37 * hash) + START_PARTITION_SESSION_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getStartPartitionSessionRequest().hashCode(); break; case 9: hash = (37 * hash) + STOP_PARTITION_SESSION_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getStopPartitionSessionRequest().hashCode(); break; case 10: hash = (37 * hash) + UPDATE_PARTITION_SESSION_FIELD_NUMBER; hash = (53 * hash) + getUpdatePartitionSession().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer 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; } /** *
       * Server-client message for read session. Contains one of:
       *     InitResponse - handshake response from server.
       *     ReadResponse - portion of data.
       *     CommitOffsetResponse - acknowledgment for commit.
       *     PartitionSessionStatusResponse - server response with partition session status.
       *     UpdateTokenResponse - acknowledgment of token update.
       *
       *     StartPartitionSessionRequest - command from server to create a partition session.
       *     StopPartitionSessionRequest - command from server to destroy a partition session.
       *     UpdatePartitionSession - command from server to update a partition session.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.FromServer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.FromServer) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (initResponseBuilder_ != null) { initResponseBuilder_.clear(); } if (readResponseBuilder_ != null) { readResponseBuilder_.clear(); } if (commitOffsetResponseBuilder_ != null) { commitOffsetResponseBuilder_.clear(); } if (partitionSessionStatusResponseBuilder_ != null) { partitionSessionStatusResponseBuilder_.clear(); } if (updateTokenResponseBuilder_ != null) { updateTokenResponseBuilder_.clear(); } if (startPartitionSessionRequestBuilder_ != null) { startPartitionSessionRequestBuilder_.clear(); } if (stopPartitionSessionRequestBuilder_ != null) { stopPartitionSessionRequestBuilder_.clear(); } if (updatePartitionSessionBuilder_ != null) { updatePartitionSessionBuilder_.clear(); } serverMessageCase_ = 0; serverMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer result) { result.serverMessageCase_ = serverMessageCase_; result.serverMessage_ = this.serverMessage_; if (serverMessageCase_ == 3 && initResponseBuilder_ != null) { result.serverMessage_ = initResponseBuilder_.build(); } if (serverMessageCase_ == 4 && readResponseBuilder_ != null) { result.serverMessage_ = readResponseBuilder_.build(); } if (serverMessageCase_ == 5 && commitOffsetResponseBuilder_ != null) { result.serverMessage_ = commitOffsetResponseBuilder_.build(); } if (serverMessageCase_ == 6 && partitionSessionStatusResponseBuilder_ != null) { result.serverMessage_ = partitionSessionStatusResponseBuilder_.build(); } if (serverMessageCase_ == 7 && updateTokenResponseBuilder_ != null) { result.serverMessage_ = updateTokenResponseBuilder_.build(); } if (serverMessageCase_ == 8 && startPartitionSessionRequestBuilder_ != null) { result.serverMessage_ = startPartitionSessionRequestBuilder_.build(); } if (serverMessageCase_ == 9 && stopPartitionSessionRequestBuilder_ != null) { result.serverMessage_ = stopPartitionSessionRequestBuilder_.build(); } if (serverMessageCase_ == 10 && updatePartitionSessionBuilder_ != null) { result.serverMessage_ = updatePartitionSessionBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } switch (other.getServerMessageCase()) { case INIT_RESPONSE: { mergeInitResponse(other.getInitResponse()); break; } case READ_RESPONSE: { mergeReadResponse(other.getReadResponse()); break; } case COMMIT_OFFSET_RESPONSE: { mergeCommitOffsetResponse(other.getCommitOffsetResponse()); break; } case PARTITION_SESSION_STATUS_RESPONSE: { mergePartitionSessionStatusResponse(other.getPartitionSessionStatusResponse()); break; } case UPDATE_TOKEN_RESPONSE: { mergeUpdateTokenResponse(other.getUpdateTokenResponse()); break; } case START_PARTITION_SESSION_REQUEST: { mergeStartPartitionSessionRequest(other.getStartPartitionSessionRequest()); break; } case STOP_PARTITION_SESSION_REQUEST: { mergeStopPartitionSessionRequest(other.getStopPartitionSessionRequest()); break; } case UPDATE_PARTITION_SESSION: { mergeUpdatePartitionSession(other.getUpdatePartitionSession()); break; } case SERVERMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getInitResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 3; break; } // case 26 case 34: { input.readMessage( getReadResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 4; break; } // case 34 case 42: { input.readMessage( getCommitOffsetResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 5; break; } // case 42 case 50: { input.readMessage( getPartitionSessionStatusResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 6; break; } // case 50 case 58: { input.readMessage( getUpdateTokenResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 7; break; } // case 58 case 66: { input.readMessage( getStartPartitionSessionRequestFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 8; break; } // case 66 case 74: { input.readMessage( getStopPartitionSessionRequestFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 9; break; } // case 74 case 82: { input.readMessage( getUpdatePartitionSessionFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 10; break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int serverMessageCase_ = 0; private java.lang.Object serverMessage_; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public Builder clearServerMessage() { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); return this; } private int bitField0_; private int status_ = 0; /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder> initResponseBuilder_; /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return Whether the initResponse field is set. */ @java.lang.Override public boolean hasInitResponse() { return serverMessageCase_ == 3; } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; * @return The initResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getInitResponse() { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 3) { return initResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ public Builder setInitResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse value) { if (initResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { initResponseBuilder_.setMessage(value); } serverMessageCase_ = 3; return this; } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ public Builder setInitResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder builderForValue) { if (initResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { initResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 3; return this; } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ public Builder mergeInitResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse value) { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 3) { initResponseBuilder_.mergeFrom(value); } else { initResponseBuilder_.setMessage(value); } } serverMessageCase_ = 3; return this; } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ public Builder clearInitResponse() { if (initResponseBuilder_ == null) { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; } initResponseBuilder_.clear(); } return this; } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder getInitResponseBuilder() { return getInitResponseFieldBuilder().getBuilder(); } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder getInitResponseOrBuilder() { if ((serverMessageCase_ == 3) && (initResponseBuilder_ != null)) { return initResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } } /** *
         * Responses to respective client requests.
         * 
* * .Ydb.Topic.StreamReadMessage.InitResponse init_response = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder> getInitResponseFieldBuilder() { if (initResponseBuilder_ == null) { if (!(serverMessageCase_ == 3)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } initResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 3; onChanged(); return initResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder> readResponseBuilder_; /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return Whether the readResponse field is set. */ @java.lang.Override public boolean hasReadResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; * @return The readResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getReadResponse() { if (readResponseBuilder_ == null) { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 4) { return readResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ public Builder setReadResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse value) { if (readResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { readResponseBuilder_.setMessage(value); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ public Builder setReadResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder builderForValue) { if (readResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { readResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ public Builder mergeReadResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse value) { if (readResponseBuilder_ == null) { if (serverMessageCase_ == 4 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 4) { readResponseBuilder_.mergeFrom(value); } else { readResponseBuilder_.setMessage(value); } } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ public Builder clearReadResponse() { if (readResponseBuilder_ == null) { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; } readResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder getReadResponseBuilder() { return getReadResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder getReadResponseOrBuilder() { if ((serverMessageCase_ == 4) && (readResponseBuilder_ != null)) { return readResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.ReadResponse read_response = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder> getReadResponseFieldBuilder() { if (readResponseBuilder_ == null) { if (!(serverMessageCase_ == 4)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } readResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 4; onChanged(); return readResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder> commitOffsetResponseBuilder_; /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return Whether the commitOffsetResponse field is set. */ @java.lang.Override public boolean hasCommitOffsetResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; * @return The commitOffsetResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getCommitOffsetResponse() { if (commitOffsetResponseBuilder_ == null) { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 5) { return commitOffsetResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ public Builder setCommitOffsetResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse value) { if (commitOffsetResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { commitOffsetResponseBuilder_.setMessage(value); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ public Builder setCommitOffsetResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder builderForValue) { if (commitOffsetResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { commitOffsetResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ public Builder mergeCommitOffsetResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse value) { if (commitOffsetResponseBuilder_ == null) { if (serverMessageCase_ == 5 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 5) { commitOffsetResponseBuilder_.mergeFrom(value); } else { commitOffsetResponseBuilder_.setMessage(value); } } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ public Builder clearCommitOffsetResponse() { if (commitOffsetResponseBuilder_ == null) { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; } commitOffsetResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder getCommitOffsetResponseBuilder() { return getCommitOffsetResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder getCommitOffsetResponseOrBuilder() { if ((serverMessageCase_ == 5) && (commitOffsetResponseBuilder_ != null)) { return commitOffsetResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.CommitOffsetResponse commit_offset_response = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder> getCommitOffsetResponseFieldBuilder() { if (commitOffsetResponseBuilder_ == null) { if (!(serverMessageCase_ == 5)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } commitOffsetResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 5; onChanged(); return commitOffsetResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder> partitionSessionStatusResponseBuilder_; /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return Whether the partitionSessionStatusResponse field is set. */ @java.lang.Override public boolean hasPartitionSessionStatusResponse() { return serverMessageCase_ == 6; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; * @return The partitionSessionStatusResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getPartitionSessionStatusResponse() { if (partitionSessionStatusResponseBuilder_ == null) { if (serverMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 6) { return partitionSessionStatusResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ public Builder setPartitionSessionStatusResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse value) { if (partitionSessionStatusResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { partitionSessionStatusResponseBuilder_.setMessage(value); } serverMessageCase_ = 6; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ public Builder setPartitionSessionStatusResponse( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder builderForValue) { if (partitionSessionStatusResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { partitionSessionStatusResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 6; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ public Builder mergePartitionSessionStatusResponse(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse value) { if (partitionSessionStatusResponseBuilder_ == null) { if (serverMessageCase_ == 6 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 6) { partitionSessionStatusResponseBuilder_.mergeFrom(value); } else { partitionSessionStatusResponseBuilder_.setMessage(value); } } serverMessageCase_ = 6; return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ public Builder clearPartitionSessionStatusResponse() { if (partitionSessionStatusResponseBuilder_ == null) { if (serverMessageCase_ == 6) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 6) { serverMessageCase_ = 0; serverMessage_ = null; } partitionSessionStatusResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder getPartitionSessionStatusResponseBuilder() { return getPartitionSessionStatusResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder getPartitionSessionStatusResponseOrBuilder() { if ((serverMessageCase_ == 6) && (partitionSessionStatusResponseBuilder_ != null)) { return partitionSessionStatusResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 6) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse partition_session_status_response = 6; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder> getPartitionSessionStatusResponseFieldBuilder() { if (partitionSessionStatusResponseBuilder_ == null) { if (!(serverMessageCase_ == 6)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } partitionSessionStatusResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 6; onChanged(); return partitionSessionStatusResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> updateTokenResponseBuilder_; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 7; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 7) { return updateTokenResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ public Builder setUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { updateTokenResponseBuilder_.setMessage(value); } serverMessageCase_ = 7; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ public Builder setUpdateTokenResponse( tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder builderForValue) { if (updateTokenResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { updateTokenResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 7; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ public Builder mergeUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 7 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 7) { updateTokenResponseBuilder_.mergeFrom(value); } else { updateTokenResponseBuilder_.setMessage(value); } } serverMessageCase_ = 7; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ public Builder clearUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 7) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 7) { serverMessageCase_ = 0; serverMessage_ = null; } updateTokenResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder getUpdateTokenResponseBuilder() { return getUpdateTokenResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if ((serverMessageCase_ == 7) && (updateTokenResponseBuilder_ != null)) { return updateTokenResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 7) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> getUpdateTokenResponseFieldBuilder() { if (updateTokenResponseBuilder_ == null) { if (!(serverMessageCase_ == 7)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } updateTokenResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 7; onChanged(); return updateTokenResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder> startPartitionSessionRequestBuilder_; /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return Whether the startPartitionSessionRequest field is set. */ @java.lang.Override public boolean hasStartPartitionSessionRequest() { return serverMessageCase_ == 8; } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; * @return The startPartitionSessionRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getStartPartitionSessionRequest() { if (startPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } else { if (serverMessageCase_ == 8) { return startPartitionSessionRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ public Builder setStartPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest value) { if (startPartitionSessionRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { startPartitionSessionRequestBuilder_.setMessage(value); } serverMessageCase_ = 8; return this; } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ public Builder setStartPartitionSessionRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder builderForValue) { if (startPartitionSessionRequestBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { startPartitionSessionRequestBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 8; return this; } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ public Builder mergeStartPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest value) { if (startPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 8 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 8) { startPartitionSessionRequestBuilder_.mergeFrom(value); } else { startPartitionSessionRequestBuilder_.setMessage(value); } } serverMessageCase_ = 8; return this; } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ public Builder clearStartPartitionSessionRequest() { if (startPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 8) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 8) { serverMessageCase_ = 0; serverMessage_ = null; } startPartitionSessionRequestBuilder_.clear(); } return this; } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder getStartPartitionSessionRequestBuilder() { return getStartPartitionSessionRequestFieldBuilder().getBuilder(); } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder getStartPartitionSessionRequestOrBuilder() { if ((serverMessageCase_ == 8) && (startPartitionSessionRequestBuilder_ != null)) { return startPartitionSessionRequestBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 8) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } } /** *
         * Server commands.
         * 
* * .Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest start_partition_session_request = 8; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder> getStartPartitionSessionRequestFieldBuilder() { if (startPartitionSessionRequestBuilder_ == null) { if (!(serverMessageCase_ == 8)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } startPartitionSessionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 8; onChanged(); return startPartitionSessionRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder> stopPartitionSessionRequestBuilder_; /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return Whether the stopPartitionSessionRequest field is set. */ @java.lang.Override public boolean hasStopPartitionSessionRequest() { return serverMessageCase_ == 9; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; * @return The stopPartitionSessionRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getStopPartitionSessionRequest() { if (stopPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 9) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } else { if (serverMessageCase_ == 9) { return stopPartitionSessionRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ public Builder setStopPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest value) { if (stopPartitionSessionRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { stopPartitionSessionRequestBuilder_.setMessage(value); } serverMessageCase_ = 9; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ public Builder setStopPartitionSessionRequest( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder builderForValue) { if (stopPartitionSessionRequestBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { stopPartitionSessionRequestBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 9; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ public Builder mergeStopPartitionSessionRequest(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest value) { if (stopPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 9 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 9) { stopPartitionSessionRequestBuilder_.mergeFrom(value); } else { stopPartitionSessionRequestBuilder_.setMessage(value); } } serverMessageCase_ = 9; return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ public Builder clearStopPartitionSessionRequest() { if (stopPartitionSessionRequestBuilder_ == null) { if (serverMessageCase_ == 9) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 9) { serverMessageCase_ = 0; serverMessage_ = null; } stopPartitionSessionRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder getStopPartitionSessionRequestBuilder() { return getStopPartitionSessionRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder getStopPartitionSessionRequestOrBuilder() { if ((serverMessageCase_ == 9) && (stopPartitionSessionRequestBuilder_ != null)) { return stopPartitionSessionRequestBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 9) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest stop_partition_session_request = 9; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder> getStopPartitionSessionRequestFieldBuilder() { if (stopPartitionSessionRequestBuilder_ == null) { if (!(serverMessageCase_ == 9)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } stopPartitionSessionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 9; onChanged(); return stopPartitionSessionRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder> updatePartitionSessionBuilder_; /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return Whether the updatePartitionSession field is set. */ @java.lang.Override public boolean hasUpdatePartitionSession() { return serverMessageCase_ == 10; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; * @return The updatePartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getUpdatePartitionSession() { if (updatePartitionSessionBuilder_ == null) { if (serverMessageCase_ == 10) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } else { if (serverMessageCase_ == 10) { return updatePartitionSessionBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ public Builder setUpdatePartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession value) { if (updatePartitionSessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { updatePartitionSessionBuilder_.setMessage(value); } serverMessageCase_ = 10; return this; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ public Builder setUpdatePartitionSession( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder builderForValue) { if (updatePartitionSessionBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { updatePartitionSessionBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 10; return this; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ public Builder mergeUpdatePartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession value) { if (updatePartitionSessionBuilder_ == null) { if (serverMessageCase_ == 10 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 10) { updatePartitionSessionBuilder_.mergeFrom(value); } else { updatePartitionSessionBuilder_.setMessage(value); } } serverMessageCase_ = 10; return this; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ public Builder clearUpdatePartitionSession() { if (updatePartitionSessionBuilder_ == null) { if (serverMessageCase_ == 10) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 10) { serverMessageCase_ = 0; serverMessage_ = null; } updatePartitionSessionBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder getUpdatePartitionSessionBuilder() { return getUpdatePartitionSessionFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder getUpdatePartitionSessionOrBuilder() { if ((serverMessageCase_ == 10) && (updatePartitionSessionBuilder_ != null)) { return updatePartitionSessionBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 10) { return (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamReadMessage.UpdatePartitionSession update_partition_session = 10; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder> getUpdatePartitionSessionFieldBuilder() { if (updatePartitionSessionBuilder_ == null) { if (!(serverMessageCase_ == 10)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } updatePartitionSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 10; onChanged(); return updatePartitionSessionBuilder_; } @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.Topic.StreamReadMessage.FromServer) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.FromServer) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromServer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.FromServer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.InitRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ java.util.List getTopicsReadSettingsList(); /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getTopicsReadSettings(int index); /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ int getTopicsReadSettingsCount(); /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ java.util.List getTopicsReadSettingsOrBuilderList(); /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index); /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 2; * @return The consumer. */ java.lang.String getConsumer(); /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 2; * @return The bytes for consumer. */ com.google.protobuf.ByteString getConsumerBytes(); /** *
       * Optional name. Will be shown in debug stat.
       * 
* * string reader_name = 3; * @return The readerName. */ java.lang.String getReaderName(); /** *
       * Optional name. Will be shown in debug stat.
       * 
* * string reader_name = 3; * @return The bytes for readerName. */ com.google.protobuf.ByteString getReaderNameBytes(); /** *
       * Direct reading from a partition node.
       * 
* * bool direct_read = 4; * @return The directRead. */ boolean getDirectRead(); } /** *
     * Handshake request.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.InitRequest} */ public static final class InitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.InitRequest) InitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use InitRequest.newBuilder() to construct. private InitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitRequest() { topicsReadSettings_ = java.util.Collections.emptyList(); consumer_ = ""; readerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InitRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder.class); } public interface TopicReadSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings) com.google.protobuf.MessageOrBuilder { /** *
         * Topic path.
         * 
* * string path = 1; * @return The path. */ java.lang.String getPath(); /** *
         * Topic path.
         * 
* * string path = 1; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @return A list containing the partitionIds. */ java.util.List getPartitionIdsList(); /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @return The count of partitionIds. */ int getPartitionIdsCount(); /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @param index The index of the element to return. * @return The partitionIds at the given index. */ long getPartitionIds(int index); /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; * @return Whether the maxLag field is set. */ boolean hasMaxLag(); /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; * @return The maxLag. */ com.google.protobuf.Duration getMaxLag(); /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; */ com.google.protobuf.DurationOrBuilder getMaxLagOrBuilder(); /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; * @return Whether the readFrom field is set. */ boolean hasReadFrom(); /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; * @return The readFrom. */ com.google.protobuf.Timestamp getReadFrom(); /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; */ com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder(); } /** * Protobuf type {@code Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings} */ public static final class TopicReadSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings) TopicReadSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use TopicReadSettings.newBuilder() to construct. private TopicReadSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicReadSettings() { path_ = ""; partitionIds_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicReadSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
         * Topic path.
         * 
* * string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
         * Topic path.
         * 
* * string path = 1; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_IDS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList partitionIds_ = emptyLongList(); /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @return A list containing the partitionIds. */ @java.lang.Override public java.util.List getPartitionIdsList() { return partitionIds_; } /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @return The count of partitionIds. */ public int getPartitionIdsCount() { return partitionIds_.size(); } /** *
         * Partitions that will be read by this session.
         * If list is empty - then session will read all partitions.
         * 
* * repeated int64 partition_ids = 2; * @param index The index of the element to return. * @return The partitionIds at the given index. */ public long getPartitionIds(int index) { return partitionIds_.getLong(index); } private int partitionIdsMemoizedSerializedSize = -1; public static final int MAX_LAG_FIELD_NUMBER = 3; private com.google.protobuf.Duration maxLag_; /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; * @return Whether the maxLag field is set. */ @java.lang.Override public boolean hasMaxLag() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; * @return The maxLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxLag() { return maxLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxLag_; } /** *
         * Skip all messages that has write timestamp smaller than now - max_lag.
         * Zero means infinite lag.
         * 
* * .google.protobuf.Duration max_lag = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxLagOrBuilder() { return maxLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxLag_; } public static final int READ_FROM_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp readFrom_; /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; * @return Whether the readFrom field is set. */ @java.lang.Override public boolean hasReadFrom() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; * @return The readFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getReadFrom() { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } /** *
         * Read data only after this timestamp from this topic.
         * Read only messages with 'written_at' value greater or equal than this timestamp.
         * 
* * .google.protobuf.Timestamp read_from = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder() { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (getPartitionIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(partitionIdsMemoizedSerializedSize); } for (int i = 0; i < partitionIds_.size(); i++) { output.writeInt64NoTag(partitionIds_.getLong(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMaxLag()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getReadFrom()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } { int dataSize = 0; for (int i = 0; i < partitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(partitionIds_.getLong(i)); } size += dataSize; if (!getPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } partitionIdsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxLag()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getReadFrom()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings) obj; if (!getPath() .equals(other.getPath())) return false; if (!getPartitionIdsList() .equals(other.getPartitionIdsList())) return false; if (hasMaxLag() != other.hasMaxLag()) return false; if (hasMaxLag()) { if (!getMaxLag() .equals(other.getMaxLag())) return false; } if (hasReadFrom() != other.hasReadFrom()) return false; if (hasReadFrom()) { if (!getReadFrom() .equals(other.getReadFrom())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (getPartitionIdsCount() > 0) { hash = (37 * hash) + PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getPartitionIdsList().hashCode(); } if (hasMaxLag()) { hash = (37 * hash) + MAX_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxLag().hashCode(); } if (hasReadFrom()) { hash = (37 * hash) + READ_FROM_FIELD_NUMBER; hash = (53 * hash) + getReadFrom().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings 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.Topic.StreamReadMessage.InitRequest.TopicReadSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMaxLagFieldBuilder(); getReadFromFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; path_ = ""; partitionIds_ = emptyLongList(); maxLag_ = null; if (maxLagBuilder_ != null) { maxLagBuilder_.dispose(); maxLagBuilder_ = null; } readFrom_ = null; if (readFromBuilder_ != null) { readFromBuilder_.dispose(); readFromBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000002) != 0)) { partitionIds_.makeImmutable(); result.partitionIds_ = partitionIds_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.maxLag_ = maxLagBuilder_ == null ? maxLag_ : maxLagBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.readFrom_ = readFromBuilder_ == null ? readFrom_ : readFromBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; onChanged(); } if (!other.partitionIds_.isEmpty()) { if (partitionIds_.isEmpty()) { partitionIds_ = other.partitionIds_; partitionIds_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensurePartitionIdsIsMutable(); partitionIds_.addAll(other.partitionIds_); } onChanged(); } if (other.hasMaxLag()) { mergeMaxLag(other.getMaxLag()); } if (other.hasReadFrom()) { mergeReadFrom(other.getReadFrom()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { long v = input.readInt64(); ensurePartitionIdsIsMutable(); partitionIds_.addLong(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensurePartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { partitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 18 case 26: { input.readMessage( getMaxLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getReadFromFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
           * Topic path.
           * 
* * string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
           * Topic path.
           * 
* * string path = 1; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Topic path.
           * 
* * string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Topic path.
           * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
           * Topic path.
           * 
* * string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Internal.LongList partitionIds_ = emptyLongList(); private void ensurePartitionIdsIsMutable() { if (!partitionIds_.isModifiable()) { partitionIds_ = makeMutableCopy(partitionIds_); } bitField0_ |= 0x00000002; } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @return A list containing the partitionIds. */ public java.util.List getPartitionIdsList() { partitionIds_.makeImmutable(); return partitionIds_; } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @return The count of partitionIds. */ public int getPartitionIdsCount() { return partitionIds_.size(); } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @param index The index of the element to return. * @return The partitionIds at the given index. */ public long getPartitionIds(int index) { return partitionIds_.getLong(index); } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @param index The index to set the value at. * @param value The partitionIds to set. * @return This builder for chaining. */ public Builder setPartitionIds( int index, long value) { ensurePartitionIdsIsMutable(); partitionIds_.setLong(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @param value The partitionIds to add. * @return This builder for chaining. */ public Builder addPartitionIds(long value) { ensurePartitionIdsIsMutable(); partitionIds_.addLong(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @param values The partitionIds to add. * @return This builder for chaining. */ public Builder addAllPartitionIds( java.lang.Iterable values) { ensurePartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Partitions that will be read by this session.
           * If list is empty - then session will read all partitions.
           * 
* * repeated int64 partition_ids = 2; * @return This builder for chaining. */ public Builder clearPartitionIds() { partitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Duration maxLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxLagBuilder_; /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; * @return Whether the maxLag field is set. */ public boolean hasMaxLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; * @return The maxLag. */ public com.google.protobuf.Duration getMaxLag() { if (maxLagBuilder_ == null) { return maxLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxLag_; } else { return maxLagBuilder_.getMessage(); } } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public Builder setMaxLag(com.google.protobuf.Duration value) { if (maxLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxLag_ = value; } else { maxLagBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public Builder setMaxLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxLagBuilder_ == null) { maxLag_ = builderForValue.build(); } else { maxLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public Builder mergeMaxLag(com.google.protobuf.Duration value) { if (maxLagBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maxLag_ != null && maxLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxLagBuilder().mergeFrom(value); } else { maxLag_ = value; } } else { maxLagBuilder_.mergeFrom(value); } if (maxLag_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public Builder clearMaxLag() { bitField0_ = (bitField0_ & ~0x00000004); maxLag_ = null; if (maxLagBuilder_ != null) { maxLagBuilder_.dispose(); maxLagBuilder_ = null; } onChanged(); return this; } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public com.google.protobuf.Duration.Builder getMaxLagBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxLagFieldBuilder().getBuilder(); } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ public com.google.protobuf.DurationOrBuilder getMaxLagOrBuilder() { if (maxLagBuilder_ != null) { return maxLagBuilder_.getMessageOrBuilder(); } else { return maxLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxLag_; } } /** *
           * Skip all messages that has write timestamp smaller than now - max_lag.
           * Zero means infinite lag.
           * 
* * .google.protobuf.Duration max_lag = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxLagFieldBuilder() { if (maxLagBuilder_ == null) { maxLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxLag(), getParentForChildren(), isClean()); maxLag_ = null; } return maxLagBuilder_; } private com.google.protobuf.Timestamp readFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readFromBuilder_; /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; * @return Whether the readFrom field is set. */ public boolean hasReadFrom() { return ((bitField0_ & 0x00000008) != 0); } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; * @return The readFrom. */ public com.google.protobuf.Timestamp getReadFrom() { if (readFromBuilder_ == null) { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } else { return readFromBuilder_.getMessage(); } } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public Builder setReadFrom(com.google.protobuf.Timestamp value) { if (readFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readFrom_ = value; } else { readFromBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public Builder setReadFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (readFromBuilder_ == null) { readFrom_ = builderForValue.build(); } else { readFromBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public Builder mergeReadFrom(com.google.protobuf.Timestamp value) { if (readFromBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && readFrom_ != null && readFrom_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getReadFromBuilder().mergeFrom(value); } else { readFrom_ = value; } } else { readFromBuilder_.mergeFrom(value); } if (readFrom_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public Builder clearReadFrom() { bitField0_ = (bitField0_ & ~0x00000008); readFrom_ = null; if (readFromBuilder_ != null) { readFromBuilder_.dispose(); readFromBuilder_ = null; } onChanged(); return this; } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public com.google.protobuf.Timestamp.Builder getReadFromBuilder() { bitField0_ |= 0x00000008; onChanged(); return getReadFromFieldBuilder().getBuilder(); } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ public com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder() { if (readFromBuilder_ != null) { return readFromBuilder_.getMessageOrBuilder(); } else { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } } /** *
           * Read data only after this timestamp from this topic.
           * Read only messages with 'written_at' value greater or equal than this timestamp.
           * 
* * .google.protobuf.Timestamp read_from = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadFromFieldBuilder() { if (readFromBuilder_ == null) { readFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getReadFrom(), getParentForChildren(), isClean()); readFrom_ = null; } return readFromBuilder_; } @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.Topic.StreamReadMessage.InitRequest.TopicReadSettings) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicReadSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TOPICS_READ_SETTINGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List topicsReadSettings_; /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ @java.lang.Override public java.util.List getTopicsReadSettingsList() { return topicsReadSettings_; } /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ @java.lang.Override public java.util.List getTopicsReadSettingsOrBuilderList() { return topicsReadSettings_; } /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ @java.lang.Override public int getTopicsReadSettingsCount() { return topicsReadSettings_.size(); } /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getTopicsReadSettings(int index) { return topicsReadSettings_.get(index); } /** *
       * Message that describes topic to read.
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index) { return topicsReadSettings_.get(index); } public static final int CONSUMER_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object consumer_ = ""; /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 2; * @return The consumer. */ @java.lang.Override public java.lang.String getConsumer() { java.lang.Object ref = consumer_; 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(); consumer_ = s; return s; } } /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 2; * @return The bytes for consumer. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READER_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object readerName_ = ""; /** *
       * Optional name. Will be shown in debug stat.
       * 
* * string reader_name = 3; * @return The readerName. */ @java.lang.Override public java.lang.String getReaderName() { java.lang.Object ref = readerName_; 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(); readerName_ = s; return s; } } /** *
       * Optional name. Will be shown in debug stat.
       * 
* * string reader_name = 3; * @return The bytes for readerName. */ @java.lang.Override public com.google.protobuf.ByteString getReaderNameBytes() { java.lang.Object ref = readerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECT_READ_FIELD_NUMBER = 4; private boolean directRead_ = false; /** *
       * Direct reading from a partition node.
       * 
* * bool direct_read = 4; * @return The directRead. */ @java.lang.Override public boolean getDirectRead() { return directRead_; } 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 < topicsReadSettings_.size(); i++) { output.writeMessage(1, topicsReadSettings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, readerName_); } if (directRead_ != false) { output.writeBool(4, directRead_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < topicsReadSettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, topicsReadSettings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consumer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readerName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, readerName_); } if (directRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, directRead_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) obj; if (!getTopicsReadSettingsList() .equals(other.getTopicsReadSettingsList())) return false; if (!getConsumer() .equals(other.getConsumer())) return false; if (!getReaderName() .equals(other.getReaderName())) return false; if (getDirectRead() != other.getDirectRead()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTopicsReadSettingsCount() > 0) { hash = (37 * hash) + TOPICS_READ_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getTopicsReadSettingsList().hashCode(); } hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); hash = (37 * hash) + READER_NAME_FIELD_NUMBER; hash = (53 * hash) + getReaderName().hashCode(); hash = (37 * hash) + DIRECT_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDirectRead()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest 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; } /** *
       * Handshake request.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.InitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.InitRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (topicsReadSettingsBuilder_ == null) { topicsReadSettings_ = java.util.Collections.emptyList(); } else { topicsReadSettings_ = null; topicsReadSettingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); consumer_ = ""; readerName_ = ""; directRead_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest result) { if (topicsReadSettingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topicsReadSettings_ = java.util.Collections.unmodifiableList(topicsReadSettings_); bitField0_ = (bitField0_ & ~0x00000001); } result.topicsReadSettings_ = topicsReadSettings_; } else { result.topicsReadSettings_ = topicsReadSettingsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.consumer_ = consumer_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.readerName_ = readerName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.directRead_ = directRead_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.getDefaultInstance()) return this; if (topicsReadSettingsBuilder_ == null) { if (!other.topicsReadSettings_.isEmpty()) { if (topicsReadSettings_.isEmpty()) { topicsReadSettings_ = other.topicsReadSettings_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.addAll(other.topicsReadSettings_); } onChanged(); } } else { if (!other.topicsReadSettings_.isEmpty()) { if (topicsReadSettingsBuilder_.isEmpty()) { topicsReadSettingsBuilder_.dispose(); topicsReadSettingsBuilder_ = null; topicsReadSettings_ = other.topicsReadSettings_; bitField0_ = (bitField0_ & ~0x00000001); topicsReadSettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopicsReadSettingsFieldBuilder() : null; } else { topicsReadSettingsBuilder_.addAllMessages(other.topicsReadSettings_); } } } if (!other.getConsumer().isEmpty()) { consumer_ = other.consumer_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getReaderName().isEmpty()) { readerName_ = other.readerName_; bitField0_ |= 0x00000004; onChanged(); } if (other.getDirectRead() != false) { setDirectRead(other.getDirectRead()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.parser(), extensionRegistry); if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(m); } else { topicsReadSettingsBuilder_.addMessage(m); } break; } // case 10 case 18: { consumer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { readerName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { directRead_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List topicsReadSettings_ = java.util.Collections.emptyList(); private void ensureTopicsReadSettingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topicsReadSettings_ = new java.util.ArrayList(topicsReadSettings_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder> topicsReadSettingsBuilder_; /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public java.util.List getTopicsReadSettingsList() { if (topicsReadSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(topicsReadSettings_); } else { return topicsReadSettingsBuilder_.getMessageList(); } } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public int getTopicsReadSettingsCount() { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.size(); } else { return topicsReadSettingsBuilder_.getCount(); } } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings getTopicsReadSettings(int index) { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.get(index); } else { return topicsReadSettingsBuilder_.getMessage(index); } } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder setTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.set(index, value); onChanged(); } else { topicsReadSettingsBuilder_.setMessage(index, value); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder setTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.set(index, builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder addTopicsReadSettings(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(value); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(value); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder addTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(index, value); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(index, value); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder addTopicsReadSettings( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder addTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(index, builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder addAllTopicsReadSettings( java.lang.Iterable values) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topicsReadSettings_); onChanged(); } else { topicsReadSettingsBuilder_.addAllMessages(values); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder clearTopicsReadSettings() { if (topicsReadSettingsBuilder_ == null) { topicsReadSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { topicsReadSettingsBuilder_.clear(); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public Builder removeTopicsReadSettings(int index) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.remove(index); onChanged(); } else { topicsReadSettingsBuilder_.remove(index); } return this; } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder getTopicsReadSettingsBuilder( int index) { return getTopicsReadSettingsFieldBuilder().getBuilder(index); } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index) { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.get(index); } else { return topicsReadSettingsBuilder_.getMessageOrBuilder(index); } } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public java.util.List getTopicsReadSettingsOrBuilderList() { if (topicsReadSettingsBuilder_ != null) { return topicsReadSettingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topicsReadSettings_); } } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder addTopicsReadSettingsBuilder() { return getTopicsReadSettingsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.getDefaultInstance()); } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder addTopicsReadSettingsBuilder( int index) { return getTopicsReadSettingsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.getDefaultInstance()); } /** *
         * Message that describes topic to read.
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.InitRequest.TopicReadSettings topics_read_settings = 1; */ public java.util.List getTopicsReadSettingsBuilderList() { return getTopicsReadSettingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder> getTopicsReadSettingsFieldBuilder() { if (topicsReadSettingsBuilder_ == null) { topicsReadSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest.TopicReadSettingsOrBuilder>( topicsReadSettings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); topicsReadSettings_ = null; } return topicsReadSettingsBuilder_; } private java.lang.Object consumer_ = ""; /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 2; * @return The consumer. */ public java.lang.String getConsumer() { java.lang.Object ref = consumer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 2; * @return The bytes for consumer. */ public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 2; * @param value The consumer to set. * @return This builder for chaining. */ public Builder setConsumer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 2; * @return This builder for chaining. */ public Builder clearConsumer() { consumer_ = getDefaultInstance().getConsumer(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 2; * @param value The bytes for consumer to set. * @return This builder for chaining. */ public Builder setConsumerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object readerName_ = ""; /** *
         * Optional name. Will be shown in debug stat.
         * 
* * string reader_name = 3; * @return The readerName. */ public java.lang.String getReaderName() { java.lang.Object ref = readerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Optional name. Will be shown in debug stat.
         * 
* * string reader_name = 3; * @return The bytes for readerName. */ public com.google.protobuf.ByteString getReaderNameBytes() { java.lang.Object ref = readerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Optional name. Will be shown in debug stat.
         * 
* * string reader_name = 3; * @param value The readerName to set. * @return This builder for chaining. */ public Builder setReaderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } readerName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Optional name. Will be shown in debug stat.
         * 
* * string reader_name = 3; * @return This builder for chaining. */ public Builder clearReaderName() { readerName_ = getDefaultInstance().getReaderName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
         * Optional name. Will be shown in debug stat.
         * 
* * string reader_name = 3; * @param value The bytes for readerName to set. * @return This builder for chaining. */ public Builder setReaderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readerName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private boolean directRead_ ; /** *
         * Direct reading from a partition node.
         * 
* * bool direct_read = 4; * @return The directRead. */ @java.lang.Override public boolean getDirectRead() { return directRead_; } /** *
         * Direct reading from a partition node.
         * 
* * bool direct_read = 4; * @param value The directRead to set. * @return This builder for chaining. */ public Builder setDirectRead(boolean value) { directRead_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Direct reading from a partition node.
         * 
* * bool direct_read = 4; * @return This builder for chaining. */ public Builder clearDirectRead() { bitField0_ = (bitField0_ & ~0x00000008); directRead_ = 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.Topic.StreamReadMessage.InitRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.InitRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.InitResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The sessionId. */ java.lang.String getSessionId(); /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The bytes for sessionId. */ com.google.protobuf.ByteString getSessionIdBytes(); } /** *
     * Handshake response.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.InitResponse} */ public static final class InitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.InitResponse) InitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use InitResponse.newBuilder() to construct. private InitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitResponse() { sessionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InitResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder.class); } public static final int SESSION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; 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(); sessionId_ = s; return s; } } /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = 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(sessionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) obj; if (!getSessionId() .equals(other.getSessionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse 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; } /** *
       * Handshake response.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.InitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.InitResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sessionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sessionId_ = sessionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse.getDefaultInstance()) return this; if (!other.getSessionId().isEmpty()) { sessionId_ = other.sessionId_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sessionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sessionId_ = ""; /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return The bytes for sessionId. */ public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @param value The bytes for sessionId to set. * @return This builder for chaining. */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000001; 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.Topic.StreamReadMessage.InitResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.InitResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.InitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.ReadRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Server and client each keep track of total bytes size of all ReadResponses.
       * When client is ready to receive N more bytes in responses (to increment possible total by N),
       * it sends a ReadRequest with bytes_size = N.
       * bytes_size value must be positive.
       * So in expression 'A = (sum of bytes_size in all ReadRequests) - (sum of bytes_size in all ReadResponses)'
       *   server will keep A (available size for responses) non-negative.
       * But there is an exception. If server receives ReadRequest, and the first message in response exceeds A -
       * then it will still be delivered, and A will become negative until enough additional ReadRequests.
       *
       * Example:
       * 1) Let client have 200 bytes buffer. It sends ReadRequest with bytes_size = 200;
       * 2) Server may return one ReadResponse with bytes_size = 70 and than another 80 bytes response;
       *    now client buffer has 50 free bytes, server is free to send up to 50 bytes in responses.
       * 3) Client processes 100 bytes from buffer, now buffer free space is 150 bytes,
       *    so client sends ReadRequest with bytes_size = 100;
       * 4) Server is free to send up to 50 + 100 = 150 bytes. But the next read message is too big,
       *    and it sends 160 bytes ReadResponse.
       * 5) Let's assume client somehow processes it, and its 200 bytes buffer is free again.
       *    It should account for excess 10 bytes and send ReadRequest with bytes_size = 210.
       * 
* * int64 bytes_size = 1; * @return The bytesSize. */ long getBytesSize(); } /** *
     * Message that represents client readiness for receiving more data.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadRequest} */ public static final class ReadRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.ReadRequest) ReadRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadRequest.newBuilder() to construct. private ReadRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder.class); } public static final int BYTES_SIZE_FIELD_NUMBER = 1; private long bytesSize_ = 0L; /** *
       * Server and client each keep track of total bytes size of all ReadResponses.
       * When client is ready to receive N more bytes in responses (to increment possible total by N),
       * it sends a ReadRequest with bytes_size = N.
       * bytes_size value must be positive.
       * So in expression 'A = (sum of bytes_size in all ReadRequests) - (sum of bytes_size in all ReadResponses)'
       *   server will keep A (available size for responses) non-negative.
       * But there is an exception. If server receives ReadRequest, and the first message in response exceeds A -
       * then it will still be delivered, and A will become negative until enough additional ReadRequests.
       *
       * Example:
       * 1) Let client have 200 bytes buffer. It sends ReadRequest with bytes_size = 200;
       * 2) Server may return one ReadResponse with bytes_size = 70 and than another 80 bytes response;
       *    now client buffer has 50 free bytes, server is free to send up to 50 bytes in responses.
       * 3) Client processes 100 bytes from buffer, now buffer free space is 150 bytes,
       *    so client sends ReadRequest with bytes_size = 100;
       * 4) Server is free to send up to 50 + 100 = 150 bytes. But the next read message is too big,
       *    and it sends 160 bytes ReadResponse.
       * 5) Let's assume client somehow processes it, and its 200 bytes buffer is free again.
       *    It should account for excess 10 bytes and send ReadRequest with bytes_size = 210.
       * 
* * int64 bytes_size = 1; * @return The bytesSize. */ @java.lang.Override public long getBytesSize() { return bytesSize_; } 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 (bytesSize_ != 0L) { output.writeInt64(1, bytesSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (bytesSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, bytesSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) obj; if (getBytesSize() != other.getBytesSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BYTES_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesSize()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest 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; } /** *
       * Message that represents client readiness for receiving more data.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.ReadRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bytesSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.bytesSize_ = bytesSize_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest.getDefaultInstance()) return this; if (other.getBytesSize() != 0L) { setBytesSize(other.getBytesSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { bytesSize_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long bytesSize_ ; /** *
         * Server and client each keep track of total bytes size of all ReadResponses.
         * When client is ready to receive N more bytes in responses (to increment possible total by N),
         * it sends a ReadRequest with bytes_size = N.
         * bytes_size value must be positive.
         * So in expression 'A = (sum of bytes_size in all ReadRequests) - (sum of bytes_size in all ReadResponses)'
         *   server will keep A (available size for responses) non-negative.
         * But there is an exception. If server receives ReadRequest, and the first message in response exceeds A -
         * then it will still be delivered, and A will become negative until enough additional ReadRequests.
         *
         * Example:
         * 1) Let client have 200 bytes buffer. It sends ReadRequest with bytes_size = 200;
         * 2) Server may return one ReadResponse with bytes_size = 70 and than another 80 bytes response;
         *    now client buffer has 50 free bytes, server is free to send up to 50 bytes in responses.
         * 3) Client processes 100 bytes from buffer, now buffer free space is 150 bytes,
         *    so client sends ReadRequest with bytes_size = 100;
         * 4) Server is free to send up to 50 + 100 = 150 bytes. But the next read message is too big,
         *    and it sends 160 bytes ReadResponse.
         * 5) Let's assume client somehow processes it, and its 200 bytes buffer is free again.
         *    It should account for excess 10 bytes and send ReadRequest with bytes_size = 210.
         * 
* * int64 bytes_size = 1; * @return The bytesSize. */ @java.lang.Override public long getBytesSize() { return bytesSize_; } /** *
         * Server and client each keep track of total bytes size of all ReadResponses.
         * When client is ready to receive N more bytes in responses (to increment possible total by N),
         * it sends a ReadRequest with bytes_size = N.
         * bytes_size value must be positive.
         * So in expression 'A = (sum of bytes_size in all ReadRequests) - (sum of bytes_size in all ReadResponses)'
         *   server will keep A (available size for responses) non-negative.
         * But there is an exception. If server receives ReadRequest, and the first message in response exceeds A -
         * then it will still be delivered, and A will become negative until enough additional ReadRequests.
         *
         * Example:
         * 1) Let client have 200 bytes buffer. It sends ReadRequest with bytes_size = 200;
         * 2) Server may return one ReadResponse with bytes_size = 70 and than another 80 bytes response;
         *    now client buffer has 50 free bytes, server is free to send up to 50 bytes in responses.
         * 3) Client processes 100 bytes from buffer, now buffer free space is 150 bytes,
         *    so client sends ReadRequest with bytes_size = 100;
         * 4) Server is free to send up to 50 + 100 = 150 bytes. But the next read message is too big,
         *    and it sends 160 bytes ReadResponse.
         * 5) Let's assume client somehow processes it, and its 200 bytes buffer is free again.
         *    It should account for excess 10 bytes and send ReadRequest with bytes_size = 210.
         * 
* * int64 bytes_size = 1; * @param value The bytesSize to set. * @return This builder for chaining. */ public Builder setBytesSize(long value) { bytesSize_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Server and client each keep track of total bytes size of all ReadResponses.
         * When client is ready to receive N more bytes in responses (to increment possible total by N),
         * it sends a ReadRequest with bytes_size = N.
         * bytes_size value must be positive.
         * So in expression 'A = (sum of bytes_size in all ReadRequests) - (sum of bytes_size in all ReadResponses)'
         *   server will keep A (available size for responses) non-negative.
         * But there is an exception. If server receives ReadRequest, and the first message in response exceeds A -
         * then it will still be delivered, and A will become negative until enough additional ReadRequests.
         *
         * Example:
         * 1) Let client have 200 bytes buffer. It sends ReadRequest with bytes_size = 200;
         * 2) Server may return one ReadResponse with bytes_size = 70 and than another 80 bytes response;
         *    now client buffer has 50 free bytes, server is free to send up to 50 bytes in responses.
         * 3) Client processes 100 bytes from buffer, now buffer free space is 150 bytes,
         *    so client sends ReadRequest with bytes_size = 100;
         * 4) Server is free to send up to 50 + 100 = 150 bytes. But the next read message is too big,
         *    and it sends 160 bytes ReadResponse.
         * 5) Let's assume client somehow processes it, and its 200 bytes buffer is free again.
         *    It should account for excess 10 bytes and send ReadRequest with bytes_size = 210.
         * 
* * int64 bytes_size = 1; * @return This builder for chaining. */ public Builder clearBytesSize() { bitField0_ = (bitField0_ & ~0x00000001); bytesSize_ = 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.Topic.StreamReadMessage.ReadRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.ReadRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.ReadResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ java.util.List getPartitionDataList(); /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData(int index); /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ int getPartitionDataCount(); /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ java.util.List getPartitionDataOrBuilderList(); /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder( int index); /** *
       * Total size in bytes of this response as calculated by server.
       * See ReadRequest comment above.
       * 
* * int64 bytes_size = 2; * @return The bytesSize. */ long getBytesSize(); } /** *
     * Data read.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse} */ public static final class ReadResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.ReadResponse) ReadResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadResponse.newBuilder() to construct. private ReadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadResponse() { partitionData_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReadResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder.class); } public interface MessageDataOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.ReadResponse.MessageData) com.google.protobuf.MessageOrBuilder { /** *
         * Partition offset in partition that assigned for message.
         * 
* * int64 offset = 1; * @return The offset. */ long getOffset(); /** *
         * Sequence number that provided with message on write from client.
         * 
* * int64 seq_no = 2; * @return The seqNo. */ long getSeqNo(); /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
         * Compressed client message body.
         * 
* * bytes data = 5; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
         * Uncompressed size of client message body.
         * sent as is from WriteRequest, without check on server side. May be empty (for writes from old client) or wrong (if bug in writer).
         * Use it for optimization purposes only, don't trust it.
         * 
* * int64 uncompressed_size = 6; * @return The uncompressedSize. */ long getUncompressedSize(); /** *
         * Filled if message_group_id was set on message write.
         * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The messageGroupId. */ java.lang.String getMessageGroupId(); /** *
         * Filled if message_group_id was set on message write.
         * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ com.google.protobuf.ByteString getMessageGroupIdBytes(); /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ java.util.List getMetadataItemsList(); /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index); /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ int getMetadataItemsCount(); /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ java.util.List getMetadataItemsOrBuilderList(); /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index); } /** *
       * One client message representation.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.MessageData} */ public static final class MessageData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.ReadResponse.MessageData) MessageDataOrBuilder { private static final long serialVersionUID = 0L; // Use MessageData.newBuilder() to construct. private MessageData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageData() { data_ = com.google.protobuf.ByteString.EMPTY; messageGroupId_ = ""; metadataItems_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MessageData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder.class); } private int bitField0_; public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** *
         * Partition offset in partition that assigned for message.
         * 
* * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } public static final int SEQ_NO_FIELD_NUMBER = 2; private long seqNo_ = 0L; /** *
         * Sequence number that provided with message on write from client.
         * 
* * int64 seq_no = 2; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
         * Timestamp of creation of message provided on write from client.
         * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } public static final int DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
         * Compressed client message body.
         * 
* * bytes data = 5; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int UNCOMPRESSED_SIZE_FIELD_NUMBER = 6; private long uncompressedSize_ = 0L; /** *
         * Uncompressed size of client message body.
         * sent as is from WriteRequest, without check on server side. May be empty (for writes from old client) or wrong (if bug in writer).
         * Use it for optimization purposes only, don't trust it.
         * 
* * int64 uncompressed_size = 6; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } public static final int MESSAGE_GROUP_ID_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object messageGroupId_ = ""; /** *
         * Filled if message_group_id was set on message write.
         * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The messageGroupId. */ @java.lang.Override public java.lang.String getMessageGroupId() { java.lang.Object ref = messageGroupId_; 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(); messageGroupId_ = s; return s; } } /** *
         * Filled if message_group_id was set on message write.
         * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = messageGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_ITEMS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List metadataItems_; /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ @java.lang.Override public java.util.List getMetadataItemsList() { return metadataItems_; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ @java.lang.Override public java.util.List getMetadataItemsOrBuilderList() { return metadataItems_; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ @java.lang.Override public int getMetadataItemsCount() { return metadataItems_.size(); } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index) { return metadataItems_.get(index); } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index) { return metadataItems_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } if (seqNo_ != 0L) { output.writeInt64(2, seqNo_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getCreatedAt()); } if (!data_.isEmpty()) { output.writeBytes(5, data_); } if (uncompressedSize_ != 0L) { output.writeInt64(6, uncompressedSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, messageGroupId_); } for (int i = 0; i < metadataItems_.size(); i++) { output.writeMessage(8, metadataItems_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, offset_); } if (seqNo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, seqNo_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, data_); } if (uncompressedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, uncompressedSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, messageGroupId_); } for (int i = 0; i < metadataItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, metadataItems_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData) obj; if (getOffset() != other.getOffset()) return false; if (getSeqNo() != other.getSeqNo()) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getData() .equals(other.getData())) return false; if (getUncompressedSize() != other.getUncompressedSize()) return false; if (!getMessageGroupId() .equals(other.getMessageGroupId())) return false; if (!getMetadataItemsList() .equals(other.getMetadataItemsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (37 * hash) + SEQ_NO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqNo()); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + UNCOMPRESSED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUncompressedSize()); hash = (37 * hash) + MESSAGE_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getMessageGroupId().hashCode(); if (getMetadataItemsCount() > 0) { hash = (37 * hash) + METADATA_ITEMS_FIELD_NUMBER; hash = (53 * hash) + getMetadataItemsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData 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; } /** *
         * One client message representation.
         * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.MessageData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.ReadResponse.MessageData) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCreatedAtFieldBuilder(); getMetadataItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; offset_ = 0L; seqNo_ = 0L; createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; uncompressedSize_ = 0L; messageGroupId_ = ""; if (metadataItemsBuilder_ == null) { metadataItems_ = java.util.Collections.emptyList(); } else { metadataItems_ = null; metadataItemsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData result) { if (metadataItemsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { metadataItems_ = java.util.Collections.unmodifiableList(metadataItems_); bitField0_ = (bitField0_ & ~0x00000040); } result.metadataItems_ = metadataItems_; } else { result.metadataItems_ = metadataItemsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.offset_ = offset_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.seqNo_ = seqNo_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.createdAt_ = createdAtBuilder_ == null ? createdAt_ : createdAtBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.data_ = data_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.uncompressedSize_ = uncompressedSize_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.messageGroupId_ = messageGroupId_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.getDefaultInstance()) return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } if (other.getSeqNo() != 0L) { setSeqNo(other.getSeqNo()); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getUncompressedSize() != 0L) { setUncompressedSize(other.getUncompressedSize()); } if (!other.getMessageGroupId().isEmpty()) { messageGroupId_ = other.messageGroupId_; bitField0_ |= 0x00000020; onChanged(); } if (metadataItemsBuilder_ == null) { if (!other.metadataItems_.isEmpty()) { if (metadataItems_.isEmpty()) { metadataItems_ = other.metadataItems_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMetadataItemsIsMutable(); metadataItems_.addAll(other.metadataItems_); } onChanged(); } } else { if (!other.metadataItems_.isEmpty()) { if (metadataItemsBuilder_.isEmpty()) { metadataItemsBuilder_.dispose(); metadataItemsBuilder_ = null; metadataItems_ = other.metadataItems_; bitField0_ = (bitField0_ & ~0x00000040); metadataItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetadataItemsFieldBuilder() : null; } else { metadataItemsBuilder_.addAllMessages(other.metadataItems_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { offset_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { seqNo_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getCreatedAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { data_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 42 case 48: { uncompressedSize_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 48 case 58: { messageGroupId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 58 case 66: { tech.ydb.proto.topic.YdbTopic.MetadataItem m = input.readMessage( tech.ydb.proto.topic.YdbTopic.MetadataItem.parser(), extensionRegistry); if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(m); } else { metadataItemsBuilder_.addMessage(m); } break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long offset_ ; /** *
           * Partition offset in partition that assigned for message.
           * 
* * int64 offset = 1; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** *
           * Partition offset in partition that assigned for message.
           * 
* * int64 offset = 1; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Partition offset in partition that assigned for message.
           * 
* * int64 offset = 1; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; onChanged(); return this; } private long seqNo_ ; /** *
           * Sequence number that provided with message on write from client.
           * 
* * int64 seq_no = 2; * @return The seqNo. */ @java.lang.Override public long getSeqNo() { return seqNo_; } /** *
           * Sequence number that provided with message on write from client.
           * 
* * int64 seq_no = 2; * @param value The seqNo to set. * @return This builder for chaining. */ public Builder setSeqNo(long value) { seqNo_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Sequence number that provided with message on write from client.
           * 
* * int64 seq_no = 2; * @return This builder for chaining. */ public Builder clearSeqNo() { bitField0_ = (bitField0_ & ~0x00000002); seqNo_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return ((bitField0_ & 0x00000004) != 0); } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; } else { createdAtBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && createdAt_ != null && createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreatedAtBuilder().mergeFrom(value); } else { createdAt_ = value; } } else { createdAtBuilder_.mergeFrom(value); } if (createdAt_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { bitField0_ = (bitField0_ & ~0x00000004); createdAt_ = null; if (createdAtBuilder_ != null) { createdAtBuilder_.dispose(); createdAtBuilder_ = null; } onChanged(); return this; } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
           * Timestamp of creation of message provided on write from client.
           * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
           * Compressed client message body.
           * 
* * bytes data = 5; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
           * Compressed client message body.
           * 
* * bytes data = 5; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Compressed client message body.
           * 
* * bytes data = 5; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000008); data_ = getDefaultInstance().getData(); onChanged(); return this; } private long uncompressedSize_ ; /** *
           * Uncompressed size of client message body.
           * sent as is from WriteRequest, without check on server side. May be empty (for writes from old client) or wrong (if bug in writer).
           * Use it for optimization purposes only, don't trust it.
           * 
* * int64 uncompressed_size = 6; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } /** *
           * Uncompressed size of client message body.
           * sent as is from WriteRequest, without check on server side. May be empty (for writes from old client) or wrong (if bug in writer).
           * Use it for optimization purposes only, don't trust it.
           * 
* * int64 uncompressed_size = 6; * @param value The uncompressedSize to set. * @return This builder for chaining. */ public Builder setUncompressedSize(long value) { uncompressedSize_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
           * Uncompressed size of client message body.
           * sent as is from WriteRequest, without check on server side. May be empty (for writes from old client) or wrong (if bug in writer).
           * Use it for optimization purposes only, don't trust it.
           * 
* * int64 uncompressed_size = 6; * @return This builder for chaining. */ public Builder clearUncompressedSize() { bitField0_ = (bitField0_ & ~0x00000010); uncompressedSize_ = 0L; onChanged(); return this; } private java.lang.Object messageGroupId_ = ""; /** *
           * Filled if message_group_id was set on message write.
           * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The messageGroupId. */ public java.lang.String getMessageGroupId() { java.lang.Object ref = messageGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
           * Filled if message_group_id was set on message write.
           * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return The bytes for messageGroupId. */ public com.google.protobuf.ByteString getMessageGroupIdBytes() { java.lang.Object ref = messageGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Filled if message_group_id was set on message write.
           * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @param value The messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } messageGroupId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
           * Filled if message_group_id was set on message write.
           * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @return This builder for chaining. */ public Builder clearMessageGroupId() { messageGroupId_ = getDefaultInstance().getMessageGroupId(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
           * Filled if message_group_id was set on message write.
           * 
* * string message_group_id = 7 [(.Ydb.length) = { ... } * @param value The bytes for messageGroupId to set. * @return This builder for chaining. */ public Builder setMessageGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); messageGroupId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.util.List metadataItems_ = java.util.Collections.emptyList(); private void ensureMetadataItemsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { metadataItems_ = new java.util.ArrayList(metadataItems_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder> metadataItemsBuilder_; /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public java.util.List getMetadataItemsList() { if (metadataItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(metadataItems_); } else { return metadataItemsBuilder_.getMessageList(); } } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public int getMetadataItemsCount() { if (metadataItemsBuilder_ == null) { return metadataItems_.size(); } else { return metadataItemsBuilder_.getCount(); } } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public tech.ydb.proto.topic.YdbTopic.MetadataItem getMetadataItems(int index) { if (metadataItemsBuilder_ == null) { return metadataItems_.get(index); } else { return metadataItemsBuilder_.getMessage(index); } } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder setMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.set(index, value); onChanged(); } else { metadataItemsBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder setMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.set(index, builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder addMetadataItems(tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.add(value); onChanged(); } else { metadataItemsBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder addMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem value) { if (metadataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetadataItemsIsMutable(); metadataItems_.add(index, value); onChanged(); } else { metadataItemsBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder addMetadataItems( tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder addMetadataItems( int index, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder builderForValue) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.add(index, builderForValue.build()); onChanged(); } else { metadataItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder addAllMetadataItems( java.lang.Iterable values) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metadataItems_); onChanged(); } else { metadataItemsBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder clearMetadataItems() { if (metadataItemsBuilder_ == null) { metadataItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { metadataItemsBuilder_.clear(); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public Builder removeMetadataItems(int index) { if (metadataItemsBuilder_ == null) { ensureMetadataItemsIsMutable(); metadataItems_.remove(index); onChanged(); } else { metadataItemsBuilder_.remove(index); } return this; } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder getMetadataItemsBuilder( int index) { return getMetadataItemsFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder getMetadataItemsOrBuilder( int index) { if (metadataItemsBuilder_ == null) { return metadataItems_.get(index); } else { return metadataItemsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public java.util.List getMetadataItemsOrBuilderList() { if (metadataItemsBuilder_ != null) { return metadataItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metadataItems_); } } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder addMetadataItemsBuilder() { return getMetadataItemsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance()); } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder addMetadataItemsBuilder( int index) { return getMetadataItemsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.MetadataItem.getDefaultInstance()); } /** * repeated .Ydb.Topic.MetadataItem metadata_items = 8; */ public java.util.List getMetadataItemsBuilderList() { return getMetadataItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder> getMetadataItemsFieldBuilder() { if (metadataItemsBuilder_ == null) { metadataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MetadataItem, tech.ydb.proto.topic.YdbTopic.MetadataItem.Builder, tech.ydb.proto.topic.YdbTopic.MetadataItemOrBuilder>( metadataItems_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); metadataItems_ = null; } return metadataItemsBuilder_; } @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.Topic.StreamReadMessage.ReadResponse.MessageData) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.ReadResponse.MessageData) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MessageData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.ReadResponse.Batch) com.google.protobuf.MessageOrBuilder { /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ java.util.List getMessageDataList(); /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getMessageData(int index); /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ int getMessageDataCount(); /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ java.util.List getMessageDataOrBuilderList(); /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder getMessageDataOrBuilder( int index); /** *
         * Producer identifier provided by client for this batch of client messages.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ java.lang.String getProducerId(); /** *
         * Producer identifier provided by client for this batch of client messages.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ com.google.protobuf.ByteString getProducerIdBytes(); /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ int getWriteSessionMetaCount(); /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ boolean containsWriteSessionMeta( java.lang.String key); /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Deprecated java.util.Map getWriteSessionMeta(); /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ java.util.Map getWriteSessionMetaMap(); /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ java.lang.String getWriteSessionMetaOrThrow( java.lang.String key); /** *
         * Codec that is used for data compression.
         * See enum Codec above for values.
         * 
* * int32 codec = 4; * @return The codec. */ int getCodec(); /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; * @return Whether the writtenAt field is set. */ boolean hasWrittenAt(); /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; * @return The writtenAt. */ com.google.protobuf.Timestamp getWrittenAt(); /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; */ com.google.protobuf.TimestampOrBuilder getWrittenAtOrBuilder(); } /** *
       * Representation of sequence of client messages from one write session.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.Batch} */ public static final class Batch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.ReadResponse.Batch) BatchOrBuilder { private static final long serialVersionUID = 0L; // Use Batch.newBuilder() to construct. private Batch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Batch() { messageData_ = java.util.Collections.emptyList(); producerId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Batch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder.class); } private int bitField0_; public static final int MESSAGE_DATA_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List messageData_; /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ @java.lang.Override public java.util.List getMessageDataList() { return messageData_; } /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ @java.lang.Override public java.util.List getMessageDataOrBuilderList() { return messageData_; } /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ @java.lang.Override public int getMessageDataCount() { return messageData_.size(); } /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getMessageData(int index) { return messageData_.get(index); } /** *
         * List of client messages.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder getMessageDataOrBuilder( int index) { return messageData_.get(index); } public static final int PRODUCER_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object producerId_ = ""; /** *
         * Producer identifier provided by client for this batch of client messages.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ @java.lang.Override public java.lang.String getProducerId() { java.lang.Object ref = producerId_; 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(); producerId_ = s; return s; } } /** *
         * Producer identifier provided by client for this batch of client messages.
         * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ @java.lang.Override public com.google.protobuf.ByteString getProducerIdBytes() { java.lang.Object ref = producerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WRITE_SESSION_META_FIELD_NUMBER = 3; private static final class WriteSessionMetaDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> writeSessionMeta_; private com.google.protobuf.MapField internalGetWriteSessionMeta() { if (writeSessionMeta_ == null) { return com.google.protobuf.MapField.emptyMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } return writeSessionMeta_; } public int getWriteSessionMetaCount() { return internalGetWriteSessionMeta().getMap().size(); } /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public boolean containsWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWriteSessionMeta().getMap().containsKey(key); } /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWriteSessionMeta() { return getWriteSessionMetaMap(); } /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.util.Map getWriteSessionMetaMap() { return internalGetWriteSessionMeta().getMap(); } /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
         * Client metadata attached to write session, the same for all messages in batch.
         * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.lang.String getWriteSessionMetaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CODEC_FIELD_NUMBER = 4; private int codec_ = 0; /** *
         * Codec that is used for data compression.
         * See enum Codec above for values.
         * 
* * int32 codec = 4; * @return The codec. */ @java.lang.Override public int getCodec() { return codec_; } public static final int WRITTEN_AT_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp writtenAt_; /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; * @return Whether the writtenAt field is set. */ @java.lang.Override public boolean hasWrittenAt() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; * @return The writtenAt. */ @java.lang.Override public com.google.protobuf.Timestamp getWrittenAt() { return writtenAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writtenAt_; } /** *
         * Persist timestamp on server for batch.
         * 
* * .google.protobuf.Timestamp written_at = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getWrittenAtOrBuilder() { return writtenAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writtenAt_; } 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 < messageData_.size(); i++) { output.writeMessage(1, messageData_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetWriteSessionMeta(), WriteSessionMetaDefaultEntryHolder.defaultEntry, 3); if (codec_ != 0) { output.writeInt32(4, codec_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getWrittenAt()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < messageData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, messageData_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); } for (java.util.Map.Entry entry : internalGetWriteSessionMeta().getMap().entrySet()) { com.google.protobuf.MapEntry writeSessionMeta__ = WriteSessionMetaDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, writeSessionMeta__); } if (codec_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, codec_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getWrittenAt()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch) obj; if (!getMessageDataList() .equals(other.getMessageDataList())) return false; if (!getProducerId() .equals(other.getProducerId())) return false; if (!internalGetWriteSessionMeta().equals( other.internalGetWriteSessionMeta())) return false; if (getCodec() != other.getCodec()) return false; if (hasWrittenAt() != other.hasWrittenAt()) return false; if (hasWrittenAt()) { if (!getWrittenAt() .equals(other.getWrittenAt())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMessageDataCount() > 0) { hash = (37 * hash) + MESSAGE_DATA_FIELD_NUMBER; hash = (53 * hash) + getMessageDataList().hashCode(); } hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; hash = (53 * hash) + getProducerId().hashCode(); if (!internalGetWriteSessionMeta().getMap().isEmpty()) { hash = (37 * hash) + WRITE_SESSION_META_FIELD_NUMBER; hash = (53 * hash) + internalGetWriteSessionMeta().hashCode(); } hash = (37 * hash) + CODEC_FIELD_NUMBER; hash = (53 * hash) + getCodec(); if (hasWrittenAt()) { hash = (37 * hash) + WRITTEN_AT_FIELD_NUMBER; hash = (53 * hash) + getWrittenAt().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch 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; } /** *
         * Representation of sequence of client messages from one write session.
         * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.Batch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.ReadResponse.Batch) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableWriteSessionMeta(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMessageDataFieldBuilder(); getWrittenAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (messageDataBuilder_ == null) { messageData_ = java.util.Collections.emptyList(); } else { messageData_ = null; messageDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); producerId_ = ""; internalGetMutableWriteSessionMeta().clear(); codec_ = 0; writtenAt_ = null; if (writtenAtBuilder_ != null) { writtenAtBuilder_.dispose(); writtenAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch result) { if (messageDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messageData_ = java.util.Collections.unmodifiableList(messageData_); bitField0_ = (bitField0_ & ~0x00000001); } result.messageData_ = messageData_; } else { result.messageData_ = messageDataBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.producerId_ = producerId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.writeSessionMeta_ = internalGetWriteSessionMeta(); result.writeSessionMeta_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.codec_ = codec_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.writtenAt_ = writtenAtBuilder_ == null ? writtenAt_ : writtenAtBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.getDefaultInstance()) return this; if (messageDataBuilder_ == null) { if (!other.messageData_.isEmpty()) { if (messageData_.isEmpty()) { messageData_ = other.messageData_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessageDataIsMutable(); messageData_.addAll(other.messageData_); } onChanged(); } } else { if (!other.messageData_.isEmpty()) { if (messageDataBuilder_.isEmpty()) { messageDataBuilder_.dispose(); messageDataBuilder_ = null; messageData_ = other.messageData_; bitField0_ = (bitField0_ & ~0x00000001); messageDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessageDataFieldBuilder() : null; } else { messageDataBuilder_.addAllMessages(other.messageData_); } } } if (!other.getProducerId().isEmpty()) { producerId_ = other.producerId_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableWriteSessionMeta().mergeFrom( other.internalGetWriteSessionMeta()); bitField0_ |= 0x00000004; if (other.getCodec() != 0) { setCodec(other.getCodec()); } if (other.hasWrittenAt()) { mergeWrittenAt(other.getWrittenAt()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.parser(), extensionRegistry); if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); messageData_.add(m); } else { messageDataBuilder_.addMessage(m); } break; } // case 10 case 18: { producerId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry writeSessionMeta__ = input.readMessage( WriteSessionMetaDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableWriteSessionMeta().getMutableMap().put( writeSessionMeta__.getKey(), writeSessionMeta__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 32: { codec_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getWrittenAtFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List messageData_ = java.util.Collections.emptyList(); private void ensureMessageDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageData_ = new java.util.ArrayList(messageData_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder> messageDataBuilder_; /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public java.util.List getMessageDataList() { if (messageDataBuilder_ == null) { return java.util.Collections.unmodifiableList(messageData_); } else { return messageDataBuilder_.getMessageList(); } } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public int getMessageDataCount() { if (messageDataBuilder_ == null) { return messageData_.size(); } else { return messageDataBuilder_.getCount(); } } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData getMessageData(int index) { if (messageDataBuilder_ == null) { return messageData_.get(index); } else { return messageDataBuilder_.getMessage(index); } } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder setMessageData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData value) { if (messageDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageDataIsMutable(); messageData_.set(index, value); onChanged(); } else { messageDataBuilder_.setMessage(index, value); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder setMessageData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder builderForValue) { if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); messageData_.set(index, builderForValue.build()); onChanged(); } else { messageDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder addMessageData(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData value) { if (messageDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageDataIsMutable(); messageData_.add(value); onChanged(); } else { messageDataBuilder_.addMessage(value); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder addMessageData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData value) { if (messageDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageDataIsMutable(); messageData_.add(index, value); onChanged(); } else { messageDataBuilder_.addMessage(index, value); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder addMessageData( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder builderForValue) { if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); messageData_.add(builderForValue.build()); onChanged(); } else { messageDataBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder addMessageData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder builderForValue) { if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); messageData_.add(index, builderForValue.build()); onChanged(); } else { messageDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder addAllMessageData( java.lang.Iterable values) { if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messageData_); onChanged(); } else { messageDataBuilder_.addAllMessages(values); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder clearMessageData() { if (messageDataBuilder_ == null) { messageData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messageDataBuilder_.clear(); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public Builder removeMessageData(int index) { if (messageDataBuilder_ == null) { ensureMessageDataIsMutable(); messageData_.remove(index); onChanged(); } else { messageDataBuilder_.remove(index); } return this; } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder getMessageDataBuilder( int index) { return getMessageDataFieldBuilder().getBuilder(index); } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder getMessageDataOrBuilder( int index) { if (messageDataBuilder_ == null) { return messageData_.get(index); } else { return messageDataBuilder_.getMessageOrBuilder(index); } } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public java.util.List getMessageDataOrBuilderList() { if (messageDataBuilder_ != null) { return messageDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messageData_); } } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder addMessageDataBuilder() { return getMessageDataFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.getDefaultInstance()); } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder addMessageDataBuilder( int index) { return getMessageDataFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.getDefaultInstance()); } /** *
           * List of client messages.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.MessageData message_data = 1; */ public java.util.List getMessageDataBuilderList() { return getMessageDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder> getMessageDataFieldBuilder() { if (messageDataBuilder_ == null) { messageDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.MessageDataOrBuilder>( messageData_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messageData_ = null; } return messageDataBuilder_; } private java.lang.Object producerId_ = ""; /** *
           * Producer identifier provided by client for this batch of client messages.
           * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The producerId. */ public java.lang.String getProducerId() { java.lang.Object ref = producerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producerId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
           * Producer identifier provided by client for this batch of client messages.
           * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return The bytes for producerId. */ public com.google.protobuf.ByteString getProducerIdBytes() { java.lang.Object ref = producerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); producerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Producer identifier provided by client for this batch of client messages.
           * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @param value The producerId to set. * @return This builder for chaining. */ public Builder setProducerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } producerId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Producer identifier provided by client for this batch of client messages.
           * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @return This builder for chaining. */ public Builder clearProducerId() { producerId_ = getDefaultInstance().getProducerId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
           * Producer identifier provided by client for this batch of client messages.
           * 
* * string producer_id = 2 [(.Ydb.length) = { ... } * @param value The bytes for producerId to set. * @return This builder for chaining. */ public Builder setProducerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); producerId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> writeSessionMeta_; private com.google.protobuf.MapField internalGetWriteSessionMeta() { if (writeSessionMeta_ == null) { return com.google.protobuf.MapField.emptyMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } return writeSessionMeta_; } private com.google.protobuf.MapField internalGetMutableWriteSessionMeta() { if (writeSessionMeta_ == null) { writeSessionMeta_ = com.google.protobuf.MapField.newMapField( WriteSessionMetaDefaultEntryHolder.defaultEntry); } if (!writeSessionMeta_.isMutable()) { writeSessionMeta_ = writeSessionMeta_.copy(); } bitField0_ |= 0x00000004; onChanged(); return writeSessionMeta_; } public int getWriteSessionMetaCount() { return internalGetWriteSessionMeta().getMap().size(); } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public boolean containsWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWriteSessionMeta().getMap().containsKey(key); } /** * Use {@link #getWriteSessionMetaMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWriteSessionMeta() { return getWriteSessionMetaMap(); } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.util.Map getWriteSessionMetaMap() { return internalGetWriteSessionMeta().getMap(); } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public /* nullable */ java.lang.String getWriteSessionMetaOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ @java.lang.Override public java.lang.String getWriteSessionMetaOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWriteSessionMeta().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearWriteSessionMeta() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableWriteSessionMeta().getMutableMap() .clear(); return this; } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ public Builder removeWriteSessionMeta( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableWriteSessionMeta().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWriteSessionMeta() { bitField0_ |= 0x00000004; return internalGetMutableWriteSessionMeta().getMutableMap(); } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ public Builder putWriteSessionMeta( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableWriteSessionMeta().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
           * Client metadata attached to write session, the same for all messages in batch.
           * 
* * map<string, string> write_session_meta = 3; */ public Builder putAllWriteSessionMeta( java.util.Map values) { internalGetMutableWriteSessionMeta().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private int codec_ ; /** *
           * Codec that is used for data compression.
           * See enum Codec above for values.
           * 
* * int32 codec = 4; * @return The codec. */ @java.lang.Override public int getCodec() { return codec_; } /** *
           * Codec that is used for data compression.
           * See enum Codec above for values.
           * 
* * int32 codec = 4; * @param value The codec to set. * @return This builder for chaining. */ public Builder setCodec(int value) { codec_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
           * Codec that is used for data compression.
           * See enum Codec above for values.
           * 
* * int32 codec = 4; * @return This builder for chaining. */ public Builder clearCodec() { bitField0_ = (bitField0_ & ~0x00000008); codec_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp writtenAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> writtenAtBuilder_; /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; * @return Whether the writtenAt field is set. */ public boolean hasWrittenAt() { return ((bitField0_ & 0x00000010) != 0); } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; * @return The writtenAt. */ public com.google.protobuf.Timestamp getWrittenAt() { if (writtenAtBuilder_ == null) { return writtenAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writtenAt_; } else { return writtenAtBuilder_.getMessage(); } } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public Builder setWrittenAt(com.google.protobuf.Timestamp value) { if (writtenAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writtenAt_ = value; } else { writtenAtBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public Builder setWrittenAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (writtenAtBuilder_ == null) { writtenAt_ = builderForValue.build(); } else { writtenAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public Builder mergeWrittenAt(com.google.protobuf.Timestamp value) { if (writtenAtBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && writtenAt_ != null && writtenAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getWrittenAtBuilder().mergeFrom(value); } else { writtenAt_ = value; } } else { writtenAtBuilder_.mergeFrom(value); } if (writtenAt_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public Builder clearWrittenAt() { bitField0_ = (bitField0_ & ~0x00000010); writtenAt_ = null; if (writtenAtBuilder_ != null) { writtenAtBuilder_.dispose(); writtenAtBuilder_ = null; } onChanged(); return this; } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public com.google.protobuf.Timestamp.Builder getWrittenAtBuilder() { bitField0_ |= 0x00000010; onChanged(); return getWrittenAtFieldBuilder().getBuilder(); } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ public com.google.protobuf.TimestampOrBuilder getWrittenAtOrBuilder() { if (writtenAtBuilder_ != null) { return writtenAtBuilder_.getMessageOrBuilder(); } else { return writtenAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writtenAt_; } } /** *
           * Persist timestamp on server for batch.
           * 
* * .google.protobuf.Timestamp written_at = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getWrittenAtFieldBuilder() { if (writtenAtBuilder_ == null) { writtenAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getWrittenAt(), getParentForChildren(), isClean()); writtenAt_ = null; } return writtenAtBuilder_; } @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.Topic.StreamReadMessage.ReadResponse.Batch) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.ReadResponse.Batch) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Batch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionDataOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData) com.google.protobuf.MessageOrBuilder { /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ java.util.List getBatchesList(); /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getBatches(int index); /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ int getBatchesCount(); /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ java.util.List getBatchesOrBuilderList(); /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder getBatchesOrBuilder( int index); } /** *
       * Representation of sequence of messages from one partition.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData} */ public static final class PartitionData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData) PartitionDataOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionData.newBuilder() to construct. private PartitionData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionData() { batches_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int BATCHES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List batches_; /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ @java.lang.Override public java.util.List getBatchesList() { return batches_; } /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ @java.lang.Override public java.util.List getBatchesOrBuilderList() { return batches_; } /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ @java.lang.Override public int getBatchesCount() { return batches_.size(); } /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getBatches(int index) { return batches_.get(index); } /** *
         * Client messages, divided by write sessions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder getBatchesOrBuilder( int index) { return batches_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } for (int i = 0; i < batches_.size(); i++) { output.writeMessage(2, batches_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } for (int i = 0; i < batches_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, batches_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (!getBatchesList() .equals(other.getBatchesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); if (getBatchesCount() > 0) { hash = (37 * hash) + BATCHES_FIELD_NUMBER; hash = (53 * hash) + getBatchesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData 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; } /** *
         * Representation of sequence of messages from one partition.
         * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; if (batchesBuilder_ == null) { batches_ = java.util.Collections.emptyList(); } else { batches_ = null; batchesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData result) { if (batchesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { batches_ = java.util.Collections.unmodifiableList(batches_); bitField0_ = (bitField0_ & ~0x00000002); } result.batches_ = batches_; } else { result.batches_ = batchesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (batchesBuilder_ == null) { if (!other.batches_.isEmpty()) { if (batches_.isEmpty()) { batches_ = other.batches_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBatchesIsMutable(); batches_.addAll(other.batches_); } onChanged(); } } else { if (!other.batches_.isEmpty()) { if (batchesBuilder_.isEmpty()) { batchesBuilder_.dispose(); batchesBuilder_ = null; batches_ = other.batches_; bitField0_ = (bitField0_ & ~0x00000002); batchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBatchesFieldBuilder() : null; } else { batchesBuilder_.addAllMessages(other.batches_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.parser(), extensionRegistry); if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.add(m); } else { batchesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private java.util.List batches_ = java.util.Collections.emptyList(); private void ensureBatchesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { batches_ = new java.util.ArrayList(batches_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder> batchesBuilder_; /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public java.util.List getBatchesList() { if (batchesBuilder_ == null) { return java.util.Collections.unmodifiableList(batches_); } else { return batchesBuilder_.getMessageList(); } } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public int getBatchesCount() { if (batchesBuilder_ == null) { return batches_.size(); } else { return batchesBuilder_.getCount(); } } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch getBatches(int index) { if (batchesBuilder_ == null) { return batches_.get(index); } else { return batchesBuilder_.getMessage(index); } } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder setBatches( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBatchesIsMutable(); batches_.set(index, value); onChanged(); } else { batchesBuilder_.setMessage(index, value); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder setBatches( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder builderForValue) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.set(index, builderForValue.build()); onChanged(); } else { batchesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder addBatches(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBatchesIsMutable(); batches_.add(value); onChanged(); } else { batchesBuilder_.addMessage(value); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder addBatches( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch value) { if (batchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBatchesIsMutable(); batches_.add(index, value); onChanged(); } else { batchesBuilder_.addMessage(index, value); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder addBatches( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder builderForValue) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.add(builderForValue.build()); onChanged(); } else { batchesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder addBatches( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder builderForValue) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.add(index, builderForValue.build()); onChanged(); } else { batchesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder addAllBatches( java.lang.Iterable values) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, batches_); onChanged(); } else { batchesBuilder_.addAllMessages(values); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder clearBatches() { if (batchesBuilder_ == null) { batches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { batchesBuilder_.clear(); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public Builder removeBatches(int index) { if (batchesBuilder_ == null) { ensureBatchesIsMutable(); batches_.remove(index); onChanged(); } else { batchesBuilder_.remove(index); } return this; } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder getBatchesBuilder( int index) { return getBatchesFieldBuilder().getBuilder(index); } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder getBatchesOrBuilder( int index) { if (batchesBuilder_ == null) { return batches_.get(index); } else { return batchesBuilder_.getMessageOrBuilder(index); } } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public java.util.List getBatchesOrBuilderList() { if (batchesBuilder_ != null) { return batchesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(batches_); } } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder addBatchesBuilder() { return getBatchesFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.getDefaultInstance()); } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder addBatchesBuilder( int index) { return getBatchesFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.getDefaultInstance()); } /** *
           * Client messages, divided by write sessions.
           * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.Batch batches = 2; */ public java.util.List getBatchesBuilderList() { return getBatchesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder> getBatchesFieldBuilder() { if (batchesBuilder_ == null) { batchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Batch.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.BatchOrBuilder>( batches_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); batches_ = null; } return batchesBuilder_; } @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.Topic.StreamReadMessage.ReadResponse.PartitionData) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PARTITION_DATA_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List partitionData_; /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ @java.lang.Override public java.util.List getPartitionDataList() { return partitionData_; } /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ @java.lang.Override public java.util.List getPartitionDataOrBuilderList() { return partitionData_; } /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ @java.lang.Override public int getPartitionDataCount() { return partitionData_.size(); } /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData(int index) { return partitionData_.get(index); } /** *
       * Client messages, divided by partitions.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder( int index) { return partitionData_.get(index); } public static final int BYTES_SIZE_FIELD_NUMBER = 2; private long bytesSize_ = 0L; /** *
       * Total size in bytes of this response as calculated by server.
       * See ReadRequest comment above.
       * 
* * int64 bytes_size = 2; * @return The bytesSize. */ @java.lang.Override public long getBytesSize() { return bytesSize_; } 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 < partitionData_.size(); i++) { output.writeMessage(1, partitionData_.get(i)); } if (bytesSize_ != 0L) { output.writeInt64(2, bytesSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < partitionData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, partitionData_.get(i)); } if (bytesSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, bytesSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) obj; if (!getPartitionDataList() .equals(other.getPartitionDataList())) return false; if (getBytesSize() != other.getBytesSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPartitionDataCount() > 0) { hash = (37 * hash) + PARTITION_DATA_FIELD_NUMBER; hash = (53 * hash) + getPartitionDataList().hashCode(); } hash = (37 * hash) + BYTES_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBytesSize()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse 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; } /** *
       * Data read.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.ReadResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.ReadResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (partitionDataBuilder_ == null) { partitionData_ = java.util.Collections.emptyList(); } else { partitionData_ = null; partitionDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); bytesSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse result) { if (partitionDataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partitionData_ = java.util.Collections.unmodifiableList(partitionData_); bitField0_ = (bitField0_ & ~0x00000001); } result.partitionData_ = partitionData_; } else { result.partitionData_ = partitionDataBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.bytesSize_ = bytesSize_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.getDefaultInstance()) return this; if (partitionDataBuilder_ == null) { if (!other.partitionData_.isEmpty()) { if (partitionData_.isEmpty()) { partitionData_ = other.partitionData_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionDataIsMutable(); partitionData_.addAll(other.partitionData_); } onChanged(); } } else { if (!other.partitionData_.isEmpty()) { if (partitionDataBuilder_.isEmpty()) { partitionDataBuilder_.dispose(); partitionDataBuilder_ = null; partitionData_ = other.partitionData_; bitField0_ = (bitField0_ & ~0x00000001); partitionDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionDataFieldBuilder() : null; } else { partitionDataBuilder_.addAllMessages(other.partitionData_); } } } if (other.getBytesSize() != 0L) { setBytesSize(other.getBytesSize()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.parser(), extensionRegistry); if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); partitionData_.add(m); } else { partitionDataBuilder_.addMessage(m); } break; } // case 10 case 16: { bytesSize_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List partitionData_ = java.util.Collections.emptyList(); private void ensurePartitionDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partitionData_ = new java.util.ArrayList(partitionData_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder> partitionDataBuilder_; /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public java.util.List getPartitionDataList() { if (partitionDataBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionData_); } else { return partitionDataBuilder_.getMessageList(); } } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public int getPartitionDataCount() { if (partitionDataBuilder_ == null) { return partitionData_.size(); } else { return partitionDataBuilder_.getCount(); } } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData(int index) { if (partitionDataBuilder_ == null) { return partitionData_.get(index); } else { return partitionDataBuilder_.getMessage(index); } } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder setPartitionData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData value) { if (partitionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionDataIsMutable(); partitionData_.set(index, value); onChanged(); } else { partitionDataBuilder_.setMessage(index, value); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder setPartitionData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder builderForValue) { if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); partitionData_.set(index, builderForValue.build()); onChanged(); } else { partitionDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder addPartitionData(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData value) { if (partitionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionDataIsMutable(); partitionData_.add(value); onChanged(); } else { partitionDataBuilder_.addMessage(value); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder addPartitionData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData value) { if (partitionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionDataIsMutable(); partitionData_.add(index, value); onChanged(); } else { partitionDataBuilder_.addMessage(index, value); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder addPartitionData( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder builderForValue) { if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); partitionData_.add(builderForValue.build()); onChanged(); } else { partitionDataBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder addPartitionData( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder builderForValue) { if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); partitionData_.add(index, builderForValue.build()); onChanged(); } else { partitionDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder addAllPartitionData( java.lang.Iterable values) { if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionData_); onChanged(); } else { partitionDataBuilder_.addAllMessages(values); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder clearPartitionData() { if (partitionDataBuilder_ == null) { partitionData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { partitionDataBuilder_.clear(); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public Builder removePartitionData(int index) { if (partitionDataBuilder_ == null) { ensurePartitionDataIsMutable(); partitionData_.remove(index); onChanged(); } else { partitionDataBuilder_.remove(index); } return this; } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder getPartitionDataBuilder( int index) { return getPartitionDataFieldBuilder().getBuilder(index); } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder( int index) { if (partitionDataBuilder_ == null) { return partitionData_.get(index); } else { return partitionDataBuilder_.getMessageOrBuilder(index); } } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public java.util.List getPartitionDataOrBuilderList() { if (partitionDataBuilder_ != null) { return partitionDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitionData_); } } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder addPartitionDataBuilder() { return getPartitionDataFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance()); } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder addPartitionDataBuilder( int index) { return getPartitionDataFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance()); } /** *
         * Client messages, divided by partitions.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 1; */ public java.util.List getPartitionDataBuilderList() { return getPartitionDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder> getPartitionDataFieldBuilder() { if (partitionDataBuilder_ == null) { partitionDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder>( partitionData_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); partitionData_ = null; } return partitionDataBuilder_; } private long bytesSize_ ; /** *
         * Total size in bytes of this response as calculated by server.
         * See ReadRequest comment above.
         * 
* * int64 bytes_size = 2; * @return The bytesSize. */ @java.lang.Override public long getBytesSize() { return bytesSize_; } /** *
         * Total size in bytes of this response as calculated by server.
         * See ReadRequest comment above.
         * 
* * int64 bytes_size = 2; * @param value The bytesSize to set. * @return This builder for chaining. */ public Builder setBytesSize(long value) { bytesSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Total size in bytes of this response as calculated by server.
         * See ReadRequest comment above.
         * 
* * int64 bytes_size = 2; * @return This builder for chaining. */ public Builder clearBytesSize() { bitField0_ = (bitField0_ & ~0x00000002); bytesSize_ = 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.Topic.StreamReadMessage.ReadResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.ReadResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOffsetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.CommitOffsetRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ java.util.List getCommitOffsetsList(); /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getCommitOffsets(int index); /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ int getCommitOffsetsCount(); /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ java.util.List getCommitOffsetsOrBuilderList(); /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder getCommitOffsetsOrBuilder( int index); } /** *
     * Signal for server that client processed some read data.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetRequest} */ public static final class CommitOffsetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.CommitOffsetRequest) CommitOffsetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CommitOffsetRequest.newBuilder() to construct. private CommitOffsetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitOffsetRequest() { commitOffsets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitOffsetRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder.class); } public interface PartitionCommitOffsetOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) com.google.protobuf.MessageOrBuilder { /** *
         * Identifier of partition session with data to commit.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ java.util.List getOffsetsList(); /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ tech.ydb.proto.topic.YdbTopic.OffsetsRange getOffsets(int index); /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ int getOffsetsCount(); /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ java.util.List getOffsetsOrBuilderList(); /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getOffsetsOrBuilder( int index); } /** *
       * Message that is used for describing commit.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset} */ public static final class PartitionCommitOffset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) PartitionCommitOffsetOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionCommitOffset.newBuilder() to construct. private PartitionCommitOffset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionCommitOffset() { offsets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionCommitOffset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
         * Identifier of partition session with data to commit.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int OFFSETS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List offsets_; /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ @java.lang.Override public java.util.List getOffsetsList() { return offsets_; } /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ @java.lang.Override public java.util.List getOffsetsOrBuilderList() { return offsets_; } /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ @java.lang.Override public int getOffsetsCount() { return offsets_.size(); } /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getOffsets(int index) { return offsets_.get(index); } /** *
         * Processed offsets ranges, repeated in case of disjoint ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getOffsetsOrBuilder( int index) { return offsets_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } for (int i = 0; i < offsets_.size(); i++) { output.writeMessage(2, offsets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } for (int i = 0; i < offsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, offsets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (!getOffsetsList() .equals(other.getOffsetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); if (getOffsetsCount() > 0) { hash = (37 * hash) + OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getOffsetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset 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; } /** *
         * Message that is used for describing commit.
         * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; if (offsetsBuilder_ == null) { offsets_ = java.util.Collections.emptyList(); } else { offsets_ = null; offsetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset result) { if (offsetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { offsets_ = java.util.Collections.unmodifiableList(offsets_); bitField0_ = (bitField0_ & ~0x00000002); } result.offsets_ = offsets_; } else { result.offsets_ = offsetsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (offsetsBuilder_ == null) { if (!other.offsets_.isEmpty()) { if (offsets_.isEmpty()) { offsets_ = other.offsets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOffsetsIsMutable(); offsets_.addAll(other.offsets_); } onChanged(); } } else { if (!other.offsets_.isEmpty()) { if (offsetsBuilder_.isEmpty()) { offsetsBuilder_.dispose(); offsetsBuilder_ = null; offsets_ = other.offsets_; bitField0_ = (bitField0_ & ~0x00000002); offsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOffsetsFieldBuilder() : null; } else { offsetsBuilder_.addAllMessages(other.offsets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.topic.YdbTopic.OffsetsRange m = input.readMessage( tech.ydb.proto.topic.YdbTopic.OffsetsRange.parser(), extensionRegistry); if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(m); } else { offsetsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
           * Identifier of partition session with data to commit.
           * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
           * Identifier of partition session with data to commit.
           * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Identifier of partition session with data to commit.
           * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private java.util.List offsets_ = java.util.Collections.emptyList(); private void ensureOffsetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { offsets_ = new java.util.ArrayList(offsets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> offsetsBuilder_; /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public java.util.List getOffsetsList() { if (offsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(offsets_); } else { return offsetsBuilder_.getMessageList(); } } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public int getOffsetsCount() { if (offsetsBuilder_ == null) { return offsets_.size(); } else { return offsetsBuilder_.getCount(); } } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange getOffsets(int index) { if (offsetsBuilder_ == null) { return offsets_.get(index); } else { return offsetsBuilder_.getMessage(index); } } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder setOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.set(index, value); onChanged(); } else { offsetsBuilder_.setMessage(index, value); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder setOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.set(index, builderForValue.build()); onChanged(); } else { offsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder addOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.add(value); onChanged(); } else { offsetsBuilder_.addMessage(value); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder addOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (offsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOffsetsIsMutable(); offsets_.add(index, value); onChanged(); } else { offsetsBuilder_.addMessage(index, value); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder addOffsets( tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(builderForValue.build()); onChanged(); } else { offsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder addOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.add(index, builderForValue.build()); onChanged(); } else { offsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder addAllOffsets( java.lang.Iterable values) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, offsets_); onChanged(); } else { offsetsBuilder_.addAllMessages(values); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder clearOffsets() { if (offsetsBuilder_ == null) { offsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { offsetsBuilder_.clear(); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public Builder removeOffsets(int index) { if (offsetsBuilder_ == null) { ensureOffsetsIsMutable(); offsets_.remove(index); onChanged(); } else { offsetsBuilder_.remove(index); } return this; } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder getOffsetsBuilder( int index) { return getOffsetsFieldBuilder().getBuilder(index); } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getOffsetsOrBuilder( int index) { if (offsetsBuilder_ == null) { return offsets_.get(index); } else { return offsetsBuilder_.getMessageOrBuilder(index); } } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public java.util.List getOffsetsOrBuilderList() { if (offsetsBuilder_ != null) { return offsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(offsets_); } } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder addOffsetsBuilder() { return getOffsetsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()); } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder addOffsetsBuilder( int index) { return getOffsetsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()); } /** *
           * Processed offsets ranges, repeated in case of disjoint ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange offsets = 2; */ public java.util.List getOffsetsBuilderList() { return getOffsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> getOffsetsFieldBuilder() { if (offsetsBuilder_ == null) { offsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder>( offsets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); offsets_ = null; } return offsetsBuilder_; } @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.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionCommitOffset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int COMMIT_OFFSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List commitOffsets_; /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ @java.lang.Override public java.util.List getCommitOffsetsList() { return commitOffsets_; } /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ @java.lang.Override public java.util.List getCommitOffsetsOrBuilderList() { return commitOffsets_; } /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ @java.lang.Override public int getCommitOffsetsCount() { return commitOffsets_.size(); } /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getCommitOffsets(int index) { return commitOffsets_.get(index); } /** *
       * Partition offsets that indicates processed data.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder getCommitOffsetsOrBuilder( int index) { return commitOffsets_.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 < commitOffsets_.size(); i++) { output.writeMessage(1, commitOffsets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < commitOffsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, commitOffsets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) obj; if (!getCommitOffsetsList() .equals(other.getCommitOffsetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCommitOffsetsCount() > 0) { hash = (37 * hash) + COMMIT_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getCommitOffsetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest 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; } /** *
       * Signal for server that client processed some read data.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.CommitOffsetRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (commitOffsetsBuilder_ == null) { commitOffsets_ = java.util.Collections.emptyList(); } else { commitOffsets_ = null; commitOffsetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest result) { if (commitOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { commitOffsets_ = java.util.Collections.unmodifiableList(commitOffsets_); bitField0_ = (bitField0_ & ~0x00000001); } result.commitOffsets_ = commitOffsets_; } else { result.commitOffsets_ = commitOffsetsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest result) { int from_bitField0_ = bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.getDefaultInstance()) return this; if (commitOffsetsBuilder_ == null) { if (!other.commitOffsets_.isEmpty()) { if (commitOffsets_.isEmpty()) { commitOffsets_ = other.commitOffsets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCommitOffsetsIsMutable(); commitOffsets_.addAll(other.commitOffsets_); } onChanged(); } } else { if (!other.commitOffsets_.isEmpty()) { if (commitOffsetsBuilder_.isEmpty()) { commitOffsetsBuilder_.dispose(); commitOffsetsBuilder_ = null; commitOffsets_ = other.commitOffsets_; bitField0_ = (bitField0_ & ~0x00000001); commitOffsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommitOffsetsFieldBuilder() : null; } else { commitOffsetsBuilder_.addAllMessages(other.commitOffsets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.parser(), extensionRegistry); if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); commitOffsets_.add(m); } else { commitOffsetsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List commitOffsets_ = java.util.Collections.emptyList(); private void ensureCommitOffsetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { commitOffsets_ = new java.util.ArrayList(commitOffsets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder> commitOffsetsBuilder_; /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public java.util.List getCommitOffsetsList() { if (commitOffsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(commitOffsets_); } else { return commitOffsetsBuilder_.getMessageList(); } } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public int getCommitOffsetsCount() { if (commitOffsetsBuilder_ == null) { return commitOffsets_.size(); } else { return commitOffsetsBuilder_.getCount(); } } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset getCommitOffsets(int index) { if (commitOffsetsBuilder_ == null) { return commitOffsets_.get(index); } else { return commitOffsetsBuilder_.getMessage(index); } } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder setCommitOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset value) { if (commitOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitOffsetsIsMutable(); commitOffsets_.set(index, value); onChanged(); } else { commitOffsetsBuilder_.setMessage(index, value); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder setCommitOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder builderForValue) { if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); commitOffsets_.set(index, builderForValue.build()); onChanged(); } else { commitOffsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder addCommitOffsets(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset value) { if (commitOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitOffsetsIsMutable(); commitOffsets_.add(value); onChanged(); } else { commitOffsetsBuilder_.addMessage(value); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder addCommitOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset value) { if (commitOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitOffsetsIsMutable(); commitOffsets_.add(index, value); onChanged(); } else { commitOffsetsBuilder_.addMessage(index, value); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder addCommitOffsets( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder builderForValue) { if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); commitOffsets_.add(builderForValue.build()); onChanged(); } else { commitOffsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder addCommitOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder builderForValue) { if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); commitOffsets_.add(index, builderForValue.build()); onChanged(); } else { commitOffsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder addAllCommitOffsets( java.lang.Iterable values) { if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commitOffsets_); onChanged(); } else { commitOffsetsBuilder_.addAllMessages(values); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder clearCommitOffsets() { if (commitOffsetsBuilder_ == null) { commitOffsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { commitOffsetsBuilder_.clear(); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public Builder removeCommitOffsets(int index) { if (commitOffsetsBuilder_ == null) { ensureCommitOffsetsIsMutable(); commitOffsets_.remove(index); onChanged(); } else { commitOffsetsBuilder_.remove(index); } return this; } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder getCommitOffsetsBuilder( int index) { return getCommitOffsetsFieldBuilder().getBuilder(index); } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder getCommitOffsetsOrBuilder( int index) { if (commitOffsetsBuilder_ == null) { return commitOffsets_.get(index); } else { return commitOffsetsBuilder_.getMessageOrBuilder(index); } } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public java.util.List getCommitOffsetsOrBuilderList() { if (commitOffsetsBuilder_ != null) { return commitOffsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(commitOffsets_); } } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder addCommitOffsetsBuilder() { return getCommitOffsetsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.getDefaultInstance()); } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder addCommitOffsetsBuilder( int index) { return getCommitOffsetsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.getDefaultInstance()); } /** *
         * Partition offsets that indicates processed data.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset commit_offsets = 1; */ public java.util.List getCommitOffsetsBuilderList() { return getCommitOffsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder> getCommitOffsetsFieldBuilder() { if (commitOffsetsBuilder_ == null) { commitOffsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest.PartitionCommitOffsetOrBuilder>( commitOffsets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); commitOffsets_ = null; } return commitOffsetsBuilder_; } @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.Topic.StreamReadMessage.CommitOffsetRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.CommitOffsetRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitOffsetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOffsetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.CommitOffsetResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ java.util.List getPartitionsCommittedOffsetsList(); /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getPartitionsCommittedOffsets(int index); /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ int getPartitionsCommittedOffsetsCount(); /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ java.util.List getPartitionsCommittedOffsetsOrBuilderList(); /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder getPartitionsCommittedOffsetsOrBuilder( int index); } /** *
     * Acknowledgement for commits.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetResponse} */ public static final class CommitOffsetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.CommitOffsetResponse) CommitOffsetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommitOffsetResponse.newBuilder() to construct. private CommitOffsetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitOffsetResponse() { partitionsCommittedOffsets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitOffsetResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder.class); } public interface PartitionCommittedOffsetOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) com.google.protobuf.MessageOrBuilder { /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
         * Upper bound for committed offsets.
         * 
* * int64 committed_offset = 2; * @return The committedOffset. */ long getCommittedOffset(); } /** *
       * Per-partition commit representation.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset} */ public static final class PartitionCommittedOffset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) PartitionCommittedOffsetOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionCommittedOffset.newBuilder() to construct. private PartitionCommittedOffset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionCommittedOffset() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionCommittedOffset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int COMMITTED_OFFSET_FIELD_NUMBER = 2; private long committedOffset_ = 0L; /** *
         * Upper bound for committed offsets.
         * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (committedOffset_ != 0L) { output.writeInt64(2, committedOffset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (committedOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, committedOffset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getCommittedOffset() != other.getCommittedOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + COMMITTED_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommittedOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset 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; } /** *
         * Per-partition commit representation.
         * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; committedOffset_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.committedOffset_ = committedOffset_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getCommittedOffset() != 0L) { setCommittedOffset(other.getCommittedOffset()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { committedOffset_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
           * Partition session identifier.
           * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
           * Partition session identifier.
           * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Partition session identifier.
           * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private long committedOffset_ ; /** *
           * Upper bound for committed offsets.
           * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } /** *
           * Upper bound for committed offsets.
           * 
* * int64 committed_offset = 2; * @param value The committedOffset to set. * @return This builder for chaining. */ public Builder setCommittedOffset(long value) { committedOffset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Upper bound for committed offsets.
           * 
* * int64 committed_offset = 2; * @return This builder for chaining. */ public Builder clearCommittedOffset() { bitField0_ = (bitField0_ & ~0x00000002); committedOffset_ = 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.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionCommittedOffset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PARTITIONS_COMMITTED_OFFSETS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List partitionsCommittedOffsets_; /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ @java.lang.Override public java.util.List getPartitionsCommittedOffsetsList() { return partitionsCommittedOffsets_; } /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ @java.lang.Override public java.util.List getPartitionsCommittedOffsetsOrBuilderList() { return partitionsCommittedOffsets_; } /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ @java.lang.Override public int getPartitionsCommittedOffsetsCount() { return partitionsCommittedOffsets_.size(); } /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getPartitionsCommittedOffsets(int index) { return partitionsCommittedOffsets_.get(index); } /** *
       * Partitions with progress.
       * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder getPartitionsCommittedOffsetsOrBuilder( int index) { return partitionsCommittedOffsets_.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 < partitionsCommittedOffsets_.size(); i++) { output.writeMessage(1, partitionsCommittedOffsets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < partitionsCommittedOffsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, partitionsCommittedOffsets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) obj; if (!getPartitionsCommittedOffsetsList() .equals(other.getPartitionsCommittedOffsetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPartitionsCommittedOffsetsCount() > 0) { hash = (37 * hash) + PARTITIONS_COMMITTED_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsCommittedOffsetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse 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; } /** *
       * Acknowledgement for commits.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.CommitOffsetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.CommitOffsetResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (partitionsCommittedOffsetsBuilder_ == null) { partitionsCommittedOffsets_ = java.util.Collections.emptyList(); } else { partitionsCommittedOffsets_ = null; partitionsCommittedOffsetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse result) { if (partitionsCommittedOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partitionsCommittedOffsets_ = java.util.Collections.unmodifiableList(partitionsCommittedOffsets_); bitField0_ = (bitField0_ & ~0x00000001); } result.partitionsCommittedOffsets_ = partitionsCommittedOffsets_; } else { result.partitionsCommittedOffsets_ = partitionsCommittedOffsetsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse result) { int from_bitField0_ = bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.getDefaultInstance()) return this; if (partitionsCommittedOffsetsBuilder_ == null) { if (!other.partitionsCommittedOffsets_.isEmpty()) { if (partitionsCommittedOffsets_.isEmpty()) { partitionsCommittedOffsets_ = other.partitionsCommittedOffsets_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.addAll(other.partitionsCommittedOffsets_); } onChanged(); } } else { if (!other.partitionsCommittedOffsets_.isEmpty()) { if (partitionsCommittedOffsetsBuilder_.isEmpty()) { partitionsCommittedOffsetsBuilder_.dispose(); partitionsCommittedOffsetsBuilder_ = null; partitionsCommittedOffsets_ = other.partitionsCommittedOffsets_; bitField0_ = (bitField0_ & ~0x00000001); partitionsCommittedOffsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsCommittedOffsetsFieldBuilder() : null; } else { partitionsCommittedOffsetsBuilder_.addAllMessages(other.partitionsCommittedOffsets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.parser(), extensionRegistry); if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.add(m); } else { partitionsCommittedOffsetsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List partitionsCommittedOffsets_ = java.util.Collections.emptyList(); private void ensurePartitionsCommittedOffsetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { partitionsCommittedOffsets_ = new java.util.ArrayList(partitionsCommittedOffsets_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder> partitionsCommittedOffsetsBuilder_; /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public java.util.List getPartitionsCommittedOffsetsList() { if (partitionsCommittedOffsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionsCommittedOffsets_); } else { return partitionsCommittedOffsetsBuilder_.getMessageList(); } } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public int getPartitionsCommittedOffsetsCount() { if (partitionsCommittedOffsetsBuilder_ == null) { return partitionsCommittedOffsets_.size(); } else { return partitionsCommittedOffsetsBuilder_.getCount(); } } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset getPartitionsCommittedOffsets(int index) { if (partitionsCommittedOffsetsBuilder_ == null) { return partitionsCommittedOffsets_.get(index); } else { return partitionsCommittedOffsetsBuilder_.getMessage(index); } } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder setPartitionsCommittedOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset value) { if (partitionsCommittedOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.set(index, value); onChanged(); } else { partitionsCommittedOffsetsBuilder_.setMessage(index, value); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder setPartitionsCommittedOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder builderForValue) { if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.set(index, builderForValue.build()); onChanged(); } else { partitionsCommittedOffsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder addPartitionsCommittedOffsets(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset value) { if (partitionsCommittedOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.add(value); onChanged(); } else { partitionsCommittedOffsetsBuilder_.addMessage(value); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder addPartitionsCommittedOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset value) { if (partitionsCommittedOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.add(index, value); onChanged(); } else { partitionsCommittedOffsetsBuilder_.addMessage(index, value); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder addPartitionsCommittedOffsets( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder builderForValue) { if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.add(builderForValue.build()); onChanged(); } else { partitionsCommittedOffsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder addPartitionsCommittedOffsets( int index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder builderForValue) { if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.add(index, builderForValue.build()); onChanged(); } else { partitionsCommittedOffsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder addAllPartitionsCommittedOffsets( java.lang.Iterable values) { if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionsCommittedOffsets_); onChanged(); } else { partitionsCommittedOffsetsBuilder_.addAllMessages(values); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder clearPartitionsCommittedOffsets() { if (partitionsCommittedOffsetsBuilder_ == null) { partitionsCommittedOffsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { partitionsCommittedOffsetsBuilder_.clear(); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public Builder removePartitionsCommittedOffsets(int index) { if (partitionsCommittedOffsetsBuilder_ == null) { ensurePartitionsCommittedOffsetsIsMutable(); partitionsCommittedOffsets_.remove(index); onChanged(); } else { partitionsCommittedOffsetsBuilder_.remove(index); } return this; } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder getPartitionsCommittedOffsetsBuilder( int index) { return getPartitionsCommittedOffsetsFieldBuilder().getBuilder(index); } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder getPartitionsCommittedOffsetsOrBuilder( int index) { if (partitionsCommittedOffsetsBuilder_ == null) { return partitionsCommittedOffsets_.get(index); } else { return partitionsCommittedOffsetsBuilder_.getMessageOrBuilder(index); } } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public java.util.List getPartitionsCommittedOffsetsOrBuilderList() { if (partitionsCommittedOffsetsBuilder_ != null) { return partitionsCommittedOffsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitionsCommittedOffsets_); } } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder addPartitionsCommittedOffsetsBuilder() { return getPartitionsCommittedOffsetsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.getDefaultInstance()); } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder addPartitionsCommittedOffsetsBuilder( int index) { return getPartitionsCommittedOffsetsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.getDefaultInstance()); } /** *
         * Partitions with progress.
         * 
* * repeated .Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset partitions_committed_offsets = 1; */ public java.util.List getPartitionsCommittedOffsetsBuilderList() { return getPartitionsCommittedOffsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder> getPartitionsCommittedOffsetsFieldBuilder() { if (partitionsCommittedOffsetsBuilder_ == null) { partitionsCommittedOffsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffsetOrBuilder>( partitionsCommittedOffsets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); partitionsCommittedOffsets_ = null; } return partitionsCommittedOffsetsBuilder_; } @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.Topic.StreamReadMessage.CommitOffsetResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.CommitOffsetResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitOffsetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.CommitOffsetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionSessionStatusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest) com.google.protobuf.MessageOrBuilder { /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); } /** * Protobuf type {@code Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest} */ public static final class PartitionSessionStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest) PartitionSessionStatusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionSessionStatusRequest.newBuilder() to construct. private PartitionSessionStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionSessionStatusRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionSessionStatusRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest 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.Topic.StreamReadMessage.PartitionSessionStatusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 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.Topic.StreamReadMessage.PartitionSessionStatusRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.PartitionSessionStatusRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionSessionStatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionSessionStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Identifier of partition session whose status was requested.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return Whether the partitionOffsets field is set. */ boolean hasPartitionOffsets(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return The partitionOffsets. */ tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder(); /** *
       * Each offset up to and including (committed_offset - 1) was fully processed.
       * 
* * int64 committed_offset = 3; * @return The committedOffset. */ long getCommittedOffset(); /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return Whether the writeTimeHighWatermark field is set. */ boolean hasWriteTimeHighWatermark(); /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return The writeTimeHighWatermark. */ com.google.protobuf.Timestamp getWriteTimeHighWatermark(); /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ com.google.protobuf.TimestampOrBuilder getWriteTimeHighWatermarkOrBuilder(); } /** *
     * Response to status request.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse} */ public static final class PartitionSessionStatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse) PartitionSessionStatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionSessionStatusResponse.newBuilder() to construct. private PartitionSessionStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionSessionStatusResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionSessionStatusResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder.class); } private int bitField0_; public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Identifier of partition session whose status was requested.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int PARTITION_OFFSETS_FIELD_NUMBER = 2; private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return Whether the partitionOffsets field is set. */ @java.lang.Override public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return The partitionOffsets. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } public static final int COMMITTED_OFFSET_FIELD_NUMBER = 3; private long committedOffset_ = 0L; /** *
       * Each offset up to and including (committed_offset - 1) was fully processed.
       * 
* * int64 committed_offset = 3; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } public static final int WRITE_TIME_HIGH_WATERMARK_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp writeTimeHighWatermark_; /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return Whether the writeTimeHighWatermark field is set. */ @java.lang.Override public boolean hasWriteTimeHighWatermark() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return The writeTimeHighWatermark. */ @java.lang.Override public com.google.protobuf.Timestamp getWriteTimeHighWatermark() { return writeTimeHighWatermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writeTimeHighWatermark_; } /** *
       * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
       * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getWriteTimeHighWatermarkOrBuilder() { return writeTimeHighWatermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writeTimeHighWatermark_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPartitionOffsets()); } if (committedOffset_ != 0L) { output.writeInt64(3, committedOffset_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getWriteTimeHighWatermark()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPartitionOffsets()); } if (committedOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, committedOffset_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWriteTimeHighWatermark()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (hasPartitionOffsets() != other.hasPartitionOffsets()) return false; if (hasPartitionOffsets()) { if (!getPartitionOffsets() .equals(other.getPartitionOffsets())) return false; } if (getCommittedOffset() != other.getCommittedOffset()) return false; if (hasWriteTimeHighWatermark() != other.hasWriteTimeHighWatermark()) return false; if (hasWriteTimeHighWatermark()) { if (!getWriteTimeHighWatermark() .equals(other.getWriteTimeHighWatermark())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); if (hasPartitionOffsets()) { hash = (37 * hash) + PARTITION_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getPartitionOffsets().hashCode(); } hash = (37 * hash) + COMMITTED_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommittedOffset()); if (hasWriteTimeHighWatermark()) { hash = (37 * hash) + WRITE_TIME_HIGH_WATERMARK_FIELD_NUMBER; hash = (53 * hash) + getWriteTimeHighWatermark().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse 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; } /** *
       * Response to status request.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionOffsetsFieldBuilder(); getWriteTimeHighWatermarkFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } committedOffset_ = 0L; writeTimeHighWatermark_ = null; if (writeTimeHighWatermarkBuilder_ != null) { writeTimeHighWatermarkBuilder_.dispose(); writeTimeHighWatermarkBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.partitionOffsets_ = partitionOffsetsBuilder_ == null ? partitionOffsets_ : partitionOffsetsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.committedOffset_ = committedOffset_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.writeTimeHighWatermark_ = writeTimeHighWatermarkBuilder_ == null ? writeTimeHighWatermark_ : writeTimeHighWatermarkBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.hasPartitionOffsets()) { mergePartitionOffsets(other.getPartitionOffsets()); } if (other.getCommittedOffset() != 0L) { setCommittedOffset(other.getCommittedOffset()); } if (other.hasWriteTimeHighWatermark()) { mergeWriteTimeHighWatermark(other.getWriteTimeHighWatermark()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getPartitionOffsetsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { committedOffset_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getWriteTimeHighWatermarkFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Identifier of partition session whose status was requested.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Identifier of partition session whose status was requested.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Identifier of partition session whose status was requested.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> partitionOffsetsBuilder_; /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return Whether the partitionOffsets field is set. */ public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; * @return The partitionOffsets. */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } else { return partitionOffsetsBuilder_.getMessage(); } } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder setPartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionOffsets_ = value; } else { partitionOffsetsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder setPartitionOffsets( tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { partitionOffsets_ = builderForValue.build(); } else { partitionOffsetsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder mergePartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && partitionOffsets_ != null && partitionOffsets_ != tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()) { getPartitionOffsetsBuilder().mergeFrom(value); } else { partitionOffsets_ = value; } } else { partitionOffsetsBuilder_.mergeFrom(value); } if (partitionOffsets_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder clearPartitionOffsets() { bitField0_ = (bitField0_ & ~0x00000002); partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder getPartitionOffsetsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitionOffsetsFieldBuilder().getBuilder(); } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { if (partitionOffsetsBuilder_ != null) { return partitionOffsetsBuilder_.getMessageOrBuilder(); } else { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> getPartitionOffsetsFieldBuilder() { if (partitionOffsetsBuilder_ == null) { partitionOffsetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder>( getPartitionOffsets(), getParentForChildren(), isClean()); partitionOffsets_ = null; } return partitionOffsetsBuilder_; } private long committedOffset_ ; /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 3; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 3; * @param value The committedOffset to set. * @return This builder for chaining. */ public Builder setCommittedOffset(long value) { committedOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 3; * @return This builder for chaining. */ public Builder clearCommittedOffset() { bitField0_ = (bitField0_ & ~0x00000004); committedOffset_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp writeTimeHighWatermark_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> writeTimeHighWatermarkBuilder_; /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return Whether the writeTimeHighWatermark field is set. */ public boolean hasWriteTimeHighWatermark() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; * @return The writeTimeHighWatermark. */ public com.google.protobuf.Timestamp getWriteTimeHighWatermark() { if (writeTimeHighWatermarkBuilder_ == null) { return writeTimeHighWatermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writeTimeHighWatermark_; } else { return writeTimeHighWatermarkBuilder_.getMessage(); } } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public Builder setWriteTimeHighWatermark(com.google.protobuf.Timestamp value) { if (writeTimeHighWatermarkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } writeTimeHighWatermark_ = value; } else { writeTimeHighWatermarkBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public Builder setWriteTimeHighWatermark( com.google.protobuf.Timestamp.Builder builderForValue) { if (writeTimeHighWatermarkBuilder_ == null) { writeTimeHighWatermark_ = builderForValue.build(); } else { writeTimeHighWatermarkBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public Builder mergeWriteTimeHighWatermark(com.google.protobuf.Timestamp value) { if (writeTimeHighWatermarkBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && writeTimeHighWatermark_ != null && writeTimeHighWatermark_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getWriteTimeHighWatermarkBuilder().mergeFrom(value); } else { writeTimeHighWatermark_ = value; } } else { writeTimeHighWatermarkBuilder_.mergeFrom(value); } if (writeTimeHighWatermark_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public Builder clearWriteTimeHighWatermark() { bitField0_ = (bitField0_ & ~0x00000008); writeTimeHighWatermark_ = null; if (writeTimeHighWatermarkBuilder_ != null) { writeTimeHighWatermarkBuilder_.dispose(); writeTimeHighWatermarkBuilder_ = null; } onChanged(); return this; } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public com.google.protobuf.Timestamp.Builder getWriteTimeHighWatermarkBuilder() { bitField0_ |= 0x00000008; onChanged(); return getWriteTimeHighWatermarkFieldBuilder().getBuilder(); } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ public com.google.protobuf.TimestampOrBuilder getWriteTimeHighWatermarkOrBuilder() { if (writeTimeHighWatermarkBuilder_ != null) { return writeTimeHighWatermarkBuilder_.getMessageOrBuilder(); } else { return writeTimeHighWatermark_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : writeTimeHighWatermark_; } } /** *
         * Write timestamp of next message written to this partition will be no less than write_time_high_watermark.
         * 
* * .google.protobuf.Timestamp write_time_high_watermark = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getWriteTimeHighWatermarkFieldBuilder() { if (writeTimeHighWatermarkBuilder_ == null) { writeTimeHighWatermarkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getWriteTimeHighWatermark(), getParentForChildren(), isClean()); writeTimeHighWatermark_ = null; } return writeTimeHighWatermarkBuilder_; } @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.Topic.StreamReadMessage.PartitionSessionStatusResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.PartitionSessionStatusResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionSessionStatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionStatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartPartitionSessionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return Whether the partitionSession field is set. */ boolean hasPartitionSession(); /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return The partitionSession. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getPartitionSession(); /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder getPartitionSessionOrBuilder(); /** *
       * Each offset up to and including (committed_offset - 1) was fully processed.
       * 
* * int64 committed_offset = 2; * @return The committedOffset. */ long getCommittedOffset(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return Whether the partitionOffsets field is set. */ boolean hasPartitionOffsets(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return The partitionOffsets. */ tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(); /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return Whether the partitionLocation field is set. */ boolean hasPartitionLocation(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return The partitionLocation. */ tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder(); } /** *
     * Command from server to create and start a partition session.
     * Client must respond with StartPartitionSessionResponse when ready to receive data from this partition.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest} */ public static final class StartPartitionSessionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest) StartPartitionSessionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StartPartitionSessionRequest.newBuilder() to construct. private StartPartitionSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartPartitionSessionRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartPartitionSessionRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder.class); } private int bitField0_; public static final int PARTITION_SESSION_FIELD_NUMBER = 1; private tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession partitionSession_; /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return Whether the partitionSession field is set. */ @java.lang.Override public boolean hasPartitionSession() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return The partitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getPartitionSession() { return partitionSession_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance() : partitionSession_; } /** *
       * Partition session description.
       * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder getPartitionSessionOrBuilder() { return partitionSession_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance() : partitionSession_; } public static final int COMMITTED_OFFSET_FIELD_NUMBER = 2; private long committedOffset_ = 0L; /** *
       * Each offset up to and including (committed_offset - 1) was fully processed.
       * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } public static final int PARTITION_OFFSETS_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return Whether the partitionOffsets field is set. */ @java.lang.Override public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return The partitionOffsets. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } public static final int PARTITION_LOCATION_FIELD_NUMBER = 4; private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return Whether the partitionLocation field is set. */ @java.lang.Override public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return The partitionLocation. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPartitionSession()); } if (committedOffset_ != 0L) { output.writeInt64(2, committedOffset_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPartitionOffsets()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getPartitionLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPartitionSession()); } if (committedOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, committedOffset_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitionOffsets()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPartitionLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) obj; if (hasPartitionSession() != other.hasPartitionSession()) return false; if (hasPartitionSession()) { if (!getPartitionSession() .equals(other.getPartitionSession())) return false; } if (getCommittedOffset() != other.getCommittedOffset()) return false; if (hasPartitionOffsets() != other.hasPartitionOffsets()) return false; if (hasPartitionOffsets()) { if (!getPartitionOffsets() .equals(other.getPartitionOffsets())) return false; } if (hasPartitionLocation() != other.hasPartitionLocation()) return false; if (hasPartitionLocation()) { if (!getPartitionLocation() .equals(other.getPartitionLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPartitionSession()) { hash = (37 * hash) + PARTITION_SESSION_FIELD_NUMBER; hash = (53 * hash) + getPartitionSession().hashCode(); } hash = (37 * hash) + COMMITTED_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommittedOffset()); if (hasPartitionOffsets()) { hash = (37 * hash) + PARTITION_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getPartitionOffsets().hashCode(); } if (hasPartitionLocation()) { hash = (37 * hash) + PARTITION_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest 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; } /** *
       * Command from server to create and start a partition session.
       * Client must respond with StartPartitionSessionResponse when ready to receive data from this partition.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionSessionFieldBuilder(); getPartitionOffsetsFieldBuilder(); getPartitionLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSession_ = null; if (partitionSessionBuilder_ != null) { partitionSessionBuilder_.dispose(); partitionSessionBuilder_ = null; } committedOffset_ = 0L; partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSession_ = partitionSessionBuilder_ == null ? partitionSession_ : partitionSessionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.committedOffset_ = committedOffset_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionOffsets_ = partitionOffsetsBuilder_ == null ? partitionOffsets_ : partitionOffsetsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.partitionLocation_ = partitionLocationBuilder_ == null ? partitionLocation_ : partitionLocationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest.getDefaultInstance()) return this; if (other.hasPartitionSession()) { mergePartitionSession(other.getPartitionSession()); } if (other.getCommittedOffset() != 0L) { setCommittedOffset(other.getCommittedOffset()); } if (other.hasPartitionOffsets()) { mergePartitionOffsets(other.getPartitionOffsets()); } if (other.hasPartitionLocation()) { mergePartitionLocation(other.getPartitionLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPartitionSessionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { committedOffset_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getPartitionOffsetsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getPartitionLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession partitionSession_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder> partitionSessionBuilder_; /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return Whether the partitionSession field is set. */ public boolean hasPartitionSession() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; * @return The partitionSession. */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession getPartitionSession() { if (partitionSessionBuilder_ == null) { return partitionSession_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance() : partitionSession_; } else { return partitionSessionBuilder_.getMessage(); } } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public Builder setPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession value) { if (partitionSessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionSession_ = value; } else { partitionSessionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public Builder setPartitionSession( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder builderForValue) { if (partitionSessionBuilder_ == null) { partitionSession_ = builderForValue.build(); } else { partitionSessionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public Builder mergePartitionSession(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession value) { if (partitionSessionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && partitionSession_ != null && partitionSession_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance()) { getPartitionSessionBuilder().mergeFrom(value); } else { partitionSession_ = value; } } else { partitionSessionBuilder_.mergeFrom(value); } if (partitionSession_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public Builder clearPartitionSession() { bitField0_ = (bitField0_ & ~0x00000001); partitionSession_ = null; if (partitionSessionBuilder_ != null) { partitionSessionBuilder_.dispose(); partitionSessionBuilder_ = null; } onChanged(); return this; } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder getPartitionSessionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPartitionSessionFieldBuilder().getBuilder(); } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder getPartitionSessionOrBuilder() { if (partitionSessionBuilder_ != null) { return partitionSessionBuilder_.getMessageOrBuilder(); } else { return partitionSession_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.getDefaultInstance() : partitionSession_; } } /** *
         * Partition session description.
         * 
* * .Ydb.Topic.StreamReadMessage.PartitionSession partition_session = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder> getPartitionSessionFieldBuilder() { if (partitionSessionBuilder_ == null) { partitionSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.PartitionSessionOrBuilder>( getPartitionSession(), getParentForChildren(), isClean()); partitionSession_ = null; } return partitionSessionBuilder_; } private long committedOffset_ ; /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 2; * @param value The committedOffset to set. * @return This builder for chaining. */ public Builder setCommittedOffset(long value) { committedOffset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Each offset up to and including (committed_offset - 1) was fully processed.
         * 
* * int64 committed_offset = 2; * @return This builder for chaining. */ public Builder clearCommittedOffset() { bitField0_ = (bitField0_ & ~0x00000002); committedOffset_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> partitionOffsetsBuilder_; /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return Whether the partitionOffsets field is set. */ public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; * @return The partitionOffsets. */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } else { return partitionOffsetsBuilder_.getMessage(); } } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public Builder setPartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionOffsets_ = value; } else { partitionOffsetsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public Builder setPartitionOffsets( tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { partitionOffsets_ = builderForValue.build(); } else { partitionOffsetsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public Builder mergePartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && partitionOffsets_ != null && partitionOffsets_ != tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()) { getPartitionOffsetsBuilder().mergeFrom(value); } else { partitionOffsets_ = value; } } else { partitionOffsetsBuilder_.mergeFrom(value); } if (partitionOffsets_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public Builder clearPartitionOffsets() { bitField0_ = (bitField0_ & ~0x00000004); partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } onChanged(); return this; } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder getPartitionOffsetsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPartitionOffsetsFieldBuilder().getBuilder(); } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { if (partitionOffsetsBuilder_ != null) { return partitionOffsetsBuilder_.getMessageOrBuilder(); } else { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } } /** *
         * Partition contains messages with offsets in range [start, end).
         * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> getPartitionOffsetsFieldBuilder() { if (partitionOffsetsBuilder_ == null) { partitionOffsetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder>( getPartitionOffsets(), getParentForChildren(), isClean()); partitionOffsets_ = null; } return partitionOffsetsBuilder_; } private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> partitionLocationBuilder_; /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return Whether the partitionLocation field is set. */ public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; * @return The partitionLocation. */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { if (partitionLocationBuilder_ == null) { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } else { return partitionLocationBuilder_.getMessage(); } } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public Builder setPartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionLocation_ = value; } else { partitionLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public Builder setPartitionLocation( tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder builderForValue) { if (partitionLocationBuilder_ == null) { partitionLocation_ = builderForValue.build(); } else { partitionLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public Builder mergePartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && partitionLocation_ != null && partitionLocation_ != tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance()) { getPartitionLocationBuilder().mergeFrom(value); } else { partitionLocation_ = value; } } else { partitionLocationBuilder_.mergeFrom(value); } if (partitionLocation_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public Builder clearPartitionLocation() { bitField0_ = (bitField0_ & ~0x00000008); partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder getPartitionLocationBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPartitionLocationFieldBuilder().getBuilder(); } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { if (partitionLocationBuilder_ != null) { return partitionLocationBuilder_.getMessageOrBuilder(); } else { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> getPartitionLocationFieldBuilder() { if (partitionLocationBuilder_ == null) { partitionLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder>( getPartitionLocation(), getParentForChildren(), isClean()); partitionLocation_ = null; } return partitionLocationBuilder_; } @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.Topic.StreamReadMessage.StartPartitionSessionRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.StartPartitionSessionRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartPartitionSessionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartPartitionSessionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier of partition to start read.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Reads in this partition session will start from offset no less than read_offset.
       * If read_offset is set, server will check that read_offset is no less that actual committed offset.
       * If check fails then server will send an error message (status != SUCCESS) and close stream.
       *
       * If read_offset is not set, no check will be made.
       * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
       * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
       * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
       * 
* * optional int64 read_offset = 2; * @return Whether the readOffset field is set. */ boolean hasReadOffset(); /** *
       * Reads in this partition session will start from offset no less than read_offset.
       * If read_offset is set, server will check that read_offset is no less that actual committed offset.
       * If check fails then server will send an error message (status != SUCCESS) and close stream.
       *
       * If read_offset is not set, no check will be made.
       * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
       * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
       * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
       * 
* * optional int64 read_offset = 2; * @return The readOffset. */ long getReadOffset(); /** *
       * All messages with offset less than commit_offset are processed by client.
       * Server will commit this position if this is not done yet.
       * 
* * optional int64 commit_offset = 3; * @return Whether the commitOffset field is set. */ boolean hasCommitOffset(); /** *
       * All messages with offset less than commit_offset are processed by client.
       * Server will commit this position if this is not done yet.
       * 
* * optional int64 commit_offset = 3; * @return The commitOffset. */ long getCommitOffset(); } /** *
     * Signal for server that cient is ready to recive data for partition.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse} */ public static final class StartPartitionSessionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse) StartPartitionSessionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StartPartitionSessionResponse.newBuilder() to construct. private StartPartitionSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartPartitionSessionResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartPartitionSessionResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder.class); } private int bitField0_; public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier of partition to start read.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int READ_OFFSET_FIELD_NUMBER = 2; private long readOffset_ = 0L; /** *
       * Reads in this partition session will start from offset no less than read_offset.
       * If read_offset is set, server will check that read_offset is no less that actual committed offset.
       * If check fails then server will send an error message (status != SUCCESS) and close stream.
       *
       * If read_offset is not set, no check will be made.
       * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
       * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
       * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
       * 
* * optional int64 read_offset = 2; * @return Whether the readOffset field is set. */ @java.lang.Override public boolean hasReadOffset() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Reads in this partition session will start from offset no less than read_offset.
       * If read_offset is set, server will check that read_offset is no less that actual committed offset.
       * If check fails then server will send an error message (status != SUCCESS) and close stream.
       *
       * If read_offset is not set, no check will be made.
       * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
       * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
       * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
       * 
* * optional int64 read_offset = 2; * @return The readOffset. */ @java.lang.Override public long getReadOffset() { return readOffset_; } public static final int COMMIT_OFFSET_FIELD_NUMBER = 3; private long commitOffset_ = 0L; /** *
       * All messages with offset less than commit_offset are processed by client.
       * Server will commit this position if this is not done yet.
       * 
* * optional int64 commit_offset = 3; * @return Whether the commitOffset field is set. */ @java.lang.Override public boolean hasCommitOffset() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * All messages with offset less than commit_offset are processed by client.
       * Server will commit this position if this is not done yet.
       * 
* * optional int64 commit_offset = 3; * @return The commitOffset. */ @java.lang.Override public long getCommitOffset() { return commitOffset_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, readOffset_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(3, commitOffset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, readOffset_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, commitOffset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (hasReadOffset() != other.hasReadOffset()) return false; if (hasReadOffset()) { if (getReadOffset() != other.getReadOffset()) return false; } if (hasCommitOffset() != other.hasCommitOffset()) return false; if (hasCommitOffset()) { if (getCommitOffset() != other.getCommitOffset()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); if (hasReadOffset()) { hash = (37 * hash) + READ_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReadOffset()); } if (hasCommitOffset()) { hash = (37 * hash) + COMMIT_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitOffset()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse 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; } /** *
       * Signal for server that cient is ready to recive data for partition.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; readOffset_ = 0L; commitOffset_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.readOffset_ = readOffset_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.commitOffset_ = commitOffset_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.hasReadOffset()) { setReadOffset(other.getReadOffset()); } if (other.hasCommitOffset()) { setCommitOffset(other.getCommitOffset()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { readOffset_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { commitOffset_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier of partition to start read.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier of partition to start read.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier of partition to start read.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private long readOffset_ ; /** *
         * Reads in this partition session will start from offset no less than read_offset.
         * If read_offset is set, server will check that read_offset is no less that actual committed offset.
         * If check fails then server will send an error message (status != SUCCESS) and close stream.
         *
         * If read_offset is not set, no check will be made.
         * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
         * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
         * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
         * 
* * optional int64 read_offset = 2; * @return Whether the readOffset field is set. */ @java.lang.Override public boolean hasReadOffset() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Reads in this partition session will start from offset no less than read_offset.
         * If read_offset is set, server will check that read_offset is no less that actual committed offset.
         * If check fails then server will send an error message (status != SUCCESS) and close stream.
         *
         * If read_offset is not set, no check will be made.
         * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
         * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
         * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
         * 
* * optional int64 read_offset = 2; * @return The readOffset. */ @java.lang.Override public long getReadOffset() { return readOffset_; } /** *
         * Reads in this partition session will start from offset no less than read_offset.
         * If read_offset is set, server will check that read_offset is no less that actual committed offset.
         * If check fails then server will send an error message (status != SUCCESS) and close stream.
         *
         * If read_offset is not set, no check will be made.
         * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
         * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
         * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
         * 
* * optional int64 read_offset = 2; * @param value The readOffset to set. * @return This builder for chaining. */ public Builder setReadOffset(long value) { readOffset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Reads in this partition session will start from offset no less than read_offset.
         * If read_offset is set, server will check that read_offset is no less that actual committed offset.
         * If check fails then server will send an error message (status != SUCCESS) and close stream.
         *
         * If read_offset is not set, no check will be made.
         * InitRequest.max_lag and InitRequest.read_from could lead to skip of more messages.
         * Server will return data starting from offset that is maximum of actual committed offset, read_offset (if set)
         * and offsets calculated from InitRequest.max_lag and InitRequest.read_from.
         * 
* * optional int64 read_offset = 2; * @return This builder for chaining. */ public Builder clearReadOffset() { bitField0_ = (bitField0_ & ~0x00000002); readOffset_ = 0L; onChanged(); return this; } private long commitOffset_ ; /** *
         * All messages with offset less than commit_offset are processed by client.
         * Server will commit this position if this is not done yet.
         * 
* * optional int64 commit_offset = 3; * @return Whether the commitOffset field is set. */ @java.lang.Override public boolean hasCommitOffset() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * All messages with offset less than commit_offset are processed by client.
         * Server will commit this position if this is not done yet.
         * 
* * optional int64 commit_offset = 3; * @return The commitOffset. */ @java.lang.Override public long getCommitOffset() { return commitOffset_; } /** *
         * All messages with offset less than commit_offset are processed by client.
         * Server will commit this position if this is not done yet.
         * 
* * optional int64 commit_offset = 3; * @param value The commitOffset to set. * @return This builder for chaining. */ public Builder setCommitOffset(long value) { commitOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * All messages with offset less than commit_offset are processed by client.
         * Server will commit this position if this is not done yet.
         * 
* * optional int64 commit_offset = 3; * @return This builder for chaining. */ public Builder clearCommitOffset() { bitField0_ = (bitField0_ & ~0x00000004); commitOffset_ = 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.Topic.StreamReadMessage.StartPartitionSessionResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.StartPartitionSessionResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartPartitionSessionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StartPartitionSessionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopPartitionSessionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest) com.google.protobuf.MessageOrBuilder { /** *
       * Identifier of partition session that is ready to be closed by server.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Flag of graceful stop.
       * If set, server will wait for response from client before giving this partition to other read session.
       * Server will not send more data from this partition.
       * Client can process all received data and wait for commit and only after send response.
       * If False then server gives partition for other session right now.
       * All further commits for this partition session has no effect. Server is not waiting for response.
       * 
* * bool graceful = 2; * @return The graceful. */ boolean getGraceful(); /** *
       * Upper bound for committed offsets.
       * 
* * int64 committed_offset = 3; * @return The committedOffset. */ long getCommittedOffset(); /** *
       * Upper bound for read request identifiers, filled only when InitRequest.direct_read is true and graceful is true.
       * 
* * int64 last_direct_read_id = 4; * @return The lastDirectReadId. */ long getLastDirectReadId(); } /** *
     * Command from server to stop and destroy concrete partition session.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest} */ public static final class StopPartitionSessionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest) StopPartitionSessionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StopPartitionSessionRequest.newBuilder() to construct. private StopPartitionSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopPartitionSessionRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopPartitionSessionRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Identifier of partition session that is ready to be closed by server.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int GRACEFUL_FIELD_NUMBER = 2; private boolean graceful_ = false; /** *
       * Flag of graceful stop.
       * If set, server will wait for response from client before giving this partition to other read session.
       * Server will not send more data from this partition.
       * Client can process all received data and wait for commit and only after send response.
       * If False then server gives partition for other session right now.
       * All further commits for this partition session has no effect. Server is not waiting for response.
       * 
* * bool graceful = 2; * @return The graceful. */ @java.lang.Override public boolean getGraceful() { return graceful_; } public static final int COMMITTED_OFFSET_FIELD_NUMBER = 3; private long committedOffset_ = 0L; /** *
       * Upper bound for committed offsets.
       * 
* * int64 committed_offset = 3; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } public static final int LAST_DIRECT_READ_ID_FIELD_NUMBER = 4; private long lastDirectReadId_ = 0L; /** *
       * Upper bound for read request identifiers, filled only when InitRequest.direct_read is true and graceful is true.
       * 
* * int64 last_direct_read_id = 4; * @return The lastDirectReadId. */ @java.lang.Override public long getLastDirectReadId() { return lastDirectReadId_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (graceful_ != false) { output.writeBool(2, graceful_); } if (committedOffset_ != 0L) { output.writeInt64(3, committedOffset_); } if (lastDirectReadId_ != 0L) { output.writeInt64(4, lastDirectReadId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (graceful_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, graceful_); } if (committedOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, committedOffset_); } if (lastDirectReadId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, lastDirectReadId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getGraceful() != other.getGraceful()) return false; if (getCommittedOffset() != other.getCommittedOffset()) return false; if (getLastDirectReadId() != other.getLastDirectReadId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + GRACEFUL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getGraceful()); hash = (37 * hash) + COMMITTED_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommittedOffset()); hash = (37 * hash) + LAST_DIRECT_READ_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastDirectReadId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest 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; } /** *
       * Command from server to stop and destroy concrete partition session.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; graceful_ = false; committedOffset_ = 0L; lastDirectReadId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.graceful_ = graceful_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.committedOffset_ = committedOffset_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lastDirectReadId_ = lastDirectReadId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getGraceful() != false) { setGraceful(other.getGraceful()); } if (other.getCommittedOffset() != 0L) { setCommittedOffset(other.getCommittedOffset()); } if (other.getLastDirectReadId() != 0L) { setLastDirectReadId(other.getLastDirectReadId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { graceful_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { committedOffset_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { lastDirectReadId_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Identifier of partition session that is ready to be closed by server.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Identifier of partition session that is ready to be closed by server.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Identifier of partition session that is ready to be closed by server.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private boolean graceful_ ; /** *
         * Flag of graceful stop.
         * If set, server will wait for response from client before giving this partition to other read session.
         * Server will not send more data from this partition.
         * Client can process all received data and wait for commit and only after send response.
         * If False then server gives partition for other session right now.
         * All further commits for this partition session has no effect. Server is not waiting for response.
         * 
* * bool graceful = 2; * @return The graceful. */ @java.lang.Override public boolean getGraceful() { return graceful_; } /** *
         * Flag of graceful stop.
         * If set, server will wait for response from client before giving this partition to other read session.
         * Server will not send more data from this partition.
         * Client can process all received data and wait for commit and only after send response.
         * If False then server gives partition for other session right now.
         * All further commits for this partition session has no effect. Server is not waiting for response.
         * 
* * bool graceful = 2; * @param value The graceful to set. * @return This builder for chaining. */ public Builder setGraceful(boolean value) { graceful_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Flag of graceful stop.
         * If set, server will wait for response from client before giving this partition to other read session.
         * Server will not send more data from this partition.
         * Client can process all received data and wait for commit and only after send response.
         * If False then server gives partition for other session right now.
         * All further commits for this partition session has no effect. Server is not waiting for response.
         * 
* * bool graceful = 2; * @return This builder for chaining. */ public Builder clearGraceful() { bitField0_ = (bitField0_ & ~0x00000002); graceful_ = false; onChanged(); return this; } private long committedOffset_ ; /** *
         * Upper bound for committed offsets.
         * 
* * int64 committed_offset = 3; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } /** *
         * Upper bound for committed offsets.
         * 
* * int64 committed_offset = 3; * @param value The committedOffset to set. * @return This builder for chaining. */ public Builder setCommittedOffset(long value) { committedOffset_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Upper bound for committed offsets.
         * 
* * int64 committed_offset = 3; * @return This builder for chaining. */ public Builder clearCommittedOffset() { bitField0_ = (bitField0_ & ~0x00000004); committedOffset_ = 0L; onChanged(); return this; } private long lastDirectReadId_ ; /** *
         * Upper bound for read request identifiers, filled only when InitRequest.direct_read is true and graceful is true.
         * 
* * int64 last_direct_read_id = 4; * @return The lastDirectReadId. */ @java.lang.Override public long getLastDirectReadId() { return lastDirectReadId_; } /** *
         * Upper bound for read request identifiers, filled only when InitRequest.direct_read is true and graceful is true.
         * 
* * int64 last_direct_read_id = 4; * @param value The lastDirectReadId to set. * @return This builder for chaining. */ public Builder setLastDirectReadId(long value) { lastDirectReadId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Upper bound for read request identifiers, filled only when InitRequest.direct_read is true and graceful is true.
         * 
* * int64 last_direct_read_id = 4; * @return This builder for chaining. */ public Builder clearLastDirectReadId() { bitField0_ = (bitField0_ & ~0x00000008); lastDirectReadId_ = 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.Topic.StreamReadMessage.StopPartitionSessionRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.StopPartitionSessionRequest) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopPartitionSessionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopPartitionSessionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier of partition session that is released by client.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Flag of graceful stop, used only when InitRequest.direct_read is true
       * Client must pass this value unchanged from the StopPartitionSessionRequest.
       * Server can sent two StopPartitionSessionRequests, the first with graceful=true, the second with graceful=false. The client must answer both of them.
       * 
* * bool graceful = 2; * @return The graceful. */ boolean getGraceful(); } /** *
     * Signal for server that client finished working with this partition.
     * Must be sent only after corresponding StopPartitionSessionRequest from server.
     * Server will give this partition to other read session only after StopPartitionSessionResponse signal.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse} */ public static final class StopPartitionSessionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse) StopPartitionSessionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StopPartitionSessionResponse.newBuilder() to construct. private StopPartitionSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopPartitionSessionResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopPartitionSessionResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier of partition session that is released by client.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int GRACEFUL_FIELD_NUMBER = 2; private boolean graceful_ = false; /** *
       * Flag of graceful stop, used only when InitRequest.direct_read is true
       * Client must pass this value unchanged from the StopPartitionSessionRequest.
       * Server can sent two StopPartitionSessionRequests, the first with graceful=true, the second with graceful=false. The client must answer both of them.
       * 
* * bool graceful = 2; * @return The graceful. */ @java.lang.Override public boolean getGraceful() { return graceful_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (graceful_ != false) { output.writeBool(2, graceful_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (graceful_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, graceful_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getGraceful() != other.getGraceful()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + GRACEFUL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getGraceful()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse 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; } /** *
       * Signal for server that client finished working with this partition.
       * Must be sent only after corresponding StopPartitionSessionRequest from server.
       * Server will give this partition to other read session only after StopPartitionSessionResponse signal.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; graceful_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.graceful_ = graceful_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getGraceful() != false) { setGraceful(other.getGraceful()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { graceful_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier of partition session that is released by client.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier of partition session that is released by client.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier of partition session that is released by client.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private boolean graceful_ ; /** *
         * Flag of graceful stop, used only when InitRequest.direct_read is true
         * Client must pass this value unchanged from the StopPartitionSessionRequest.
         * Server can sent two StopPartitionSessionRequests, the first with graceful=true, the second with graceful=false. The client must answer both of them.
         * 
* * bool graceful = 2; * @return The graceful. */ @java.lang.Override public boolean getGraceful() { return graceful_; } /** *
         * Flag of graceful stop, used only when InitRequest.direct_read is true
         * Client must pass this value unchanged from the StopPartitionSessionRequest.
         * Server can sent two StopPartitionSessionRequests, the first with graceful=true, the second with graceful=false. The client must answer both of them.
         * 
* * bool graceful = 2; * @param value The graceful to set. * @return This builder for chaining. */ public Builder setGraceful(boolean value) { graceful_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Flag of graceful stop, used only when InitRequest.direct_read is true
         * Client must pass this value unchanged from the StopPartitionSessionRequest.
         * Server can sent two StopPartitionSessionRequests, the first with graceful=true, the second with graceful=false. The client must answer both of them.
         * 
* * bool graceful = 2; * @return This builder for chaining. */ public Builder clearGraceful() { bitField0_ = (bitField0_ & ~0x00000002); graceful_ = 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.Topic.StreamReadMessage.StopPartitionSessionResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.StopPartitionSessionResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopPartitionSessionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.StopPartitionSessionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdatePartitionSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.UpdatePartitionSession) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return Whether the partitionLocation field is set. */ boolean hasPartitionLocation(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return The partitionLocation. */ tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation(); /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder(); } /** *
     * Command from server to notify about a partition session update.
     * Client should not send a response to the command.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.UpdatePartitionSession} */ public static final class UpdatePartitionSession extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.UpdatePartitionSession) UpdatePartitionSessionOrBuilder { private static final long serialVersionUID = 0L; // Use UpdatePartitionSession.newBuilder() to construct. private UpdatePartitionSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdatePartitionSession() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdatePartitionSession(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder.class); } private int bitField0_; public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int PARTITION_LOCATION_FIELD_NUMBER = 2; private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return Whether the partitionLocation field is set. */ @java.lang.Override public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return The partitionLocation. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } /** *
       * Partition location, filled only when InitRequest.direct_read is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPartitionLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPartitionLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (hasPartitionLocation() != other.hasPartitionLocation()) return false; if (hasPartitionLocation()) { if (!getPartitionLocation() .equals(other.getPartitionLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); if (hasPartitionLocation()) { hash = (37 * hash) + PARTITION_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession 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; } /** *
       * Command from server to notify about a partition session update.
       * Client should not send a response to the command.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.UpdatePartitionSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.UpdatePartitionSession) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.partitionLocation_ = partitionLocationBuilder_ == null ? partitionLocation_ : partitionLocationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.hasPartitionLocation()) { mergePartitionLocation(other.getPartitionLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getPartitionLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> partitionLocationBuilder_; /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return Whether the partitionLocation field is set. */ public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; * @return The partitionLocation. */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { if (partitionLocationBuilder_ == null) { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } else { return partitionLocationBuilder_.getMessage(); } } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public Builder setPartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionLocation_ = value; } else { partitionLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public Builder setPartitionLocation( tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder builderForValue) { if (partitionLocationBuilder_ == null) { partitionLocation_ = builderForValue.build(); } else { partitionLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public Builder mergePartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && partitionLocation_ != null && partitionLocation_ != tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance()) { getPartitionLocationBuilder().mergeFrom(value); } else { partitionLocation_ = value; } } else { partitionLocationBuilder_.mergeFrom(value); } if (partitionLocation_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public Builder clearPartitionLocation() { bitField0_ = (bitField0_ & ~0x00000002); partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } onChanged(); return this; } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder getPartitionLocationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitionLocationFieldBuilder().getBuilder(); } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { if (partitionLocationBuilder_ != null) { return partitionLocationBuilder_.getMessageOrBuilder(); } else { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } } /** *
         * Partition location, filled only when InitRequest.direct_read is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> getPartitionLocationFieldBuilder() { if (partitionLocationBuilder_ == null) { partitionLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder>( getPartitionLocation(), getParentForChildren(), isClean()); partitionLocation_ = null; } return partitionLocationBuilder_; } @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.Topic.StreamReadMessage.UpdatePartitionSession) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.UpdatePartitionSession) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdatePartitionSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.UpdatePartitionSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DirectReadAckOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamReadMessage.DirectReadAck) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Identifier of the successfully completed read request.
       * 
* * int64 direct_read_id = 2; * @return The directReadId. */ long getDirectReadId(); } /** *
     * Signal for server that client has finished direct reading.
     * Server should not send a response to the command.
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.DirectReadAck} */ public static final class DirectReadAck extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamReadMessage.DirectReadAck) DirectReadAckOrBuilder { private static final long serialVersionUID = 0L; // Use DirectReadAck.newBuilder() to construct. private DirectReadAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DirectReadAck() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DirectReadAck(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int DIRECT_READ_ID_FIELD_NUMBER = 2; private long directReadId_ = 0L; /** *
       * Identifier of the successfully completed read request.
       * 
* * int64 direct_read_id = 2; * @return The directReadId. */ @java.lang.Override public long getDirectReadId() { return directReadId_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (directReadId_ != 0L) { output.writeInt64(2, directReadId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (directReadId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, directReadId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getDirectReadId() != other.getDirectReadId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + DIRECT_READ_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDirectReadId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck 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; } /** *
       * Signal for server that client has finished direct reading.
       * Server should not send a response to the command.
       * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage.DirectReadAck} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage.DirectReadAck) tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAckOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; directReadId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.directReadId_ = directReadId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getDirectReadId() != 0L) { setDirectReadId(other.getDirectReadId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { directReadId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private long directReadId_ ; /** *
         * Identifier of the successfully completed read request.
         * 
* * int64 direct_read_id = 2; * @return The directReadId. */ @java.lang.Override public long getDirectReadId() { return directReadId_; } /** *
         * Identifier of the successfully completed read request.
         * 
* * int64 direct_read_id = 2; * @param value The directReadId to set. * @return This builder for chaining. */ public Builder setDirectReadId(long value) { directReadId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Identifier of the successfully completed read request.
         * 
* * int64 direct_read_id = 2; * @return This builder for chaining. */ public Builder clearDirectReadId() { bitField0_ = (bitField0_ & ~0x00000002); directReadId_ = 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.Topic.StreamReadMessage.DirectReadAck) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage.DirectReadAck) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DirectReadAck parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.DirectReadAck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamReadMessage other = (tech.ydb.proto.topic.YdbTopic.StreamReadMessage) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage 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 tech.ydb.proto.topic.YdbTopic.StreamReadMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage 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(tech.ydb.proto.topic.YdbTopic.StreamReadMessage 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; } /** *
     * Messages for bidirectional streaming rpc StreamRead
     * 
* * Protobuf type {@code Ydb.Topic.StreamReadMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamReadMessage) tech.ydb.proto.topic.YdbTopic.StreamReadMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.class, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamReadMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamReadMessage_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamReadMessage.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage build() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamReadMessage result = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.StreamReadMessage) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamReadMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamReadMessage other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamReadMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.StreamReadMessage) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamReadMessage) private static final tech.ydb.proto.topic.YdbTopic.StreamReadMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamReadMessage(); } public static tech.ydb.proto.topic.YdbTopic.StreamReadMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamReadMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamDirectReadMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage) com.google.protobuf.MessageOrBuilder { } /** *
   * Messages for bidirectional streaming rpc StreamDirectRead
   * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage} */ public static final class StreamDirectReadMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage) StreamDirectReadMessageOrBuilder { private static final long serialVersionUID = 0L; // Use StreamDirectReadMessage.newBuilder() to construct. private StreamDirectReadMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamDirectReadMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamDirectReadMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.Builder.class); } public interface FromClientOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.FromClient) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return Whether the initDirectRead field is set. */ boolean hasInitDirectRead(); /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return The initDirectRead. */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getInitDirectRead(); /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder getInitDirectReadOrBuilder(); /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return Whether the startDirectReadPartitionSession field is set. */ boolean hasStartDirectReadPartitionSession(); /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return The startDirectReadPartitionSession. */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getStartDirectReadPartitionSession(); /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder getStartDirectReadPartitionSessionOrBuilder(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ boolean hasUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest(); /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.ClientMessageCase getClientMessageCase(); } /** *
     * Client-server message for direct read session.
     *     InitDirectRead - command from client to create and start a direct read session.
     *     StartDirectReadPartitionSession - command from client to create and start a direct read partition session.
     *     UpdateTokenRequest - request to update auth token
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.FromClient} */ public static final class FromClient extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.FromClient) FromClientOrBuilder { private static final long serialVersionUID = 0L; // Use FromClient.newBuilder() to construct. private FromClient(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromClient() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromClient(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.Builder.class); } private int clientMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object clientMessage_; public enum ClientMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INIT_DIRECT_READ(1), START_DIRECT_READ_PARTITION_SESSION(2), UPDATE_TOKEN_REQUEST(3), CLIENTMESSAGE_NOT_SET(0); private final int value; private ClientMessageCase(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 ClientMessageCase valueOf(int value) { return forNumber(value); } public static ClientMessageCase forNumber(int value) { switch (value) { case 1: return INIT_DIRECT_READ; case 2: return START_DIRECT_READ_PARTITION_SESSION; case 3: return UPDATE_TOKEN_REQUEST; case 0: return CLIENTMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public static final int INIT_DIRECT_READ_FIELD_NUMBER = 1; /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return Whether the initDirectRead field is set. */ @java.lang.Override public boolean hasInitDirectRead() { return clientMessageCase_ == 1; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return The initDirectRead. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getInitDirectRead() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder getInitDirectReadOrBuilder() { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } public static final int START_DIRECT_READ_PARTITION_SESSION_FIELD_NUMBER = 2; /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return Whether the startDirectReadPartitionSession field is set. */ @java.lang.Override public boolean hasStartDirectReadPartitionSession() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return The startDirectReadPartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getStartDirectReadPartitionSession() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder getStartDirectReadPartitionSessionOrBuilder() { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } public static final int UPDATE_TOKEN_REQUEST_FIELD_NUMBER = 3; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.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 (clientMessageCase_ == 1) { output.writeMessage(1, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_); } if (clientMessageCase_ == 2) { output.writeMessage(2, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_); } if (clientMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (clientMessageCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_); } if (clientMessageCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_); } if (clientMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient) obj; if (!getClientMessageCase().equals(other.getClientMessageCase())) return false; switch (clientMessageCase_) { case 1: if (!getInitDirectRead() .equals(other.getInitDirectRead())) return false; break; case 2: if (!getStartDirectReadPartitionSession() .equals(other.getStartDirectReadPartitionSession())) return false; break; case 3: if (!getUpdateTokenRequest() .equals(other.getUpdateTokenRequest())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (clientMessageCase_) { case 1: hash = (37 * hash) + INIT_DIRECT_READ_FIELD_NUMBER; hash = (53 * hash) + getInitDirectRead().hashCode(); break; case 2: hash = (37 * hash) + START_DIRECT_READ_PARTITION_SESSION_FIELD_NUMBER; hash = (53 * hash) + getStartDirectReadPartitionSession().hashCode(); break; case 3: hash = (37 * hash) + UPDATE_TOKEN_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenRequest().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient 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; } /** *
       * Client-server message for direct read session.
       *     InitDirectRead - command from client to create and start a direct read session.
       *     StartDirectReadPartitionSession - command from client to create and start a direct read partition session.
       *     UpdateTokenRequest - request to update auth token
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.FromClient} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.FromClient) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClientOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (initDirectReadBuilder_ != null) { initDirectReadBuilder_.clear(); } if (startDirectReadPartitionSessionBuilder_ != null) { startDirectReadPartitionSessionBuilder_.clear(); } if (updateTokenRequestBuilder_ != null) { updateTokenRequestBuilder_.clear(); } clientMessageCase_ = 0; clientMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient result) { result.clientMessageCase_ = clientMessageCase_; result.clientMessage_ = this.clientMessage_; if (clientMessageCase_ == 1 && initDirectReadBuilder_ != null) { result.clientMessage_ = initDirectReadBuilder_.build(); } if (clientMessageCase_ == 2 && startDirectReadPartitionSessionBuilder_ != null) { result.clientMessage_ = startDirectReadPartitionSessionBuilder_.build(); } if (clientMessageCase_ == 3 && updateTokenRequestBuilder_ != null) { result.clientMessage_ = updateTokenRequestBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient.getDefaultInstance()) return this; switch (other.getClientMessageCase()) { case INIT_DIRECT_READ: { mergeInitDirectRead(other.getInitDirectRead()); break; } case START_DIRECT_READ_PARTITION_SESSION: { mergeStartDirectReadPartitionSession(other.getStartDirectReadPartitionSession()); break; } case UPDATE_TOKEN_REQUEST: { mergeUpdateTokenRequest(other.getUpdateTokenRequest()); break; } case CLIENTMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInitDirectReadFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 1; break; } // case 10 case 18: { input.readMessage( getStartDirectReadPartitionSessionFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 2; break; } // case 18 case 26: { input.readMessage( getUpdateTokenRequestFieldBuilder().getBuilder(), extensionRegistry); clientMessageCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int clientMessageCase_ = 0; private java.lang.Object clientMessage_; public ClientMessageCase getClientMessageCase() { return ClientMessageCase.forNumber( clientMessageCase_); } public Builder clearClientMessage() { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder> initDirectReadBuilder_; /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return Whether the initDirectRead field is set. */ @java.lang.Override public boolean hasInitDirectRead() { return clientMessageCase_ == 1; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; * @return The initDirectRead. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getInitDirectRead() { if (initDirectReadBuilder_ == null) { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } else { if (clientMessageCase_ == 1) { return initDirectReadBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ public Builder setInitDirectRead(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead value) { if (initDirectReadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { initDirectReadBuilder_.setMessage(value); } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ public Builder setInitDirectRead( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder builderForValue) { if (initDirectReadBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { initDirectReadBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ public Builder mergeInitDirectRead(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead value) { if (initDirectReadBuilder_ == null) { if (clientMessageCase_ == 1 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 1) { initDirectReadBuilder_.mergeFrom(value); } else { initDirectReadBuilder_.setMessage(value); } } clientMessageCase_ = 1; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ public Builder clearInitDirectRead() { if (initDirectReadBuilder_ == null) { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 1) { clientMessageCase_ = 0; clientMessage_ = null; } initDirectReadBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder getInitDirectReadBuilder() { return getInitDirectReadFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder getInitDirectReadOrBuilder() { if ((clientMessageCase_ == 1) && (initDirectReadBuilder_ != null)) { return initDirectReadBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 1) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.InitDirectRead init_direct_read = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder> getInitDirectReadFieldBuilder() { if (initDirectReadBuilder_ == null) { if (!(clientMessageCase_ == 1)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } initDirectReadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 1; onChanged(); return initDirectReadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder> startDirectReadPartitionSessionBuilder_; /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return Whether the startDirectReadPartitionSession field is set. */ @java.lang.Override public boolean hasStartDirectReadPartitionSession() { return clientMessageCase_ == 2; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; * @return The startDirectReadPartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getStartDirectReadPartitionSession() { if (startDirectReadPartitionSessionBuilder_ == null) { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } else { if (clientMessageCase_ == 2) { return startDirectReadPartitionSessionBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ public Builder setStartDirectReadPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession value) { if (startDirectReadPartitionSessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { startDirectReadPartitionSessionBuilder_.setMessage(value); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ public Builder setStartDirectReadPartitionSession( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder builderForValue) { if (startDirectReadPartitionSessionBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { startDirectReadPartitionSessionBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ public Builder mergeStartDirectReadPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession value) { if (startDirectReadPartitionSessionBuilder_ == null) { if (clientMessageCase_ == 2 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 2) { startDirectReadPartitionSessionBuilder_.mergeFrom(value); } else { startDirectReadPartitionSessionBuilder_.setMessage(value); } } clientMessageCase_ = 2; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ public Builder clearStartDirectReadPartitionSession() { if (startDirectReadPartitionSessionBuilder_ == null) { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 2) { clientMessageCase_ = 0; clientMessage_ = null; } startDirectReadPartitionSessionBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder getStartDirectReadPartitionSessionBuilder() { return getStartDirectReadPartitionSessionFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder getStartDirectReadPartitionSessionOrBuilder() { if ((clientMessageCase_ == 2) && (startDirectReadPartitionSessionBuilder_ != null)) { return startDirectReadPartitionSessionBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 2) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession start_direct_read_partition_session = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder> getStartDirectReadPartitionSessionFieldBuilder() { if (startDirectReadPartitionSessionBuilder_ == null) { if (!(clientMessageCase_ == 2)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } startDirectReadPartitionSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 2; onChanged(); return startDirectReadPartitionSessionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> updateTokenRequestBuilder_; /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return Whether the updateTokenRequest field is set. */ @java.lang.Override public boolean hasUpdateTokenRequest() { return clientMessageCase_ == 3; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; * @return The updateTokenRequest. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest getUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } else { if (clientMessageCase_ == 3) { return updateTokenRequestBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder setUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientMessage_ = value; onChanged(); } else { updateTokenRequestBuilder_.setMessage(value); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder setUpdateTokenRequest( tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder builderForValue) { if (updateTokenRequestBuilder_ == null) { clientMessage_ = builderForValue.build(); onChanged(); } else { updateTokenRequestBuilder_.setMessage(builderForValue.build()); } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder mergeUpdateTokenRequest(tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest value) { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3 && clientMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance()) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_) .mergeFrom(value).buildPartial(); } else { clientMessage_ = value; } onChanged(); } else { if (clientMessageCase_ == 3) { updateTokenRequestBuilder_.mergeFrom(value); } else { updateTokenRequestBuilder_.setMessage(value); } } clientMessageCase_ = 3; return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public Builder clearUpdateTokenRequest() { if (updateTokenRequestBuilder_ == null) { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; onChanged(); } } else { if (clientMessageCase_ == 3) { clientMessageCase_ = 0; clientMessage_ = null; } updateTokenRequestBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder getUpdateTokenRequestBuilder() { return getUpdateTokenRequestFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder getUpdateTokenRequestOrBuilder() { if ((clientMessageCase_ == 3) && (updateTokenRequestBuilder_ != null)) { return updateTokenRequestBuilder_.getMessageOrBuilder(); } else { if (clientMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenRequest update_token_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder> getUpdateTokenRequestFieldBuilder() { if (updateTokenRequestBuilder_ == null) { if (!(clientMessageCase_ == 3)) { clientMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.getDefaultInstance(); } updateTokenRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenRequestOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenRequest) clientMessage_, getParentForChildren(), isClean()); clientMessage_ = null; } clientMessageCase_ = 3; onChanged(); return updateTokenRequestBuilder_; } @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.Topic.StreamDirectReadMessage.FromClient) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.FromClient) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromClient parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromClient getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FromServerOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.FromServer) com.google.protobuf.MessageOrBuilder { /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return Whether the stopDirectReadPartitionSession field is set. */ boolean hasStopDirectReadPartitionSession(); /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return The stopDirectReadPartitionSession. */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getStopDirectReadPartitionSession(); /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder getStopDirectReadPartitionSessionOrBuilder(); /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return Whether the directReadResponse field is set. */ boolean hasDirectReadResponse(); /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return The directReadResponse. */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDirectReadResponse(); /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder getDirectReadResponseOrBuilder(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ boolean hasUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse(); /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder(); tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.ServerMessageCase getServerMessageCase(); } /** *
     * Server-client message for direct read session.
     *     DirectReadResponse - portion of message data.
     *     StopDirectReadPartitionSession - command from server to stop a direct read partition session.
     *     UpdateTokenResponse - acknowledgment of token update.
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.FromServer} */ public static final class FromServer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.FromServer) FromServerOrBuilder { private static final long serialVersionUID = 0L; // Use FromServer.newBuilder() to construct. private FromServer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FromServer() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FromServer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.Builder.class); } private int serverMessageCase_ = 0; @SuppressWarnings("serial") private java.lang.Object serverMessage_; public enum ServerMessageCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STOP_DIRECT_READ_PARTITION_SESSION(3), DIRECT_READ_RESPONSE(4), UPDATE_TOKEN_RESPONSE(5), SERVERMESSAGE_NOT_SET(0); private final int value; private ServerMessageCase(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 ServerMessageCase valueOf(int value) { return forNumber(value); } public static ServerMessageCase forNumber(int value) { switch (value) { case 3: return STOP_DIRECT_READ_PARTITION_SESSION; case 4: return DIRECT_READ_RESPONSE; case 5: return UPDATE_TOKEN_RESPONSE; case 0: return SERVERMESSAGE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public static final int STATUS_FIELD_NUMBER = 1; private int status_ = 0; /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Server status of response.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List issues_; /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int STOP_DIRECT_READ_PARTITION_SESSION_FIELD_NUMBER = 3; /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return Whether the stopDirectReadPartitionSession field is set. */ @java.lang.Override public boolean hasStopDirectReadPartitionSession() { return serverMessageCase_ == 3; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return The stopDirectReadPartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getStopDirectReadPartitionSession() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder getStopDirectReadPartitionSessionOrBuilder() { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } public static final int DIRECT_READ_RESPONSE_FIELD_NUMBER = 4; /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return Whether the directReadResponse field is set. */ @java.lang.Override public boolean hasDirectReadResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return The directReadResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDirectReadResponse() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder getDirectReadResponseOrBuilder() { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } public static final int UPDATE_TOKEN_RESPONSE_FIELD_NUMBER = 5; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.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 (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } if (serverMessageCase_ == 3) { output.writeMessage(3, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_); } if (serverMessageCase_ == 4) { output.writeMessage(4, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_); } if (serverMessageCase_ == 5) { output.writeMessage(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } if (serverMessageCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_); } if (serverMessageCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_); } if (serverMessageCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (!getServerMessageCase().equals(other.getServerMessageCase())) return false; switch (serverMessageCase_) { case 3: if (!getStopDirectReadPartitionSession() .equals(other.getStopDirectReadPartitionSession())) return false; break; case 4: if (!getDirectReadResponse() .equals(other.getDirectReadResponse())) return false; break; case 5: if (!getUpdateTokenResponse() .equals(other.getUpdateTokenResponse())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } switch (serverMessageCase_) { case 3: hash = (37 * hash) + STOP_DIRECT_READ_PARTITION_SESSION_FIELD_NUMBER; hash = (53 * hash) + getStopDirectReadPartitionSession().hashCode(); break; case 4: hash = (37 * hash) + DIRECT_READ_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getDirectReadResponse().hashCode(); break; case 5: hash = (37 * hash) + UPDATE_TOKEN_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getUpdateTokenResponse().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer 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; } /** *
       * Server-client message for direct read session.
       *     DirectReadResponse - portion of message data.
       *     StopDirectReadPartitionSession - command from server to stop a direct read partition session.
       *     UpdateTokenResponse - acknowledgment of token update.
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.FromServer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.FromServer) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (stopDirectReadPartitionSessionBuilder_ != null) { stopDirectReadPartitionSessionBuilder_.clear(); } if (directReadResponseBuilder_ != null) { directReadResponseBuilder_.clear(); } if (updateTokenResponseBuilder_ != null) { updateTokenResponseBuilder_.clear(); } serverMessageCase_ = 0; serverMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } } private void buildPartialOneofs(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer result) { result.serverMessageCase_ = serverMessageCase_; result.serverMessage_ = this.serverMessage_; if (serverMessageCase_ == 3 && stopDirectReadPartitionSessionBuilder_ != null) { result.serverMessage_ = stopDirectReadPartitionSessionBuilder_.build(); } if (serverMessageCase_ == 4 && directReadResponseBuilder_ != null) { result.serverMessage_ = directReadResponseBuilder_.build(); } if (serverMessageCase_ == 5 && updateTokenResponseBuilder_ != null) { result.serverMessage_ = updateTokenResponseBuilder_.build(); } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } switch (other.getServerMessageCase()) { case STOP_DIRECT_READ_PARTITION_SESSION: { mergeStopDirectReadPartitionSession(other.getStopDirectReadPartitionSession()); break; } case DIRECT_READ_RESPONSE: { mergeDirectReadResponse(other.getDirectReadResponse()); break; } case UPDATE_TOKEN_RESPONSE: { mergeUpdateTokenResponse(other.getUpdateTokenResponse()); break; } case SERVERMESSAGE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getStopDirectReadPartitionSessionFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 3; break; } // case 26 case 34: { input.readMessage( getDirectReadResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 4; break; } // case 34 case 42: { input.readMessage( getUpdateTokenResponseFieldBuilder().getBuilder(), extensionRegistry); serverMessageCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int serverMessageCase_ = 0; private java.lang.Object serverMessage_; public ServerMessageCase getServerMessageCase() { return ServerMessageCase.forNumber( serverMessageCase_); } public Builder clearServerMessage() { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); return this; } private int bitField0_; private int status_ = 0; /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** *
         * Server status of response.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder> stopDirectReadPartitionSessionBuilder_; /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return Whether the stopDirectReadPartitionSession field is set. */ @java.lang.Override public boolean hasStopDirectReadPartitionSession() { return serverMessageCase_ == 3; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; * @return The stopDirectReadPartitionSession. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getStopDirectReadPartitionSession() { if (stopDirectReadPartitionSessionBuilder_ == null) { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } else { if (serverMessageCase_ == 3) { return stopDirectReadPartitionSessionBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ public Builder setStopDirectReadPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession value) { if (stopDirectReadPartitionSessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { stopDirectReadPartitionSessionBuilder_.setMessage(value); } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ public Builder setStopDirectReadPartitionSession( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder builderForValue) { if (stopDirectReadPartitionSessionBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { stopDirectReadPartitionSessionBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ public Builder mergeStopDirectReadPartitionSession(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession value) { if (stopDirectReadPartitionSessionBuilder_ == null) { if (serverMessageCase_ == 3 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 3) { stopDirectReadPartitionSessionBuilder_.mergeFrom(value); } else { stopDirectReadPartitionSessionBuilder_.setMessage(value); } } serverMessageCase_ = 3; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ public Builder clearStopDirectReadPartitionSession() { if (stopDirectReadPartitionSessionBuilder_ == null) { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 3) { serverMessageCase_ = 0; serverMessage_ = null; } stopDirectReadPartitionSessionBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder getStopDirectReadPartitionSessionBuilder() { return getStopDirectReadPartitionSessionFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder getStopDirectReadPartitionSessionOrBuilder() { if ((serverMessageCase_ == 3) && (stopDirectReadPartitionSessionBuilder_ != null)) { return stopDirectReadPartitionSessionBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 3) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession stop_direct_read_partition_session = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder> getStopDirectReadPartitionSessionFieldBuilder() { if (stopDirectReadPartitionSessionBuilder_ == null) { if (!(serverMessageCase_ == 3)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } stopDirectReadPartitionSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 3; onChanged(); return stopDirectReadPartitionSessionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder> directReadResponseBuilder_; /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return Whether the directReadResponse field is set. */ @java.lang.Override public boolean hasDirectReadResponse() { return serverMessageCase_ == 4; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; * @return The directReadResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDirectReadResponse() { if (directReadResponseBuilder_ == null) { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 4) { return directReadResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ public Builder setDirectReadResponse(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse value) { if (directReadResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { directReadResponseBuilder_.setMessage(value); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ public Builder setDirectReadResponse( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder builderForValue) { if (directReadResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { directReadResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ public Builder mergeDirectReadResponse(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse value) { if (directReadResponseBuilder_ == null) { if (serverMessageCase_ == 4 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 4) { directReadResponseBuilder_.mergeFrom(value); } else { directReadResponseBuilder_.setMessage(value); } } serverMessageCase_ = 4; return this; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ public Builder clearDirectReadResponse() { if (directReadResponseBuilder_ == null) { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 4) { serverMessageCase_ = 0; serverMessage_ = null; } directReadResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder getDirectReadResponseBuilder() { return getDirectReadResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder getDirectReadResponseOrBuilder() { if ((serverMessageCase_ == 4) && (directReadResponseBuilder_ != null)) { return directReadResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 4) { return (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } } /** * .Ydb.Topic.StreamDirectReadMessage.DirectReadResponse direct_read_response = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder> getDirectReadResponseFieldBuilder() { if (directReadResponseBuilder_ == null) { if (!(serverMessageCase_ == 4)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } directReadResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 4; onChanged(); return directReadResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> updateTokenResponseBuilder_; /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return Whether the updateTokenResponse field is set. */ @java.lang.Override public boolean hasUpdateTokenResponse() { return serverMessageCase_ == 5; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; * @return The updateTokenResponse. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse getUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } else { if (serverMessageCase_ == 5) { return updateTokenResponseBuilder_.getMessage(); } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder setUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMessage_ = value; onChanged(); } else { updateTokenResponseBuilder_.setMessage(value); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder setUpdateTokenResponse( tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder builderForValue) { if (updateTokenResponseBuilder_ == null) { serverMessage_ = builderForValue.build(); onChanged(); } else { updateTokenResponseBuilder_.setMessage(builderForValue.build()); } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder mergeUpdateTokenResponse(tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse value) { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5 && serverMessage_ != tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance()) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.newBuilder((tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_) .mergeFrom(value).buildPartial(); } else { serverMessage_ = value; } onChanged(); } else { if (serverMessageCase_ == 5) { updateTokenResponseBuilder_.mergeFrom(value); } else { updateTokenResponseBuilder_.setMessage(value); } } serverMessageCase_ = 5; return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public Builder clearUpdateTokenResponse() { if (updateTokenResponseBuilder_ == null) { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; onChanged(); } } else { if (serverMessageCase_ == 5) { serverMessageCase_ = 0; serverMessage_ = null; } updateTokenResponseBuilder_.clear(); } return this; } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder getUpdateTokenResponseBuilder() { return getUpdateTokenResponseFieldBuilder().getBuilder(); } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder getUpdateTokenResponseOrBuilder() { if ((serverMessageCase_ == 5) && (updateTokenResponseBuilder_ != null)) { return updateTokenResponseBuilder_.getMessageOrBuilder(); } else { if (serverMessageCase_ == 5) { return (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_; } return tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } } /** * .Ydb.Topic.UpdateTokenResponse update_token_response = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder> getUpdateTokenResponseFieldBuilder() { if (updateTokenResponseBuilder_ == null) { if (!(serverMessageCase_ == 5)) { serverMessage_ = tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.getDefaultInstance(); } updateTokenResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse.Builder, tech.ydb.proto.topic.YdbTopic.UpdateTokenResponseOrBuilder>( (tech.ydb.proto.topic.YdbTopic.UpdateTokenResponse) serverMessage_, getParentForChildren(), isClean()); serverMessage_ = null; } serverMessageCase_ = 5; onChanged(); return updateTokenResponseBuilder_; } @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.Topic.StreamDirectReadMessage.FromServer) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.FromServer) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FromServer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.FromServer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InitDirectReadOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.InitDirectRead) com.google.protobuf.MessageOrBuilder { /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The sessionId. */ java.lang.String getSessionId(); /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The bytes for sessionId. */ com.google.protobuf.ByteString getSessionIdBytes(); /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ java.util.List getTopicsReadSettingsList(); /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getTopicsReadSettings(int index); /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ int getTopicsReadSettingsCount(); /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ java.util.List getTopicsReadSettingsOrBuilderList(); /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index); /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 3; * @return The consumer. */ java.lang.String getConsumer(); /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 3; * @return The bytes for consumer. */ com.google.protobuf.ByteString getConsumerBytes(); } /** *
     * Command from client to create and start a direct read session.
     * Server should not send a response to the command.
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.InitDirectRead} */ public static final class InitDirectRead extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.InitDirectRead) InitDirectReadOrBuilder { private static final long serialVersionUID = 0L; // Use InitDirectRead.newBuilder() to construct. private InitDirectRead(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InitDirectRead() { sessionId_ = ""; topicsReadSettings_ = java.util.Collections.emptyList(); consumer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InitDirectRead(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder.class); } public interface TopicReadSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) com.google.protobuf.MessageOrBuilder { /** *
         * Topic path.
         * 
* * string path = 1; * @return The path. */ java.lang.String getPath(); /** *
         * Topic path.
         * 
* * string path = 1; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); } /** * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings} */ public static final class TopicReadSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) TopicReadSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use TopicReadSettings.newBuilder() to construct. private TopicReadSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicReadSettings() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicReadSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
         * Topic path.
         * 
* * string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
         * Topic path.
         * 
* * string path = 1; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = 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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) obj; if (!getPath() .equals(other.getPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings 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.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; path_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
           * Topic path.
           * 
* * string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
           * Topic path.
           * 
* * string path = 1; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
           * Topic path.
           * 
* * string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Topic path.
           * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
           * Topic path.
           * 
* * string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; 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.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicReadSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SESSION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object sessionId_ = ""; /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The sessionId. */ @java.lang.Override public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; 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(); sessionId_ = s; return s; } } /** *
       * Read session identifier.
       * 
* * string session_id = 1; * @return The bytes for sessionId. */ @java.lang.Override public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOPICS_READ_SETTINGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List topicsReadSettings_; /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ @java.lang.Override public java.util.List getTopicsReadSettingsList() { return topicsReadSettings_; } /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ @java.lang.Override public java.util.List getTopicsReadSettingsOrBuilderList() { return topicsReadSettings_; } /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ @java.lang.Override public int getTopicsReadSettingsCount() { return topicsReadSettings_.size(); } /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getTopicsReadSettings(int index) { return topicsReadSettings_.get(index); } /** *
       * Topics that will be read by this session.
       * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index) { return topicsReadSettings_.get(index); } public static final int CONSUMER_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object consumer_ = ""; /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 3; * @return The consumer. */ @java.lang.Override public java.lang.String getConsumer() { java.lang.Object ref = consumer_; 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(); consumer_ = s; return s; } } /** *
       * Path of consumer that is used for reading by this session.
       * 
* * string consumer = 3; * @return The bytes for consumer. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = 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(sessionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_); } for (int i = 0; i < topicsReadSettings_.size(); i++) { output.writeMessage(2, topicsReadSettings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumer_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_); } for (int i = 0; i < topicsReadSettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, topicsReadSettings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) obj; if (!getSessionId() .equals(other.getSessionId())) return false; if (!getTopicsReadSettingsList() .equals(other.getTopicsReadSettingsList())) return false; if (!getConsumer() .equals(other.getConsumer())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getSessionId().hashCode(); if (getTopicsReadSettingsCount() > 0) { hash = (37 * hash) + TOPICS_READ_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getTopicsReadSettingsList().hashCode(); } hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead 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; } /** *
       * Command from client to create and start a direct read session.
       * Server should not send a response to the command.
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.InitDirectRead} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.InitDirectRead) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectReadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; sessionId_ = ""; if (topicsReadSettingsBuilder_ == null) { topicsReadSettings_ = java.util.Collections.emptyList(); } else { topicsReadSettings_ = null; topicsReadSettingsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); consumer_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead result) { if (topicsReadSettingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { topicsReadSettings_ = java.util.Collections.unmodifiableList(topicsReadSettings_); bitField0_ = (bitField0_ & ~0x00000002); } result.topicsReadSettings_ = topicsReadSettings_; } else { result.topicsReadSettings_ = topicsReadSettingsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sessionId_ = sessionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consumer_ = consumer_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.getDefaultInstance()) return this; if (!other.getSessionId().isEmpty()) { sessionId_ = other.sessionId_; bitField0_ |= 0x00000001; onChanged(); } if (topicsReadSettingsBuilder_ == null) { if (!other.topicsReadSettings_.isEmpty()) { if (topicsReadSettings_.isEmpty()) { topicsReadSettings_ = other.topicsReadSettings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.addAll(other.topicsReadSettings_); } onChanged(); } } else { if (!other.topicsReadSettings_.isEmpty()) { if (topicsReadSettingsBuilder_.isEmpty()) { topicsReadSettingsBuilder_.dispose(); topicsReadSettingsBuilder_ = null; topicsReadSettings_ = other.topicsReadSettings_; bitField0_ = (bitField0_ & ~0x00000002); topicsReadSettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopicsReadSettingsFieldBuilder() : null; } else { topicsReadSettingsBuilder_.addAllMessages(other.topicsReadSettings_); } } } if (!other.getConsumer().isEmpty()) { consumer_ = other.consumer_; bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { sessionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings m = input.readMessage( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.parser(), extensionRegistry); if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(m); } else { topicsReadSettingsBuilder_.addMessage(m); } break; } // case 18 case 26: { consumer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object sessionId_ = ""; /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return The sessionId. */ public java.lang.String getSessionId() { java.lang.Object ref = sessionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sessionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return The bytes for sessionId. */ public com.google.protobuf.ByteString getSessionIdBytes() { java.lang.Object ref = sessionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Read session identifier.
         * 
* * string session_id = 1; * @param value The bytes for sessionId to set. * @return This builder for chaining. */ public Builder setSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List topicsReadSettings_ = java.util.Collections.emptyList(); private void ensureTopicsReadSettingsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { topicsReadSettings_ = new java.util.ArrayList(topicsReadSettings_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder> topicsReadSettingsBuilder_; /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public java.util.List getTopicsReadSettingsList() { if (topicsReadSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(topicsReadSettings_); } else { return topicsReadSettingsBuilder_.getMessageList(); } } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public int getTopicsReadSettingsCount() { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.size(); } else { return topicsReadSettingsBuilder_.getCount(); } } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings getTopicsReadSettings(int index) { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.get(index); } else { return topicsReadSettingsBuilder_.getMessage(index); } } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder setTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.set(index, value); onChanged(); } else { topicsReadSettingsBuilder_.setMessage(index, value); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder setTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.set(index, builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder addTopicsReadSettings(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(value); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(value); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder addTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings value) { if (topicsReadSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(index, value); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(index, value); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder addTopicsReadSettings( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder addTopicsReadSettings( int index, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder builderForValue) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.add(index, builderForValue.build()); onChanged(); } else { topicsReadSettingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder addAllTopicsReadSettings( java.lang.Iterable values) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topicsReadSettings_); onChanged(); } else { topicsReadSettingsBuilder_.addAllMessages(values); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder clearTopicsReadSettings() { if (topicsReadSettingsBuilder_ == null) { topicsReadSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { topicsReadSettingsBuilder_.clear(); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public Builder removeTopicsReadSettings(int index) { if (topicsReadSettingsBuilder_ == null) { ensureTopicsReadSettingsIsMutable(); topicsReadSettings_.remove(index); onChanged(); } else { topicsReadSettingsBuilder_.remove(index); } return this; } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder getTopicsReadSettingsBuilder( int index) { return getTopicsReadSettingsFieldBuilder().getBuilder(index); } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder getTopicsReadSettingsOrBuilder( int index) { if (topicsReadSettingsBuilder_ == null) { return topicsReadSettings_.get(index); } else { return topicsReadSettingsBuilder_.getMessageOrBuilder(index); } } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public java.util.List getTopicsReadSettingsOrBuilderList() { if (topicsReadSettingsBuilder_ != null) { return topicsReadSettingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topicsReadSettings_); } } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder addTopicsReadSettingsBuilder() { return getTopicsReadSettingsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.getDefaultInstance()); } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder addTopicsReadSettingsBuilder( int index) { return getTopicsReadSettingsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.getDefaultInstance()); } /** *
         * Topics that will be read by this session.
         * 
* * repeated .Ydb.Topic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings topics_read_settings = 2; */ public java.util.List getTopicsReadSettingsBuilderList() { return getTopicsReadSettingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder> getTopicsReadSettingsFieldBuilder() { if (topicsReadSettingsBuilder_ == null) { topicsReadSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettings.Builder, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead.TopicReadSettingsOrBuilder>( topicsReadSettings_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); topicsReadSettings_ = null; } return topicsReadSettingsBuilder_; } private java.lang.Object consumer_ = ""; /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 3; * @return The consumer. */ public java.lang.String getConsumer() { java.lang.Object ref = consumer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 3; * @return The bytes for consumer. */ public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 3; * @param value The consumer to set. * @return This builder for chaining. */ public Builder setConsumer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumer_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 3; * @return This builder for chaining. */ public Builder clearConsumer() { consumer_ = getDefaultInstance().getConsumer(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
         * Path of consumer that is used for reading by this session.
         * 
* * string consumer = 3; * @param value The bytes for consumer to set. * @return This builder for chaining. */ public Builder setConsumerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumer_ = value; bitField0_ |= 0x00000004; 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.Topic.StreamDirectReadMessage.InitDirectRead) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.InitDirectRead) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InitDirectRead parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.InitDirectRead getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartDirectReadPartitionSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Upper bound for read request identifiers.
       * 
* * int64 last_direct_read_id = 2; * @return The lastDirectReadId. */ long getLastDirectReadId(); /** *
       * Partition generation.
       * 
* * int64 generation = 3; * @return The generation. */ long getGeneration(); } /** *
     * Command from client to create and start a direct read partition session.
     * Server should not send a response to the command.
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession} */ public static final class StartDirectReadPartitionSession extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession) StartDirectReadPartitionSessionOrBuilder { private static final long serialVersionUID = 0L; // Use StartDirectReadPartitionSession.newBuilder() to construct. private StartDirectReadPartitionSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartDirectReadPartitionSession() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartDirectReadPartitionSession(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder.class); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int LAST_DIRECT_READ_ID_FIELD_NUMBER = 2; private long lastDirectReadId_ = 0L; /** *
       * Upper bound for read request identifiers.
       * 
* * int64 last_direct_read_id = 2; * @return The lastDirectReadId. */ @java.lang.Override public long getLastDirectReadId() { return lastDirectReadId_; } public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** *
       * Partition generation.
       * 
* * int64 generation = 3; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (lastDirectReadId_ != 0L) { output.writeInt64(2, lastDirectReadId_); } if (generation_ != 0L) { output.writeInt64(3, generation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (lastDirectReadId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, lastDirectReadId_); } if (generation_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, generation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getLastDirectReadId() != other.getLastDirectReadId()) return false; if (getGeneration() != other.getGeneration()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + LAST_DIRECT_READ_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastDirectReadId()); hash = (37 * hash) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGeneration()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession 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; } /** *
       * Command from client to create and start a direct read partition session.
       * Server should not send a response to the command.
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; lastDirectReadId_ = 0L; generation_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.lastDirectReadId_ = lastDirectReadId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.generation_ = generation_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getLastDirectReadId() != 0L) { setLastDirectReadId(other.getLastDirectReadId()); } if (other.getGeneration() != 0L) { setGeneration(other.getGeneration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { lastDirectReadId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { generation_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private long lastDirectReadId_ ; /** *
         * Upper bound for read request identifiers.
         * 
* * int64 last_direct_read_id = 2; * @return The lastDirectReadId. */ @java.lang.Override public long getLastDirectReadId() { return lastDirectReadId_; } /** *
         * Upper bound for read request identifiers.
         * 
* * int64 last_direct_read_id = 2; * @param value The lastDirectReadId to set. * @return This builder for chaining. */ public Builder setLastDirectReadId(long value) { lastDirectReadId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Upper bound for read request identifiers.
         * 
* * int64 last_direct_read_id = 2; * @return This builder for chaining. */ public Builder clearLastDirectReadId() { bitField0_ = (bitField0_ & ~0x00000002); lastDirectReadId_ = 0L; onChanged(); return this; } private long generation_ ; /** *
         * Partition generation.
         * 
* * int64 generation = 3; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } /** *
         * Partition generation.
         * 
* * int64 generation = 3; * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { generation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Partition generation.
         * 
* * int64 generation = 3; * @return This builder for chaining. */ public Builder clearGeneration() { bitField0_ = (bitField0_ & ~0x00000004); generation_ = 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.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.StartDirectReadPartitionSession) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartDirectReadPartitionSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StartDirectReadPartitionSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopDirectReadPartitionSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession) com.google.protobuf.MessageOrBuilder { /** *
       * The reason for the stop.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
       * The reason for the stop.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 3; * @return The partitionSessionId. */ long getPartitionSessionId(); } /** *
     * Command from server to stop a direct read partition session.
     * Client should not send a response to the command.
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession} */ public static final class StopDirectReadPartitionSession extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession) StopDirectReadPartitionSessionOrBuilder { private static final long serialVersionUID = 0L; // Use StopDirectReadPartitionSession.newBuilder() to construct. private StopDirectReadPartitionSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopDirectReadPartitionSession() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopDirectReadPartitionSession(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_ = 0; /** *
       * The reason for the stop.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * The reason for the stop.
       * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List issues_; /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** *
       * Issues if any.
       * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 3; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 3; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } 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 (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } if (partitionSessionId_ != 0L) { output.writeInt64(3, partitionSessionId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionSessionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession 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; } /** *
       * Command from server to stop a direct read partition session.
       * Client should not send a response to the command.
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); partitionSessionId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionSessionId_ = partitionSessionId_; } } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 24: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int status_ = 0; /** *
         * The reason for the stop.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
         * The reason for the stop.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * The reason for the stop.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** *
         * The reason for the stop.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** *
         * The reason for the stop.
         * 
* * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** *
         * Issues if any.
         * 
* * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private long partitionSessionId_ ; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 3; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 3; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 3; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000004); partitionSessionId_ = 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.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.StopDirectReadPartitionSession) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopDirectReadPartitionSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.StopDirectReadPartitionSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DirectReadResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.StreamDirectReadMessage.DirectReadResponse) com.google.protobuf.MessageOrBuilder { /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ long getPartitionSessionId(); /** *
       * Read request identifier.
       * 
* * int64 direct_read_id = 2; * @return The directReadId. */ long getDirectReadId(); /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return Whether the partitionData field is set. */ boolean hasPartitionData(); /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return The partitionData. */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData(); /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder(); } /** *
     * Messages that have been read directly from the partition node.
     * It's a response to StreamRead.ReadRequest
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.DirectReadResponse} */ public static final class DirectReadResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.StreamDirectReadMessage.DirectReadResponse) DirectReadResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DirectReadResponse.newBuilder() to construct. private DirectReadResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DirectReadResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DirectReadResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder.class); } private int bitField0_; public static final int PARTITION_SESSION_ID_FIELD_NUMBER = 1; private long partitionSessionId_ = 0L; /** *
       * Partition session identifier.
       * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } public static final int DIRECT_READ_ID_FIELD_NUMBER = 2; private long directReadId_ = 0L; /** *
       * Read request identifier.
       * 
* * int64 direct_read_id = 2; * @return The directReadId. */ @java.lang.Override public long getDirectReadId() { return directReadId_; } public static final int PARTITION_DATA_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData partitionData_; /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return Whether the partitionData field is set. */ @java.lang.Override public boolean hasPartitionData() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return The partitionData. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData() { return partitionData_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance() : partitionData_; } /** *
       * Messages data
       * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder() { return partitionData_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance() : partitionData_; } 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 (partitionSessionId_ != 0L) { output.writeInt64(1, partitionSessionId_); } if (directReadId_ != 0L) { output.writeInt64(2, directReadId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getPartitionData()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionSessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionSessionId_); } if (directReadId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, directReadId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitionData()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) obj; if (getPartitionSessionId() != other.getPartitionSessionId()) return false; if (getDirectReadId() != other.getDirectReadId()) return false; if (hasPartitionData() != other.hasPartitionData()) return false; if (hasPartitionData()) { if (!getPartitionData() .equals(other.getPartitionData())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionSessionId()); hash = (37 * hash) + DIRECT_READ_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDirectReadId()); if (hasPartitionData()) { hash = (37 * hash) + PARTITION_DATA_FIELD_NUMBER; hash = (53 * hash) + getPartitionData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse 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; } /** *
       * Messages that have been read directly from the partition node.
       * It's a response to StreamRead.ReadRequest
       * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage.DirectReadResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage.DirectReadResponse) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionDataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionSessionId_ = 0L; directReadId_ = 0L; partitionData_ = null; if (partitionDataBuilder_ != null) { partitionDataBuilder_.dispose(); partitionDataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionSessionId_ = partitionSessionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.directReadId_ = directReadId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionData_ = partitionDataBuilder_ == null ? partitionData_ : partitionDataBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse.getDefaultInstance()) return this; if (other.getPartitionSessionId() != 0L) { setPartitionSessionId(other.getPartitionSessionId()); } if (other.getDirectReadId() != 0L) { setDirectReadId(other.getDirectReadId()); } if (other.hasPartitionData()) { mergePartitionData(other.getPartitionData()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionSessionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { directReadId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getPartitionDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionSessionId_ ; /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return The partitionSessionId. */ @java.lang.Override public long getPartitionSessionId() { return partitionSessionId_; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @param value The partitionSessionId to set. * @return This builder for chaining. */ public Builder setPartitionSessionId(long value) { partitionSessionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition session identifier.
         * 
* * int64 partition_session_id = 1; * @return This builder for chaining. */ public Builder clearPartitionSessionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionSessionId_ = 0L; onChanged(); return this; } private long directReadId_ ; /** *
         * Read request identifier.
         * 
* * int64 direct_read_id = 2; * @return The directReadId. */ @java.lang.Override public long getDirectReadId() { return directReadId_; } /** *
         * Read request identifier.
         * 
* * int64 direct_read_id = 2; * @param value The directReadId to set. * @return This builder for chaining. */ public Builder setDirectReadId(long value) { directReadId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Read request identifier.
         * 
* * int64 direct_read_id = 2; * @return This builder for chaining. */ public Builder clearDirectReadId() { bitField0_ = (bitField0_ & ~0x00000002); directReadId_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData partitionData_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder> partitionDataBuilder_; /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return Whether the partitionData field is set. */ public boolean hasPartitionData() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; * @return The partitionData. */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData getPartitionData() { if (partitionDataBuilder_ == null) { return partitionData_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance() : partitionData_; } else { return partitionDataBuilder_.getMessage(); } } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public Builder setPartitionData(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData value) { if (partitionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionData_ = value; } else { partitionDataBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public Builder setPartitionData( tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder builderForValue) { if (partitionDataBuilder_ == null) { partitionData_ = builderForValue.build(); } else { partitionDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public Builder mergePartitionData(tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData value) { if (partitionDataBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && partitionData_ != null && partitionData_ != tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance()) { getPartitionDataBuilder().mergeFrom(value); } else { partitionData_ = value; } } else { partitionDataBuilder_.mergeFrom(value); } if (partitionData_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public Builder clearPartitionData() { bitField0_ = (bitField0_ & ~0x00000004); partitionData_ = null; if (partitionDataBuilder_ != null) { partitionDataBuilder_.dispose(); partitionDataBuilder_ = null; } onChanged(); return this; } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder getPartitionDataBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPartitionDataFieldBuilder().getBuilder(); } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ public tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder getPartitionDataOrBuilder() { if (partitionDataBuilder_ != null) { return partitionDataBuilder_.getMessageOrBuilder(); } else { return partitionData_ == null ? tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.getDefaultInstance() : partitionData_; } } /** *
         * Messages data
         * 
* * .Ydb.Topic.StreamReadMessage.ReadResponse.PartitionData partition_data = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder> getPartitionDataFieldBuilder() { if (partitionDataBuilder_ == null) { partitionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionData.Builder, tech.ydb.proto.topic.YdbTopic.StreamReadMessage.ReadResponse.PartitionDataOrBuilder>( getPartitionData(), getParentForChildren(), isClean()); partitionData_ = null; } return partitionDataBuilder_; } @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.Topic.StreamDirectReadMessage.DirectReadResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage.DirectReadResponse) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DirectReadResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.DirectReadResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage other = (tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage 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 tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage 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(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage 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; } /** *
     * Messages for bidirectional streaming rpc StreamDirectRead
     * 
* * Protobuf type {@code Ydb.Topic.StreamDirectReadMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.StreamDirectReadMessage) tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.class, tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage build() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage buildPartial() { tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage result = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage other) { if (other == tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.StreamDirectReadMessage) } // @@protoc_insertion_point(class_scope:Ydb.Topic.StreamDirectReadMessage) private static final tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage(); } public static tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamDirectReadMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.StreamDirectReadMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransactionIdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.TransactionIdentity) com.google.protobuf.MessageOrBuilder { /** *
     * Transaction identifier from TableService.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * Transaction identifier from TableService.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Session identifier from TableService.
     * 
* * string session = 2; * @return The session. */ java.lang.String getSession(); /** *
     * Session identifier from TableService.
     * 
* * string session = 2; * @return The bytes for session. */ com.google.protobuf.ByteString getSessionBytes(); } /** * Protobuf type {@code Ydb.Topic.TransactionIdentity} */ public static final class TransactionIdentity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.TransactionIdentity) TransactionIdentityOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionIdentity.newBuilder() to construct. private TransactionIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionIdentity() { id_ = ""; session_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionIdentity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_TransactionIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_TransactionIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.TransactionIdentity.class, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
     * Transaction identifier from TableService.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * Transaction identifier from TableService.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SESSION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object session_ = ""; /** *
     * Session identifier from TableService.
     * 
* * string session = 2; * @return The session. */ @java.lang.Override public java.lang.String getSession() { java.lang.Object ref = session_; 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(); session_ = s; return s; } } /** *
     * Session identifier from TableService.
     * 
* * string session = 2; * @return The bytes for session. */ @java.lang.Override public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, session_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(session_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, session_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.TransactionIdentity)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.TransactionIdentity other = (tech.ydb.proto.topic.YdbTopic.TransactionIdentity) obj; if (!getId() .equals(other.getId())) return false; if (!getSession() .equals(other.getSession())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity 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 tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity 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 tech.ydb.proto.topic.YdbTopic.TransactionIdentity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity 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(tech.ydb.proto.topic.YdbTopic.TransactionIdentity 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.Topic.TransactionIdentity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.TransactionIdentity) tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_TransactionIdentity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_TransactionIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.TransactionIdentity.class, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.TransactionIdentity.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; session_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_TransactionIdentity_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity build() { tech.ydb.proto.topic.YdbTopic.TransactionIdentity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity buildPartial() { tech.ydb.proto.topic.YdbTopic.TransactionIdentity result = new tech.ydb.proto.topic.YdbTopic.TransactionIdentity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.TransactionIdentity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.session_ = session_; } } @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 tech.ydb.proto.topic.YdbTopic.TransactionIdentity) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.TransactionIdentity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.TransactionIdentity other) { if (other == tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSession().isEmpty()) { session_ = other.session_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { session_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * Transaction identifier from TableService.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Transaction identifier from TableService.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Transaction identifier from TableService.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Transaction identifier from TableService.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Transaction identifier from TableService.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object session_ = ""; /** *
       * Session identifier from TableService.
       * 
* * string session = 2; * @return The session. */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Session identifier from TableService.
       * 
* * string session = 2; * @return The bytes for session. */ public com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Session identifier from TableService.
       * 
* * string session = 2; * @param value The session to set. * @return This builder for chaining. */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Session identifier from TableService.
       * 
* * string session = 2; * @return This builder for chaining. */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Session identifier from TableService.
       * 
* * string session = 2; * @param value The bytes for session to set. * @return This builder for chaining. */ public Builder setSessionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; bitField0_ |= 0x00000002; 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.Topic.TransactionIdentity) } // @@protoc_insertion_point(class_scope:Ydb.Topic.TransactionIdentity) private static final tech.ydb.proto.topic.YdbTopic.TransactionIdentity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.TransactionIdentity(); } public static tech.ydb.proto.topic.YdbTopic.TransactionIdentity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionIdentity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOffsetsInTransactionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateOffsetsInTransactionRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return Whether the tx field is set. */ boolean hasTx(); /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return The tx. */ tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx(); /** * .Ydb.Topic.TransactionIdentity tx = 2; */ tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder(); /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ java.util.List getTopicsList(); /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getTopics(int index); /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ int getTopicsCount(); /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ java.util.List getTopicsOrBuilderList(); /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder getTopicsOrBuilder( int index); /** * string consumer = 4; * @return The consumer. */ java.lang.String getConsumer(); /** * string consumer = 4; * @return The bytes for consumer. */ com.google.protobuf.ByteString getConsumerBytes(); } /** *
   * Add offsets to transaction request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionRequest} */ public static final class UpdateOffsetsInTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest) UpdateOffsetsInTransactionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateOffsetsInTransactionRequest.newBuilder() to construct. private UpdateOffsetsInTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateOffsetsInTransactionRequest() { topics_ = java.util.Collections.emptyList(); consumer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateOffsetsInTransactionRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.Builder.class); } public interface TopicOffsetsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets) com.google.protobuf.MessageOrBuilder { /** *
       * Topic path.
       * 
* * string path = 1; * @return The path. */ java.lang.String getPath(); /** *
       * Topic path.
       * 
* * string path = 1; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ java.util.List getPartitionsList(); /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getPartitions(int index); /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ int getPartitionsCount(); /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ java.util.List getPartitionsOrBuilderList(); /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder getPartitionsOrBuilder( int index); } /** * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets} */ public static final class TopicOffsets extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets) TopicOffsetsOrBuilder { private static final long serialVersionUID = 0L; // Use TopicOffsets.newBuilder() to construct. private TopicOffsets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicOffsets() { path_ = ""; partitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicOffsets(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder.class); } public interface PartitionOffsetsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) com.google.protobuf.MessageOrBuilder { /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return The partitionId. */ long getPartitionId(); /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ java.util.List getPartitionOffsetsList(); /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(int index); /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ int getPartitionOffsetsCount(); /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ java.util.List getPartitionOffsetsOrBuilderList(); /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder( int index); } /** * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets} */ public static final class PartitionOffsets extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) PartitionOffsetsOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionOffsets.newBuilder() to construct. private PartitionOffsets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionOffsets() { partitionOffsets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionOffsets(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder.class); } public static final int PARTITION_ID_FIELD_NUMBER = 1; private long partitionId_ = 0L; /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int PARTITION_OFFSETS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List partitionOffsets_; /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public java.util.List getPartitionOffsetsList() { return partitionOffsets_; } /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public java.util.List getPartitionOffsetsOrBuilderList() { return partitionOffsets_; } /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public int getPartitionOffsetsCount() { return partitionOffsets_.size(); } /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(int index) { return partitionOffsets_.get(index); } /** *
         * List of offset ranges.
         * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder( int index) { return partitionOffsets_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (partitionId_ != 0L) { output.writeInt64(1, partitionId_); } for (int i = 0; i < partitionOffsets_.size(); i++) { output.writeMessage(2, partitionOffsets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionId_); } for (int i = 0; i < partitionOffsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, partitionOffsets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets other = (tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) obj; if (getPartitionId() != other.getPartitionId()) return false; if (!getPartitionOffsetsList() .equals(other.getPartitionOffsetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); if (getPartitionOffsetsCount() > 0) { hash = (37 * hash) + PARTITION_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getPartitionOffsetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets 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(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets 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.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionId_ = 0L; if (partitionOffsetsBuilder_ == null) { partitionOffsets_ = java.util.Collections.emptyList(); } else { partitionOffsets_ = null; partitionOffsetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets build() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets result = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets result) { if (partitionOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { partitionOffsets_ = java.util.Collections.unmodifiableList(partitionOffsets_); bitField0_ = (bitField0_ & ~0x00000002); } result.partitionOffsets_ = partitionOffsets_; } else { result.partitionOffsets_ = partitionOffsetsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionId_ = partitionId_; } } @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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.getDefaultInstance()) return this; if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (partitionOffsetsBuilder_ == null) { if (!other.partitionOffsets_.isEmpty()) { if (partitionOffsets_.isEmpty()) { partitionOffsets_ = other.partitionOffsets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartitionOffsetsIsMutable(); partitionOffsets_.addAll(other.partitionOffsets_); } onChanged(); } } else { if (!other.partitionOffsets_.isEmpty()) { if (partitionOffsetsBuilder_.isEmpty()) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; partitionOffsets_ = other.partitionOffsets_; bitField0_ = (bitField0_ & ~0x00000002); partitionOffsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionOffsetsFieldBuilder() : null; } else { partitionOffsetsBuilder_.addAllMessages(other.partitionOffsets_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.topic.YdbTopic.OffsetsRange m = input.readMessage( tech.ydb.proto.topic.YdbTopic.OffsetsRange.parser(), extensionRegistry); if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); partitionOffsets_.add(m); } else { partitionOffsetsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionId_ ; /** *
           * Partition identifier.
           * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
           * Partition identifier.
           * 
* * int64 partition_id = 1; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Partition identifier.
           * 
* * int64 partition_id = 1; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionId_ = 0L; onChanged(); return this; } private java.util.List partitionOffsets_ = java.util.Collections.emptyList(); private void ensurePartitionOffsetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { partitionOffsets_ = new java.util.ArrayList(partitionOffsets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> partitionOffsetsBuilder_; /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public java.util.List getPartitionOffsetsList() { if (partitionOffsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionOffsets_); } else { return partitionOffsetsBuilder_.getMessageList(); } } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public int getPartitionOffsetsCount() { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_.size(); } else { return partitionOffsetsBuilder_.getCount(); } } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(int index) { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_.get(index); } else { return partitionOffsetsBuilder_.getMessage(index); } } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder setPartitionOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionOffsetsIsMutable(); partitionOffsets_.set(index, value); onChanged(); } else { partitionOffsetsBuilder_.setMessage(index, value); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder setPartitionOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); partitionOffsets_.set(index, builderForValue.build()); onChanged(); } else { partitionOffsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder addPartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionOffsetsIsMutable(); partitionOffsets_.add(value); onChanged(); } else { partitionOffsetsBuilder_.addMessage(value); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder addPartitionOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionOffsetsIsMutable(); partitionOffsets_.add(index, value); onChanged(); } else { partitionOffsetsBuilder_.addMessage(index, value); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder addPartitionOffsets( tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); partitionOffsets_.add(builderForValue.build()); onChanged(); } else { partitionOffsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder addPartitionOffsets( int index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); partitionOffsets_.add(index, builderForValue.build()); onChanged(); } else { partitionOffsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder addAllPartitionOffsets( java.lang.Iterable values) { if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitionOffsets_); onChanged(); } else { partitionOffsetsBuilder_.addAllMessages(values); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder clearPartitionOffsets() { if (partitionOffsetsBuilder_ == null) { partitionOffsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partitionOffsetsBuilder_.clear(); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public Builder removePartitionOffsets(int index) { if (partitionOffsetsBuilder_ == null) { ensurePartitionOffsetsIsMutable(); partitionOffsets_.remove(index); onChanged(); } else { partitionOffsetsBuilder_.remove(index); } return this; } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder getPartitionOffsetsBuilder( int index) { return getPartitionOffsetsFieldBuilder().getBuilder(index); } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder( int index) { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_.get(index); } else { return partitionOffsetsBuilder_.getMessageOrBuilder(index); } } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public java.util.List getPartitionOffsetsOrBuilderList() { if (partitionOffsetsBuilder_ != null) { return partitionOffsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitionOffsets_); } } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder addPartitionOffsetsBuilder() { return getPartitionOffsetsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()); } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder addPartitionOffsetsBuilder( int index) { return getPartitionOffsetsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()); } /** *
           * List of offset ranges.
           * 
* * repeated .Ydb.Topic.OffsetsRange partition_offsets = 2; */ public java.util.List getPartitionOffsetsBuilderList() { return getPartitionOffsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> getPartitionOffsetsFieldBuilder() { if (partitionOffsetsBuilder_ == null) { partitionOffsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder>( partitionOffsets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); partitionOffsets_ = null; } return partitionOffsetsBuilder_; } @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.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets) private static final tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets(); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionOffsets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
       * Topic path.
       * 
* * string path = 1; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List partitions_; /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ @java.lang.Override public java.util.List getPartitionsList() { return partitions_; } /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ @java.lang.Override public java.util.List getPartitionsOrBuilderList() { return partitions_; } /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ @java.lang.Override public int getPartitionsCount() { return partitions_.size(); } /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getPartitions(int index) { return partitions_.get(index); } /** *
       * Ranges of offsets by partitions.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder getPartitionsOrBuilder( int index) { return partitions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(2, partitions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, partitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets other = (tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets) obj; if (!getPath() .equals(other.getPath())) return false; if (!getPartitionsList() .equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets 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(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets 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.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets) tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; path_ = ""; if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); } else { partitions_ = null; partitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets build() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets result = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets result) { if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000002); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } } @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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; onChanged(); } if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } } else { if (!other.partitions_.isEmpty()) { if (partitionsBuilder_.isEmpty()) { partitionsBuilder_.dispose(); partitionsBuilder_ = null; partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000002); partitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets m = input.readMessage( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.parser(), extensionRegistry); if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(m); } else { partitionsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
         * Topic path.
         * 
* * string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Topic path.
         * 
* * string path = 1; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Topic path.
         * 
* * string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Topic path.
         * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Topic path.
         * 
* * string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List partitions_ = java.util.Collections.emptyList(); private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { partitions_ = new java.util.ArrayList(partitions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder> partitionsBuilder_; /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public java.util.List getPartitionsList() { if (partitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitions_); } else { return partitionsBuilder_.getMessageList(); } } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public int getPartitionsCount() { if (partitionsBuilder_ == null) { return partitions_.size(); } else { return partitionsBuilder_.getCount(); } } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets getPartitions(int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessage(index); } } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder addPartitions(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder addPartitions( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder addAllPartitions( java.lang.Iterable values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partitionsBuilder_.clear(); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder getPartitionsBuilder( int index) { return getPartitionsFieldBuilder().getBuilder(index); } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder getPartitionsOrBuilder( int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessageOrBuilder(index); } } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public java.util.List getPartitionsOrBuilderList() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitions_); } } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder addPartitionsBuilder() { return getPartitionsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.getDefaultInstance()); } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder addPartitionsBuilder( int index) { return getPartitionsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.getDefaultInstance()); } /** *
         * Ranges of offsets by partitions.
         * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets partitions = 2; */ public java.util.List getPartitionsBuilderList() { return getPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.PartitionOffsetsOrBuilder>( partitions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } @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.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets) private static final tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets(); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicOffsets parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int TX_FIELD_NUMBER = 2; private tech.ydb.proto.topic.YdbTopic.TransactionIdentity tx_; /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return Whether the tx field is set. */ @java.lang.Override public boolean hasTx() { return ((bitField0_ & 0x00000002) != 0); } /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return The tx. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx() { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder() { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } public static final int TOPICS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List topics_; /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ @java.lang.Override public java.util.List getTopicsList() { return topics_; } /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ @java.lang.Override public java.util.List getTopicsOrBuilderList() { return topics_; } /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ @java.lang.Override public int getTopicsCount() { return topics_.size(); } /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getTopics(int index) { return topics_.get(index); } /** *
     * Ranges of offsets by topics.
     * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder getTopicsOrBuilder( int index) { return topics_.get(index); } public static final int CONSUMER_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object consumer_ = ""; /** * string consumer = 4; * @return The consumer. */ @java.lang.Override public java.lang.String getConsumer() { java.lang.Object ref = consumer_; 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(); consumer_ = s; return s; } } /** * string consumer = 4; * @return The bytes for consumer. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTx()); } for (int i = 0; i < topics_.size(); i++) { output.writeMessage(3, topics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, consumer_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTx()); } for (int i = 0; i < topics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, topics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, consumer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest other = (tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (hasTx() != other.hasTx()) return false; if (hasTx()) { if (!getTx() .equals(other.getTx())) return false; } if (!getTopicsList() .equals(other.getTopicsList())) return false; if (!getConsumer() .equals(other.getConsumer())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } if (hasTx()) { hash = (37 * hash) + TX_FIELD_NUMBER; hash = (53 * hash) + getTx().hashCode(); } if (getTopicsCount() > 0) { hash = (37 * hash) + TOPICS_FIELD_NUMBER; hash = (53 * hash) + getTopicsList().hashCode(); } hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest 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(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest 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; } /** *
     * Add offsets to transaction request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateOffsetsInTransactionRequest) tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); getTxFieldBuilder(); getTopicsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } tx_ = null; if (txBuilder_ != null) { txBuilder_.dispose(); txBuilder_ = null; } if (topicsBuilder_ == null) { topics_ = java.util.Collections.emptyList(); } else { topics_ = null; topicsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); consumer_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest build() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest result = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest result) { if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); bitField0_ = (bitField0_ & ~0x00000004); } result.topics_ = topics_; } else { result.topics_ = topicsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tx_ = txBuilder_ == null ? tx_ : txBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.consumer_ = consumer_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (other.hasTx()) { mergeTx(other.getTx()); } if (topicsBuilder_ == null) { if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTopicsIsMutable(); topics_.addAll(other.topics_); } onChanged(); } } else { if (!other.topics_.isEmpty()) { if (topicsBuilder_.isEmpty()) { topicsBuilder_.dispose(); topicsBuilder_ = null; topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000004); topicsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopicsFieldBuilder() : null; } else { topicsBuilder_.addAllMessages(other.topics_); } } } if (!other.getConsumer().isEmpty()) { consumer_ = other.consumer_; bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets m = input.readMessage( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.parser(), extensionRegistry); if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(m); } else { topicsBuilder_.addMessage(m); } break; } // case 26 case 34: { consumer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private tech.ydb.proto.topic.YdbTopic.TransactionIdentity tx_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder> txBuilder_; /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return Whether the tx field is set. */ public boolean hasTx() { return ((bitField0_ & 0x00000002) != 0); } /** * .Ydb.Topic.TransactionIdentity tx = 2; * @return The tx. */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentity getTx() { if (txBuilder_ == null) { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } else { return txBuilder_.getMessage(); } } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public Builder setTx(tech.ydb.proto.topic.YdbTopic.TransactionIdentity value) { if (txBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tx_ = value; } else { txBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public Builder setTx( tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder builderForValue) { if (txBuilder_ == null) { tx_ = builderForValue.build(); } else { txBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public Builder mergeTx(tech.ydb.proto.topic.YdbTopic.TransactionIdentity value) { if (txBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && tx_ != null && tx_ != tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance()) { getTxBuilder().mergeFrom(value); } else { tx_ = value; } } else { txBuilder_.mergeFrom(value); } if (tx_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public Builder clearTx() { bitField0_ = (bitField0_ & ~0x00000002); tx_ = null; if (txBuilder_ != null) { txBuilder_.dispose(); txBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder getTxBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTxFieldBuilder().getBuilder(); } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ public tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder getTxOrBuilder() { if (txBuilder_ != null) { return txBuilder_.getMessageOrBuilder(); } else { return tx_ == null ? tech.ydb.proto.topic.YdbTopic.TransactionIdentity.getDefaultInstance() : tx_; } } /** * .Ydb.Topic.TransactionIdentity tx = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder> getTxFieldBuilder() { if (txBuilder_ == null) { txBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.TransactionIdentity, tech.ydb.proto.topic.YdbTopic.TransactionIdentity.Builder, tech.ydb.proto.topic.YdbTopic.TransactionIdentityOrBuilder>( getTx(), getParentForChildren(), isClean()); tx_ = null; } return txBuilder_; } private java.util.List topics_ = java.util.Collections.emptyList(); private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder> topicsBuilder_; /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { return java.util.Collections.unmodifiableList(topics_); } else { return topicsBuilder_.getMessageList(); } } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public int getTopicsCount() { if (topicsBuilder_ == null) { return topics_.size(); } else { return topicsBuilder_.getCount(); } } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets getTopics(int index) { if (topicsBuilder_ == null) { return topics_.get(index); } else { return topicsBuilder_.getMessage(index); } } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder setTopics( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.set(index, value); onChanged(); } else { topicsBuilder_.setMessage(index, value); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder setTopics( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.set(index, builderForValue.build()); onChanged(); } else { topicsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder addTopics(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(value); onChanged(); } else { topicsBuilder_.addMessage(value); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder addTopics( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(index, value); onChanged(); } else { topicsBuilder_.addMessage(index, value); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder addTopics( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); onChanged(); } else { topicsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder addTopics( int index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(index, builderForValue.build()); onChanged(); } else { topicsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder addAllTopics( java.lang.Iterable values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder clearTopics() { if (topicsBuilder_ == null) { topics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { topicsBuilder_.clear(); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.remove(index); onChanged(); } else { topicsBuilder_.remove(index); } return this; } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder getTopicsBuilder( int index) { return getTopicsFieldBuilder().getBuilder(index); } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder getTopicsOrBuilder( int index) { if (topicsBuilder_ == null) { return topics_.get(index); } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topics_); } } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.getDefaultInstance()); } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder addTopicsBuilder( int index) { return getTopicsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.getDefaultInstance()); } /** *
       * Ranges of offsets by topics.
       * 
* * repeated .Ydb.Topic.UpdateOffsetsInTransactionRequest.TopicOffsets topics = 3; */ public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsets.Builder, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest.TopicOffsetsOrBuilder>( topics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); topics_ = null; } return topicsBuilder_; } private java.lang.Object consumer_ = ""; /** * string consumer = 4; * @return The consumer. */ public java.lang.String getConsumer() { java.lang.Object ref = consumer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumer_ = s; return s; } else { return (java.lang.String) ref; } } /** * string consumer = 4; * @return The bytes for consumer. */ public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string consumer = 4; * @param value The consumer to set. * @return This builder for chaining. */ public Builder setConsumer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumer_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string consumer = 4; * @return This builder for chaining. */ public Builder clearConsumer() { consumer_ = getDefaultInstance().getConsumer(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string consumer = 4; * @param value The bytes for consumer to set. * @return This builder for chaining. */ public Builder setConsumerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumer_ = value; bitField0_ |= 0x00000008; 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.Topic.UpdateOffsetsInTransactionRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateOffsetsInTransactionRequest) private static final tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest(); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateOffsetsInTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOffsetsInTransactionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateOffsetsInTransactionResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Add offsets to transaction response sent from server to client.
   * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionResponse} */ public static final class UpdateOffsetsInTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateOffsetsInTransactionResponse) UpdateOffsetsInTransactionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateOffsetsInTransactionResponse.newBuilder() to construct. private UpdateOffsetsInTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateOffsetsInTransactionResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateOffsetsInTransactionResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse other = (tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse 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(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse 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; } /** *
     * Add offsets to transaction response sent from server to client.
     * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateOffsetsInTransactionResponse) tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse build() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse result = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.UpdateOffsetsInTransactionResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateOffsetsInTransactionResponse) private static final tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse(); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateOffsetsInTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateOffsetsInTransactionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.UpdateOffsetsInTransactionResult) com.google.protobuf.MessageOrBuilder { } /** *
   * Add offsets to transaction result message that will be inside UpdateOffsetsInTransactionResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionResult} */ public static final class UpdateOffsetsInTransactionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.UpdateOffsetsInTransactionResult) UpdateOffsetsInTransactionResultOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateOffsetsInTransactionResult.newBuilder() to construct. private UpdateOffsetsInTransactionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateOffsetsInTransactionResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateOffsetsInTransactionResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult other = (tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult 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 tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult 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(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult 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; } /** *
     * Add offsets to transaction result message that will be inside UpdateOffsetsInTransactionResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.UpdateOffsetsInTransactionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.UpdateOffsetsInTransactionResult) tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.class, tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult build() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult buildPartial() { tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult result = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult other) { if (other == tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.UpdateOffsetsInTransactionResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.UpdateOffsetsInTransactionResult) private static final tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult(); } public static tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateOffsetsInTransactionResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.UpdateOffsetsInTransactionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOffsetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CommitOffsetRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path of partition.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path of partition.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Partition identifier.
     * 
* * int64 partition_id = 3; * @return The partitionId. */ long getPartitionId(); /** *
     * Path of consumer.
     * 
* * string consumer = 4; * @return The consumer. */ java.lang.String getConsumer(); /** *
     * Path of consumer.
     * 
* * string consumer = 4; * @return The bytes for consumer. */ com.google.protobuf.ByteString getConsumerBytes(); /** *
     * Processed offset.
     * 
* * int64 offset = 5; * @return The offset. */ long getOffset(); } /** *
   * Commit offset request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetRequest} */ public static final class CommitOffsetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CommitOffsetRequest) CommitOffsetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CommitOffsetRequest.newBuilder() to construct. private CommitOffsetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitOffsetRequest() { path_ = ""; consumer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitOffsetRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path of partition.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path of partition.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; /** *
     * Partition identifier.
     * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int CONSUMER_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object consumer_ = ""; /** *
     * Path of consumer.
     * 
* * string consumer = 4; * @return The consumer. */ @java.lang.Override public java.lang.String getConsumer() { java.lang.Object ref = consumer_; 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(); consumer_ = s; return s; } } /** *
     * Path of consumer.
     * 
* * string consumer = 4; * @return The bytes for consumer. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OFFSET_FIELD_NUMBER = 5; private long offset_ = 0L; /** *
     * Processed offset.
     * 
* * int64 offset = 5; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, consumer_); } if (offset_ != 0L) { output.writeInt64(5, offset_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, consumer_); } if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest other = (tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (!getConsumer() .equals(other.getConsumer())) return false; if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest 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(tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest 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; } /** *
     * Commit offset request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CommitOffsetRequest) tech.ydb.proto.topic.YdbTopic.CommitOffsetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; partitionId_ = 0L; consumer_ = ""; offset_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest build() { tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest result = new tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.consumer_ = consumer_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.offset_ = offset_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (!other.getConsumer().isEmpty()) { consumer_ = other.consumer_; bitField0_ |= 0x00000008; onChanged(); } if (other.getOffset() != 0L) { setOffset(other.getOffset()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { consumer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { offset_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path of partition.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path of partition.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path of partition.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long partitionId_ ; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000004); partitionId_ = 0L; onChanged(); return this; } private java.lang.Object consumer_ = ""; /** *
       * Path of consumer.
       * 
* * string consumer = 4; * @return The consumer. */ public java.lang.String getConsumer() { java.lang.Object ref = consumer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Path of consumer.
       * 
* * string consumer = 4; * @return The bytes for consumer. */ public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path of consumer.
       * 
* * string consumer = 4; * @param value The consumer to set. * @return This builder for chaining. */ public Builder setConsumer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumer_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Path of consumer.
       * 
* * string consumer = 4; * @return This builder for chaining. */ public Builder clearConsumer() { consumer_ = getDefaultInstance().getConsumer(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Path of consumer.
       * 
* * string consumer = 4; * @param value The bytes for consumer to set. * @return This builder for chaining. */ public Builder setConsumerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumer_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private long offset_ ; /** *
       * Processed offset.
       * 
* * int64 offset = 5; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** *
       * Processed offset.
       * 
* * int64 offset = 5; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { offset_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Processed offset.
       * 
* * int64 offset = 5; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000010); offset_ = 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.Topic.CommitOffsetRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CommitOffsetRequest) private static final tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest(); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitOffsetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOffsetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CommitOffsetResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Commit offset response sent from server to client.
   * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetResponse} */ public static final class CommitOffsetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CommitOffsetResponse) CommitOffsetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommitOffsetResponse.newBuilder() to construct. private CommitOffsetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitOffsetResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitOffsetResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse other = (tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse 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(tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse 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; } /** *
     * Commit offset response sent from server to client.
     * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CommitOffsetResponse) tech.ydb.proto.topic.YdbTopic.CommitOffsetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse build() { tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse result = new tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.CommitOffsetResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CommitOffsetResponse) private static final tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse(); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitOffsetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOffsetResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CommitOffsetResult) com.google.protobuf.MessageOrBuilder { } /** *
   * Commit offset result message inside CommitOffsetResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetResult} */ public static final class CommitOffsetResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CommitOffsetResult) CommitOffsetResultOrBuilder { private static final long serialVersionUID = 0L; // Use CommitOffsetResult.newBuilder() to construct. private CommitOffsetResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitOffsetResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitOffsetResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CommitOffsetResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CommitOffsetResult other = (tech.ydb.proto.topic.YdbTopic.CommitOffsetResult) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult 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 tech.ydb.proto.topic.YdbTopic.CommitOffsetResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult 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(tech.ydb.proto.topic.YdbTopic.CommitOffsetResult 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; } /** *
     * Commit offset result message inside CommitOffsetResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.CommitOffsetResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CommitOffsetResult) tech.ydb.proto.topic.YdbTopic.CommitOffsetResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.class, tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CommitOffsetResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResult build() { tech.ydb.proto.topic.YdbTopic.CommitOffsetResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResult buildPartial() { tech.ydb.proto.topic.YdbTopic.CommitOffsetResult result = new tech.ydb.proto.topic.YdbTopic.CommitOffsetResult(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.CommitOffsetResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CommitOffsetResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CommitOffsetResult other) { if (other == tech.ydb.proto.topic.YdbTopic.CommitOffsetResult.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.CommitOffsetResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CommitOffsetResult) private static final tech.ydb.proto.topic.YdbTopic.CommitOffsetResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CommitOffsetResult(); } public static tech.ydb.proto.topic.YdbTopic.CommitOffsetResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitOffsetResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CommitOffsetResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MultipleWindowsStatOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.MultipleWindowsStat) com.google.protobuf.MessageOrBuilder { /** * int64 per_minute = 1; * @return The perMinute. */ long getPerMinute(); /** * int64 per_hour = 2; * @return The perHour. */ long getPerHour(); /** * int64 per_day = 3; * @return The perDay. */ long getPerDay(); } /** *
   * message representing statistics by several windows
   * 
* * Protobuf type {@code Ydb.Topic.MultipleWindowsStat} */ public static final class MultipleWindowsStat extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.MultipleWindowsStat) MultipleWindowsStatOrBuilder { private static final long serialVersionUID = 0L; // Use MultipleWindowsStat.newBuilder() to construct. private MultipleWindowsStat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MultipleWindowsStat() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MultipleWindowsStat(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MultipleWindowsStat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MultipleWindowsStat_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.class, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder.class); } public static final int PER_MINUTE_FIELD_NUMBER = 1; private long perMinute_ = 0L; /** * int64 per_minute = 1; * @return The perMinute. */ @java.lang.Override public long getPerMinute() { return perMinute_; } public static final int PER_HOUR_FIELD_NUMBER = 2; private long perHour_ = 0L; /** * int64 per_hour = 2; * @return The perHour. */ @java.lang.Override public long getPerHour() { return perHour_; } public static final int PER_DAY_FIELD_NUMBER = 3; private long perDay_ = 0L; /** * int64 per_day = 3; * @return The perDay. */ @java.lang.Override public long getPerDay() { return perDay_; } 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 (perMinute_ != 0L) { output.writeInt64(1, perMinute_); } if (perHour_ != 0L) { output.writeInt64(2, perHour_); } if (perDay_ != 0L) { output.writeInt64(3, perDay_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (perMinute_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, perMinute_); } if (perHour_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, perHour_); } if (perDay_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, perDay_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat other = (tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat) obj; if (getPerMinute() != other.getPerMinute()) return false; if (getPerHour() != other.getPerHour()) return false; if (getPerDay() != other.getPerDay()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PER_MINUTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPerMinute()); hash = (37 * hash) + PER_HOUR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPerHour()); hash = (37 * hash) + PER_DAY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPerDay()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat 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 tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat 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 tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat 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(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat 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; } /** *
     * message representing statistics by several windows
     * 
* * Protobuf type {@code Ydb.Topic.MultipleWindowsStat} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.MultipleWindowsStat) tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MultipleWindowsStat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MultipleWindowsStat_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.class, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; perMinute_ = 0L; perHour_ = 0L; perDay_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_MultipleWindowsStat_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat build() { tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat buildPartial() { tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat result = new tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.perMinute_ = perMinute_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.perHour_ = perHour_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.perDay_ = perDay_; } } @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 tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat other) { if (other == tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance()) return this; if (other.getPerMinute() != 0L) { setPerMinute(other.getPerMinute()); } if (other.getPerHour() != 0L) { setPerHour(other.getPerHour()); } if (other.getPerDay() != 0L) { setPerDay(other.getPerDay()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { perMinute_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { perHour_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { perDay_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long perMinute_ ; /** * int64 per_minute = 1; * @return The perMinute. */ @java.lang.Override public long getPerMinute() { return perMinute_; } /** * int64 per_minute = 1; * @param value The perMinute to set. * @return This builder for chaining. */ public Builder setPerMinute(long value) { perMinute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 per_minute = 1; * @return This builder for chaining. */ public Builder clearPerMinute() { bitField0_ = (bitField0_ & ~0x00000001); perMinute_ = 0L; onChanged(); return this; } private long perHour_ ; /** * int64 per_hour = 2; * @return The perHour. */ @java.lang.Override public long getPerHour() { return perHour_; } /** * int64 per_hour = 2; * @param value The perHour to set. * @return This builder for chaining. */ public Builder setPerHour(long value) { perHour_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 per_hour = 2; * @return This builder for chaining. */ public Builder clearPerHour() { bitField0_ = (bitField0_ & ~0x00000002); perHour_ = 0L; onChanged(); return this; } private long perDay_ ; /** * int64 per_day = 3; * @return The perDay. */ @java.lang.Override public long getPerDay() { return perDay_; } /** * int64 per_day = 3; * @param value The perDay to set. * @return This builder for chaining. */ public Builder setPerDay(long value) { perDay_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 per_day = 3; * @return This builder for chaining. */ public Builder clearPerDay() { bitField0_ = (bitField0_ & ~0x00000004); perDay_ = 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.Topic.MultipleWindowsStat) } // @@protoc_insertion_point(class_scope:Ydb.Topic.MultipleWindowsStat) private static final tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat(); } public static tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MultipleWindowsStat parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConsumerOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.Consumer) com.google.protobuf.MessageOrBuilder { /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * bool important = 2; * @return The important. */ boolean getImportant(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; * @return Whether the readFrom field is set. */ boolean hasReadFrom(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; * @return The readFrom. */ com.google.protobuf.Timestamp getReadFrom(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; */ com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return Whether the supportedCodecs field is set. */ boolean hasSupportedCodecs(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return The supportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder(); /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ int getAttributesCount(); /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ boolean containsAttributes( java.lang.String key); /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ java.util.Map getAttributesMap(); /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ java.lang.String getAttributesOrThrow( java.lang.String key); /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return Whether the consumerStats field is set. */ boolean hasConsumerStats(); /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return The consumerStats. */ tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getConsumerStats(); /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder getConsumerStatsOrBuilder(); } /** *
   * Consumer description.
   * 
* * Protobuf type {@code Ydb.Topic.Consumer} */ public static final class Consumer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.Consumer) ConsumerOrBuilder { private static final long serialVersionUID = 0L; // Use Consumer.newBuilder() to construct. private Consumer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Consumer() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Consumer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.Consumer.class, tech.ydb.proto.topic.YdbTopic.Consumer.Builder.class); } public interface ConsumerStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.Consumer.ConsumerStats) com.google.protobuf.MessageOrBuilder { /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return Whether the minPartitionsLastReadTime field is set. */ boolean hasMinPartitionsLastReadTime(); /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return The minPartitionsLastReadTime. */ com.google.protobuf.Timestamp getMinPartitionsLastReadTime(); /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ com.google.protobuf.TimestampOrBuilder getMinPartitionsLastReadTimeOrBuilder(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return Whether the maxReadTimeLag field is set. */ boolean hasMaxReadTimeLag(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return The maxReadTimeLag. */ com.google.protobuf.Duration getMaxReadTimeLag(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ boolean hasMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ com.google.protobuf.Duration getMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder(); /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return Whether the bytesRead field is set. */ boolean hasBytesRead(); /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return The bytesRead. */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead(); /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder(); } /** * Protobuf type {@code Ydb.Topic.Consumer.ConsumerStats} */ public static final class ConsumerStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.Consumer.ConsumerStats) ConsumerStatsOrBuilder { private static final long serialVersionUID = 0L; // Use ConsumerStats.newBuilder() to construct. private ConsumerStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsumerStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsumerStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_ConsumerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.class, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder.class); } private int bitField0_; public static final int MIN_PARTITIONS_LAST_READ_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp minPartitionsLastReadTime_; /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return Whether the minPartitionsLastReadTime field is set. */ @java.lang.Override public boolean hasMinPartitionsLastReadTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return The minPartitionsLastReadTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinPartitionsLastReadTime() { return minPartitionsLastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minPartitionsLastReadTime_; } /** *
       * Minimal timestamp of last read from partitions.
       * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMinPartitionsLastReadTimeOrBuilder() { return minPartitionsLastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minPartitionsLastReadTime_; } public static final int MAX_READ_TIME_LAG_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxReadTimeLag_; /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return Whether the maxReadTimeLag field is set. */ @java.lang.Override public boolean hasMaxReadTimeLag() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return The maxReadTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxReadTimeLag() { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder() { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } public static final int MAX_WRITE_TIME_LAG_FIELD_NUMBER = 3; private com.google.protobuf.Duration maxWriteTimeLag_; /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ @java.lang.Override public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxWriteTimeLag() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } public static final int BYTES_READ_FIELD_NUMBER = 4; private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesRead_; /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return Whether the bytesRead field is set. */ @java.lang.Override public boolean hasBytesRead() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return The bytesRead. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead() { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } /** *
       * Bytes read statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder() { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMinPartitionsLastReadTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMaxReadTimeLag()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getBytesRead()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMinPartitionsLastReadTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxReadTimeLag()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBytesRead()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats other = (tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats) obj; if (hasMinPartitionsLastReadTime() != other.hasMinPartitionsLastReadTime()) return false; if (hasMinPartitionsLastReadTime()) { if (!getMinPartitionsLastReadTime() .equals(other.getMinPartitionsLastReadTime())) return false; } if (hasMaxReadTimeLag() != other.hasMaxReadTimeLag()) return false; if (hasMaxReadTimeLag()) { if (!getMaxReadTimeLag() .equals(other.getMaxReadTimeLag())) return false; } if (hasMaxWriteTimeLag() != other.hasMaxWriteTimeLag()) return false; if (hasMaxWriteTimeLag()) { if (!getMaxWriteTimeLag() .equals(other.getMaxWriteTimeLag())) return false; } if (hasBytesRead() != other.hasBytesRead()) return false; if (hasBytesRead()) { if (!getBytesRead() .equals(other.getBytesRead())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMinPartitionsLastReadTime()) { hash = (37 * hash) + MIN_PARTITIONS_LAST_READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getMinPartitionsLastReadTime().hashCode(); } if (hasMaxReadTimeLag()) { hash = (37 * hash) + MAX_READ_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxReadTimeLag().hashCode(); } if (hasMaxWriteTimeLag()) { hash = (37 * hash) + MAX_WRITE_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxWriteTimeLag().hashCode(); } if (hasBytesRead()) { hash = (37 * hash) + BYTES_READ_FIELD_NUMBER; hash = (53 * hash) + getBytesRead().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats 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 tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats 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 tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats 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(tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats 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.Topic.Consumer.ConsumerStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.Consumer.ConsumerStats) tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_ConsumerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.class, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMinPartitionsLastReadTimeFieldBuilder(); getMaxReadTimeLagFieldBuilder(); getMaxWriteTimeLagFieldBuilder(); getBytesReadFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; minPartitionsLastReadTime_ = null; if (minPartitionsLastReadTimeBuilder_ != null) { minPartitionsLastReadTimeBuilder_.dispose(); minPartitionsLastReadTimeBuilder_ = null; } maxReadTimeLag_ = null; if (maxReadTimeLagBuilder_ != null) { maxReadTimeLagBuilder_.dispose(); maxReadTimeLagBuilder_ = null; } maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } bytesRead_ = null; if (bytesReadBuilder_ != null) { bytesReadBuilder_.dispose(); bytesReadBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats build() { tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats buildPartial() { tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats result = new tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.minPartitionsLastReadTime_ = minPartitionsLastReadTimeBuilder_ == null ? minPartitionsLastReadTime_ : minPartitionsLastReadTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxReadTimeLag_ = maxReadTimeLagBuilder_ == null ? maxReadTimeLag_ : maxReadTimeLagBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxWriteTimeLag_ = maxWriteTimeLagBuilder_ == null ? maxWriteTimeLag_ : maxWriteTimeLagBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bytesRead_ = bytesReadBuilder_ == null ? bytesRead_ : bytesReadBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats other) { if (other == tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance()) return this; if (other.hasMinPartitionsLastReadTime()) { mergeMinPartitionsLastReadTime(other.getMinPartitionsLastReadTime()); } if (other.hasMaxReadTimeLag()) { mergeMaxReadTimeLag(other.getMaxReadTimeLag()); } if (other.hasMaxWriteTimeLag()) { mergeMaxWriteTimeLag(other.getMaxWriteTimeLag()); } if (other.hasBytesRead()) { mergeBytesRead(other.getBytesRead()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMinPartitionsLastReadTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMaxReadTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMaxWriteTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getBytesReadFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp minPartitionsLastReadTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minPartitionsLastReadTimeBuilder_; /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return Whether the minPartitionsLastReadTime field is set. */ public boolean hasMinPartitionsLastReadTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; * @return The minPartitionsLastReadTime. */ public com.google.protobuf.Timestamp getMinPartitionsLastReadTime() { if (minPartitionsLastReadTimeBuilder_ == null) { return minPartitionsLastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minPartitionsLastReadTime_; } else { return minPartitionsLastReadTimeBuilder_.getMessage(); } } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public Builder setMinPartitionsLastReadTime(com.google.protobuf.Timestamp value) { if (minPartitionsLastReadTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minPartitionsLastReadTime_ = value; } else { minPartitionsLastReadTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public Builder setMinPartitionsLastReadTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (minPartitionsLastReadTimeBuilder_ == null) { minPartitionsLastReadTime_ = builderForValue.build(); } else { minPartitionsLastReadTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public Builder mergeMinPartitionsLastReadTime(com.google.protobuf.Timestamp value) { if (minPartitionsLastReadTimeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && minPartitionsLastReadTime_ != null && minPartitionsLastReadTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMinPartitionsLastReadTimeBuilder().mergeFrom(value); } else { minPartitionsLastReadTime_ = value; } } else { minPartitionsLastReadTimeBuilder_.mergeFrom(value); } if (minPartitionsLastReadTime_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public Builder clearMinPartitionsLastReadTime() { bitField0_ = (bitField0_ & ~0x00000001); minPartitionsLastReadTime_ = null; if (minPartitionsLastReadTimeBuilder_ != null) { minPartitionsLastReadTimeBuilder_.dispose(); minPartitionsLastReadTimeBuilder_ = null; } onChanged(); return this; } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public com.google.protobuf.Timestamp.Builder getMinPartitionsLastReadTimeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMinPartitionsLastReadTimeFieldBuilder().getBuilder(); } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ public com.google.protobuf.TimestampOrBuilder getMinPartitionsLastReadTimeOrBuilder() { if (minPartitionsLastReadTimeBuilder_ != null) { return minPartitionsLastReadTimeBuilder_.getMessageOrBuilder(); } else { return minPartitionsLastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minPartitionsLastReadTime_; } } /** *
         * Minimal timestamp of last read from partitions.
         * 
* * .google.protobuf.Timestamp min_partitions_last_read_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMinPartitionsLastReadTimeFieldBuilder() { if (minPartitionsLastReadTimeBuilder_ == null) { minPartitionsLastReadTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMinPartitionsLastReadTime(), getParentForChildren(), isClean()); minPartitionsLastReadTime_ = null; } return minPartitionsLastReadTimeBuilder_; } private com.google.protobuf.Duration maxReadTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxReadTimeLagBuilder_; /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return Whether the maxReadTimeLag field is set. */ public boolean hasMaxReadTimeLag() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; * @return The maxReadTimeLag. */ public com.google.protobuf.Duration getMaxReadTimeLag() { if (maxReadTimeLagBuilder_ == null) { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } else { return maxReadTimeLagBuilder_.getMessage(); } } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public Builder setMaxReadTimeLag(com.google.protobuf.Duration value) { if (maxReadTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxReadTimeLag_ = value; } else { maxReadTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public Builder setMaxReadTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxReadTimeLagBuilder_ == null) { maxReadTimeLag_ = builderForValue.build(); } else { maxReadTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public Builder mergeMaxReadTimeLag(com.google.protobuf.Duration value) { if (maxReadTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && maxReadTimeLag_ != null && maxReadTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxReadTimeLagBuilder().mergeFrom(value); } else { maxReadTimeLag_ = value; } } else { maxReadTimeLagBuilder_.mergeFrom(value); } if (maxReadTimeLag_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public Builder clearMaxReadTimeLag() { bitField0_ = (bitField0_ & ~0x00000002); maxReadTimeLag_ = null; if (maxReadTimeLagBuilder_ != null) { maxReadTimeLagBuilder_.dispose(); maxReadTimeLagBuilder_ = null; } onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public com.google.protobuf.Duration.Builder getMaxReadTimeLagBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMaxReadTimeLagFieldBuilder().getBuilder(); } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ public com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder() { if (maxReadTimeLagBuilder_ != null) { return maxReadTimeLagBuilder_.getMessageOrBuilder(); } else { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxReadTimeLagFieldBuilder() { if (maxReadTimeLagBuilder_ == null) { maxReadTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxReadTimeLag(), getParentForChildren(), isClean()); maxReadTimeLag_ = null; } return maxReadTimeLagBuilder_; } private com.google.protobuf.Duration maxWriteTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWriteTimeLagBuilder_; /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ public com.google.protobuf.Duration getMaxWriteTimeLag() { if (maxWriteTimeLagBuilder_ == null) { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } else { return maxWriteTimeLagBuilder_.getMessage(); } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder setMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxWriteTimeLag_ = value; } else { maxWriteTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder setMaxWriteTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLag_ = builderForValue.build(); } else { maxWriteTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder mergeMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maxWriteTimeLag_ != null && maxWriteTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxWriteTimeLagBuilder().mergeFrom(value); } else { maxWriteTimeLag_ = value; } } else { maxWriteTimeLagBuilder_.mergeFrom(value); } if (maxWriteTimeLag_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder clearMaxWriteTimeLag() { bitField0_ = (bitField0_ & ~0x00000004); maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public com.google.protobuf.Duration.Builder getMaxWriteTimeLagBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxWriteTimeLagFieldBuilder().getBuilder(); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { if (maxWriteTimeLagBuilder_ != null) { return maxWriteTimeLagBuilder_.getMessageOrBuilder(); } else { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxWriteTimeLagFieldBuilder() { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxWriteTimeLag(), getParentForChildren(), isClean()); maxWriteTimeLag_ = null; } return maxWriteTimeLagBuilder_; } private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesRead_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> bytesReadBuilder_; /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return Whether the bytesRead field is set. */ public boolean hasBytesRead() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; * @return The bytesRead. */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead() { if (bytesReadBuilder_ == null) { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } else { return bytesReadBuilder_.getMessage(); } } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public Builder setBytesRead(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesReadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bytesRead_ = value; } else { bytesReadBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public Builder setBytesRead( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder builderForValue) { if (bytesReadBuilder_ == null) { bytesRead_ = builderForValue.build(); } else { bytesReadBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public Builder mergeBytesRead(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesReadBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && bytesRead_ != null && bytesRead_ != tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance()) { getBytesReadBuilder().mergeFrom(value); } else { bytesRead_ = value; } } else { bytesReadBuilder_.mergeFrom(value); } if (bytesRead_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public Builder clearBytesRead() { bitField0_ = (bitField0_ & ~0x00000008); bytesRead_ = null; if (bytesReadBuilder_ != null) { bytesReadBuilder_.dispose(); bytesReadBuilder_ = null; } onChanged(); return this; } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder getBytesReadBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBytesReadFieldBuilder().getBuilder(); } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder() { if (bytesReadBuilder_ != null) { return bytesReadBuilder_.getMessageOrBuilder(); } else { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } } /** *
         * Bytes read statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> getBytesReadFieldBuilder() { if (bytesReadBuilder_ == null) { bytesReadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder>( getBytesRead(), getParentForChildren(), isClean()); bytesRead_ = null; } return bytesReadBuilder_; } @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.Topic.Consumer.ConsumerStats) } // @@protoc_insertion_point(class_scope:Ydb.Topic.Consumer.ConsumerStats) private static final tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats(); } public static tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsumerStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @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; } } /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @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 IMPORTANT_FIELD_NUMBER = 2; private boolean important_ = false; /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * bool important = 2; * @return The important. */ @java.lang.Override public boolean getImportant() { return important_; } public static final int READ_FROM_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp readFrom_; /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; * @return Whether the readFrom field is set. */ @java.lang.Override public boolean hasReadFrom() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; * @return The readFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getReadFrom() { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp read_from = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder() { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } public static final int SUPPORTED_CODECS_FIELD_NUMBER = 5; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return Whether the supportedCodecs field is set. */ @java.lang.Override public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return The supportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } public static final int ATTRIBUTES_FIELD_NUMBER = 6; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Attributes of consumer
     * 
* * map<string, string> attributes = 6; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONSUMER_STATS_FIELD_NUMBER = 7; private tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats consumerStats_; /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return Whether the consumerStats field is set. */ @java.lang.Override public boolean hasConsumerStats() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return The consumerStats. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getConsumerStats() { return consumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance() : consumerStats_; } /** *
     * Filled only when requested statistics in Describe*Request.
     * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder getConsumerStatsOrBuilder() { return consumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance() : consumerStats_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (important_ != false) { output.writeBool(2, important_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getReadFrom()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getSupportedCodecs()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 6); if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getConsumerStats()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (important_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, important_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReadFrom()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSupportedCodecs()); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, attributes__); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getConsumerStats()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.Consumer)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.Consumer other = (tech.ydb.proto.topic.YdbTopic.Consumer) obj; if (!getName() .equals(other.getName())) return false; if (getImportant() != other.getImportant()) return false; if (hasReadFrom() != other.hasReadFrom()) return false; if (hasReadFrom()) { if (!getReadFrom() .equals(other.getReadFrom())) return false; } if (hasSupportedCodecs() != other.hasSupportedCodecs()) return false; if (hasSupportedCodecs()) { if (!getSupportedCodecs() .equals(other.getSupportedCodecs())) return false; } if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (hasConsumerStats() != other.hasConsumerStats()) return false; if (hasConsumerStats()) { if (!getConsumerStats() .equals(other.getConsumerStats())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IMPORTANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getImportant()); if (hasReadFrom()) { hash = (37 * hash) + READ_FROM_FIELD_NUMBER; hash = (53 * hash) + getReadFrom().hashCode(); } if (hasSupportedCodecs()) { hash = (37 * hash) + SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSupportedCodecs().hashCode(); } if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } if (hasConsumerStats()) { hash = (37 * hash) + CONSUMER_STATS_FIELD_NUMBER; hash = (53 * hash) + getConsumerStats().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.Consumer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer 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 tech.ydb.proto.topic.YdbTopic.Consumer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer 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 tech.ydb.proto.topic.YdbTopic.Consumer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.Consumer 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(tech.ydb.proto.topic.YdbTopic.Consumer 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; } /** *
     * Consumer description.
     * 
* * Protobuf type {@code Ydb.Topic.Consumer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.Consumer) tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.Consumer.class, tech.ydb.proto.topic.YdbTopic.Consumer.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.Consumer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getReadFromFieldBuilder(); getSupportedCodecsFieldBuilder(); getConsumerStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; important_ = false; readFrom_ = null; if (readFromBuilder_ != null) { readFromBuilder_.dispose(); readFromBuilder_ = null; } supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } internalGetMutableAttributes().clear(); consumerStats_ = null; if (consumerStatsBuilder_ != null) { consumerStatsBuilder_.dispose(); consumerStatsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_Consumer_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer build() { tech.ydb.proto.topic.YdbTopic.Consumer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer buildPartial() { tech.ydb.proto.topic.YdbTopic.Consumer result = new tech.ydb.proto.topic.YdbTopic.Consumer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.Consumer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.important_ = important_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.readFrom_ = readFromBuilder_ == null ? readFrom_ : readFromBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.supportedCodecs_ = supportedCodecsBuilder_ == null ? supportedCodecs_ : supportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.consumerStats_ = consumerStatsBuilder_ == null ? consumerStats_ : consumerStatsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.Consumer) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.Consumer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.Consumer other) { if (other == tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getImportant() != false) { setImportant(other.getImportant()); } if (other.hasReadFrom()) { mergeReadFrom(other.getReadFrom()); } if (other.hasSupportedCodecs()) { mergeSupportedCodecs(other.getSupportedCodecs()); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); bitField0_ |= 0x00000010; if (other.hasConsumerStats()) { mergeConsumerStats(other.getConsumerStats()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { important_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getReadFromFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 50: { com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributes().getMutableMap().put( attributes__.getKey(), attributes__.getValue()); bitField0_ |= 0x00000010; break; } // case 50 case 58: { input.readMessage( getConsumerStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; } } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; } } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean important_ ; /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * bool important = 2; * @return The important. */ @java.lang.Override public boolean getImportant() { return important_; } /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * bool important = 2; * @param value The important to set. * @return This builder for chaining. */ public Builder setImportant(boolean value) { important_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * bool important = 2; * @return This builder for chaining. */ public Builder clearImportant() { bitField0_ = (bitField0_ & ~0x00000002); important_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp readFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> readFromBuilder_; /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; * @return Whether the readFrom field is set. */ public boolean hasReadFrom() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; * @return The readFrom. */ public com.google.protobuf.Timestamp getReadFrom() { if (readFromBuilder_ == null) { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } else { return readFromBuilder_.getMessage(); } } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public Builder setReadFrom(com.google.protobuf.Timestamp value) { if (readFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readFrom_ = value; } else { readFromBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public Builder setReadFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (readFromBuilder_ == null) { readFrom_ = builderForValue.build(); } else { readFromBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public Builder mergeReadFrom(com.google.protobuf.Timestamp value) { if (readFromBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && readFrom_ != null && readFrom_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getReadFromBuilder().mergeFrom(value); } else { readFrom_ = value; } } else { readFromBuilder_.mergeFrom(value); } if (readFrom_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public Builder clearReadFrom() { bitField0_ = (bitField0_ & ~0x00000004); readFrom_ = null; if (readFromBuilder_ != null) { readFromBuilder_.dispose(); readFromBuilder_ = null; } onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public com.google.protobuf.Timestamp.Builder getReadFromBuilder() { bitField0_ |= 0x00000004; onChanged(); return getReadFromFieldBuilder().getBuilder(); } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ public com.google.protobuf.TimestampOrBuilder getReadFromOrBuilder() { if (readFromBuilder_ != null) { return readFromBuilder_.getMessageOrBuilder(); } else { return readFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readFrom_; } } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp read_from = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getReadFromFieldBuilder() { if (readFromBuilder_ == null) { readFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getReadFrom(), getParentForChildren(), isClean()); readFrom_ = null; } return readFromBuilder_; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> supportedCodecsBuilder_; /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return Whether the supportedCodecs field is set. */ public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; * @return The supportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { if (supportedCodecsBuilder_ == null) { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } else { return supportedCodecsBuilder_.getMessage(); } } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public Builder setSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportedCodecs_ = value; } else { supportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public Builder setSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (supportedCodecsBuilder_ == null) { supportedCodecs_ = builderForValue.build(); } else { supportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public Builder mergeSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && supportedCodecs_ != null && supportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSupportedCodecsBuilder().mergeFrom(value); } else { supportedCodecs_ = value; } } else { supportedCodecsBuilder_.mergeFrom(value); } if (supportedCodecs_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public Builder clearSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000008); supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSupportedCodecsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSupportedCodecsFieldBuilder().getBuilder(); } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { if (supportedCodecsBuilder_ != null) { return supportedCodecsBuilder_.getMessageOrBuilder(); } else { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSupportedCodecsFieldBuilder() { if (supportedCodecsBuilder_ == null) { supportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSupportedCodecs(), getParentForChildren(), isClean()); supportedCodecs_ = null; } return supportedCodecsBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } bitField0_ |= 0x00000010; onChanged(); return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000010; return internalGetMutableAttributes().getMutableMap(); } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
       * Attributes of consumer
       * 
* * map<string, string> attributes = 6; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } private tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats consumerStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder> consumerStatsBuilder_; /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return Whether the consumerStats field is set. */ public boolean hasConsumerStats() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; * @return The consumerStats. */ public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats getConsumerStats() { if (consumerStatsBuilder_ == null) { return consumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance() : consumerStats_; } else { return consumerStatsBuilder_.getMessage(); } } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public Builder setConsumerStats(tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats value) { if (consumerStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consumerStats_ = value; } else { consumerStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public Builder setConsumerStats( tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder builderForValue) { if (consumerStatsBuilder_ == null) { consumerStats_ = builderForValue.build(); } else { consumerStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public Builder mergeConsumerStats(tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats value) { if (consumerStatsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && consumerStats_ != null && consumerStats_ != tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance()) { getConsumerStatsBuilder().mergeFrom(value); } else { consumerStats_ = value; } } else { consumerStatsBuilder_.mergeFrom(value); } if (consumerStats_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public Builder clearConsumerStats() { bitField0_ = (bitField0_ & ~0x00000020); consumerStats_ = null; if (consumerStatsBuilder_ != null) { consumerStatsBuilder_.dispose(); consumerStatsBuilder_ = null; } onChanged(); return this; } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder getConsumerStatsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getConsumerStatsFieldBuilder().getBuilder(); } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ public tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder getConsumerStatsOrBuilder() { if (consumerStatsBuilder_ != null) { return consumerStatsBuilder_.getMessageOrBuilder(); } else { return consumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.getDefaultInstance() : consumerStats_; } } /** *
       * Filled only when requested statistics in Describe*Request.
       * 
* * .Ydb.Topic.Consumer.ConsumerStats consumer_stats = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder> getConsumerStatsFieldBuilder() { if (consumerStatsBuilder_ == null) { consumerStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.Consumer.ConsumerStatsOrBuilder>( getConsumerStats(), getParentForChildren(), isClean()); consumerStats_ = null; } return consumerStatsBuilder_; } @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.Topic.Consumer) } // @@protoc_insertion_point(class_scope:Ydb.Topic.Consumer) private static final tech.ydb.proto.topic.YdbTopic.Consumer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.Consumer(); } public static tech.ydb.proto.topic.YdbTopic.Consumer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Consumer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlterConsumerOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.AlterConsumer) com.google.protobuf.MessageOrBuilder { /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * optional bool set_important = 2; * @return Whether the setImportant field is set. */ boolean hasSetImportant(); /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * optional bool set_important = 2; * @return The setImportant. */ boolean getSetImportant(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return Whether the setReadFrom field is set. */ boolean hasSetReadFrom(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return The setReadFrom. */ com.google.protobuf.Timestamp getSetReadFrom(); /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; */ com.google.protobuf.TimestampOrBuilder getSetReadFromOrBuilder(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return Whether the setSupportedCodecs field is set. */ boolean hasSetSupportedCodecs(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return The setSupportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs(); /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder(); /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ int getAlterAttributesCount(); /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ boolean containsAlterAttributes( java.lang.String key); /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAlterAttributes(); /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ java.util.Map getAlterAttributesMap(); /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ java.lang.String getAlterAttributesOrThrow( java.lang.String key); } /** *
   * Consumer alter description.
   * 
* * Protobuf type {@code Ydb.Topic.AlterConsumer} */ public static final class AlterConsumer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.AlterConsumer) AlterConsumerOrBuilder { private static final long serialVersionUID = 0L; // Use AlterConsumer.newBuilder() to construct. private AlterConsumer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlterConsumer() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlterConsumer(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterConsumer.class, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @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; } } /** *
     * Must have valid not empty name as a key.
     * 
* * string name = 1; * @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 SET_IMPORTANT_FIELD_NUMBER = 2; private boolean setImportant_ = false; /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * optional bool set_important = 2; * @return Whether the setImportant field is set. */ @java.lang.Override public boolean hasSetImportant() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
     * User should take care that such consumer never stalls, to prevent running out of disk space.
     * Flag that this consumer is important.
     * 
* * optional bool set_important = 2; * @return The setImportant. */ @java.lang.Override public boolean getSetImportant() { return setImportant_; } public static final int SET_READ_FROM_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp setReadFrom_; /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return Whether the setReadFrom field is set. */ @java.lang.Override public boolean hasSetReadFrom() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return The setReadFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getSetReadFrom() { return setReadFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : setReadFrom_; } /** *
     * All messages with smaller server written_at timestamp will be skipped.
     * 
* * .google.protobuf.Timestamp set_read_from = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSetReadFromOrBuilder() { return setReadFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : setReadFrom_; } public static final int SET_SUPPORTED_CODECS_FIELD_NUMBER = 5; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs setSupportedCodecs_; /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return Whether the setSupportedCodecs field is set. */ @java.lang.Override public boolean hasSetSupportedCodecs() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return The setSupportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs() { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } /** *
     * List of supported codecs by this consumer.
     * supported_codecs on topic must be contained inside this list.
     * If empty, codec compatibility check for the consumer is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder() { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } public static final int ALTER_ATTRIBUTES_FIELD_NUMBER = 6; private static final class AlterAttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> alterAttributes_; private com.google.protobuf.MapField internalGetAlterAttributes() { if (alterAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } return alterAttributes_; } public int getAlterAttributesCount() { return internalGetAlterAttributes().getMap().size(); } /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public boolean containsAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAlterAttributes().getMap().containsKey(key); } /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAlterAttributes() { return getAlterAttributesMap(); } /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public java.util.Map getAlterAttributesMap() { return internalGetAlterAttributes().getMap(); } /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public java.lang.String getAlterAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, setImportant_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getSetReadFrom()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getSetSupportedCodecs()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAlterAttributes(), AlterAttributesDefaultEntryHolder.defaultEntry, 6); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, setImportant_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSetReadFrom()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSetSupportedCodecs()); } for (java.util.Map.Entry entry : internalGetAlterAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry alterAttributes__ = AlterAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, alterAttributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.AlterConsumer)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.AlterConsumer other = (tech.ydb.proto.topic.YdbTopic.AlterConsumer) obj; if (!getName() .equals(other.getName())) return false; if (hasSetImportant() != other.hasSetImportant()) return false; if (hasSetImportant()) { if (getSetImportant() != other.getSetImportant()) return false; } if (hasSetReadFrom() != other.hasSetReadFrom()) return false; if (hasSetReadFrom()) { if (!getSetReadFrom() .equals(other.getSetReadFrom())) return false; } if (hasSetSupportedCodecs() != other.hasSetSupportedCodecs()) return false; if (hasSetSupportedCodecs()) { if (!getSetSupportedCodecs() .equals(other.getSetSupportedCodecs())) return false; } if (!internalGetAlterAttributes().equals( other.internalGetAlterAttributes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasSetImportant()) { hash = (37 * hash) + SET_IMPORTANT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSetImportant()); } if (hasSetReadFrom()) { hash = (37 * hash) + SET_READ_FROM_FIELD_NUMBER; hash = (53 * hash) + getSetReadFrom().hashCode(); } if (hasSetSupportedCodecs()) { hash = (37 * hash) + SET_SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSetSupportedCodecs().hashCode(); } if (!internalGetAlterAttributes().getMap().isEmpty()) { hash = (37 * hash) + ALTER_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAlterAttributes().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer 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 tech.ydb.proto.topic.YdbTopic.AlterConsumer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer 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 tech.ydb.proto.topic.YdbTopic.AlterConsumer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer 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(tech.ydb.proto.topic.YdbTopic.AlterConsumer 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; } /** *
     * Consumer alter description.
     * 
* * Protobuf type {@code Ydb.Topic.AlterConsumer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.AlterConsumer) tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterConsumer.class, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.AlterConsumer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSetReadFromFieldBuilder(); getSetSupportedCodecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; setImportant_ = false; setReadFrom_ = null; if (setReadFromBuilder_ != null) { setReadFromBuilder_.dispose(); setReadFromBuilder_ = null; } setSupportedCodecs_ = null; if (setSupportedCodecsBuilder_ != null) { setSupportedCodecsBuilder_.dispose(); setSupportedCodecsBuilder_ = null; } internalGetMutableAlterAttributes().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterConsumer_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumer getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.AlterConsumer.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumer build() { tech.ydb.proto.topic.YdbTopic.AlterConsumer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumer buildPartial() { tech.ydb.proto.topic.YdbTopic.AlterConsumer result = new tech.ydb.proto.topic.YdbTopic.AlterConsumer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.AlterConsumer result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.setImportant_ = setImportant_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.setReadFrom_ = setReadFromBuilder_ == null ? setReadFrom_ : setReadFromBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.setSupportedCodecs_ = setSupportedCodecsBuilder_ == null ? setSupportedCodecs_ : setSupportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.alterAttributes_ = internalGetAlterAttributes(); result.alterAttributes_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.AlterConsumer) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.AlterConsumer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.AlterConsumer other) { if (other == tech.ydb.proto.topic.YdbTopic.AlterConsumer.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasSetImportant()) { setSetImportant(other.getSetImportant()); } if (other.hasSetReadFrom()) { mergeSetReadFrom(other.getSetReadFrom()); } if (other.hasSetSupportedCodecs()) { mergeSetSupportedCodecs(other.getSetSupportedCodecs()); } internalGetMutableAlterAttributes().mergeFrom( other.internalGetAlterAttributes()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { setImportant_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSetReadFromFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage( getSetSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 case 50: { com.google.protobuf.MapEntry alterAttributes__ = input.readMessage( AlterAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAlterAttributes().getMutableMap().put( alterAttributes__.getKey(), alterAttributes__.getValue()); bitField0_ |= 0x00000010; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; } } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; } } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Must have valid not empty name as a key.
       * 
* * string name = 1; * @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; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean setImportant_ ; /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * optional bool set_important = 2; * @return Whether the setImportant field is set. */ @java.lang.Override public boolean hasSetImportant() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * optional bool set_important = 2; * @return The setImportant. */ @java.lang.Override public boolean getSetImportant() { return setImportant_; } /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * optional bool set_important = 2; * @param value The setImportant to set. * @return This builder for chaining. */ public Builder setSetImportant(boolean value) { setImportant_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Consumer may be marked as 'important'. It means messages for this consumer will never expire due to retention.
       * User should take care that such consumer never stalls, to prevent running out of disk space.
       * Flag that this consumer is important.
       * 
* * optional bool set_important = 2; * @return This builder for chaining. */ public Builder clearSetImportant() { bitField0_ = (bitField0_ & ~0x00000002); setImportant_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp setReadFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> setReadFromBuilder_; /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return Whether the setReadFrom field is set. */ public boolean hasSetReadFrom() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; * @return The setReadFrom. */ public com.google.protobuf.Timestamp getSetReadFrom() { if (setReadFromBuilder_ == null) { return setReadFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : setReadFrom_; } else { return setReadFromBuilder_.getMessage(); } } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public Builder setSetReadFrom(com.google.protobuf.Timestamp value) { if (setReadFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setReadFrom_ = value; } else { setReadFromBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public Builder setSetReadFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (setReadFromBuilder_ == null) { setReadFrom_ = builderForValue.build(); } else { setReadFromBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public Builder mergeSetReadFrom(com.google.protobuf.Timestamp value) { if (setReadFromBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && setReadFrom_ != null && setReadFrom_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSetReadFromBuilder().mergeFrom(value); } else { setReadFrom_ = value; } } else { setReadFromBuilder_.mergeFrom(value); } if (setReadFrom_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public Builder clearSetReadFrom() { bitField0_ = (bitField0_ & ~0x00000004); setReadFrom_ = null; if (setReadFromBuilder_ != null) { setReadFromBuilder_.dispose(); setReadFromBuilder_ = null; } onChanged(); return this; } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public com.google.protobuf.Timestamp.Builder getSetReadFromBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSetReadFromFieldBuilder().getBuilder(); } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ public com.google.protobuf.TimestampOrBuilder getSetReadFromOrBuilder() { if (setReadFromBuilder_ != null) { return setReadFromBuilder_.getMessageOrBuilder(); } else { return setReadFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : setReadFrom_; } } /** *
       * All messages with smaller server written_at timestamp will be skipped.
       * 
* * .google.protobuf.Timestamp set_read_from = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSetReadFromFieldBuilder() { if (setReadFromBuilder_ == null) { setReadFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getSetReadFrom(), getParentForChildren(), isClean()); setReadFrom_ = null; } return setReadFromBuilder_; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs setSupportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> setSupportedCodecsBuilder_; /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return Whether the setSupportedCodecs field is set. */ public boolean hasSetSupportedCodecs() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; * @return The setSupportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs() { if (setSupportedCodecsBuilder_ == null) { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } else { return setSupportedCodecsBuilder_.getMessage(); } } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public Builder setSetSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (setSupportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setSupportedCodecs_ = value; } else { setSupportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public Builder setSetSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (setSupportedCodecsBuilder_ == null) { setSupportedCodecs_ = builderForValue.build(); } else { setSupportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public Builder mergeSetSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (setSupportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && setSupportedCodecs_ != null && setSupportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSetSupportedCodecsBuilder().mergeFrom(value); } else { setSupportedCodecs_ = value; } } else { setSupportedCodecsBuilder_.mergeFrom(value); } if (setSupportedCodecs_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public Builder clearSetSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000008); setSupportedCodecs_ = null; if (setSupportedCodecsBuilder_ != null) { setSupportedCodecsBuilder_.dispose(); setSupportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSetSupportedCodecsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSetSupportedCodecsFieldBuilder().getBuilder(); } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder() { if (setSupportedCodecsBuilder_ != null) { return setSupportedCodecsBuilder_.getMessageOrBuilder(); } else { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } } /** *
       * List of supported codecs by this consumer.
       * supported_codecs on topic must be contained inside this list.
       * If empty, codec compatibility check for the consumer is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSetSupportedCodecsFieldBuilder() { if (setSupportedCodecsBuilder_ == null) { setSupportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSetSupportedCodecs(), getParentForChildren(), isClean()); setSupportedCodecs_ = null; } return setSupportedCodecsBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> alterAttributes_; private com.google.protobuf.MapField internalGetAlterAttributes() { if (alterAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } return alterAttributes_; } private com.google.protobuf.MapField internalGetMutableAlterAttributes() { if (alterAttributes_ == null) { alterAttributes_ = com.google.protobuf.MapField.newMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } if (!alterAttributes_.isMutable()) { alterAttributes_ = alterAttributes_.copy(); } bitField0_ |= 0x00000010; onChanged(); return alterAttributes_; } public int getAlterAttributesCount() { return internalGetAlterAttributes().getMap().size(); } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public boolean containsAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAlterAttributes().getMap().containsKey(key); } /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAlterAttributes() { return getAlterAttributesMap(); } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public java.util.Map getAlterAttributesMap() { return internalGetAlterAttributes().getMap(); } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ @java.lang.Override public java.lang.String getAlterAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAlterAttributes() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAlterAttributes().getMutableMap() .clear(); return this; } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ public Builder removeAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAlterAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAlterAttributes() { bitField0_ |= 0x00000010; return internalGetMutableAlterAttributes().getMutableMap(); } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ public Builder putAlterAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAlterAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
       * User and server attributes of consumer. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 6; */ public Builder putAllAlterAttributes( java.util.Map values) { internalGetMutableAlterAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; 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.Topic.AlterConsumer) } // @@protoc_insertion_point(class_scope:Ydb.Topic.AlterConsumer) private static final tech.ydb.proto.topic.YdbTopic.AlterConsumer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.AlterConsumer(); } public static tech.ydb.proto.topic.YdbTopic.AlterConsumer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlterConsumer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitioningSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.PartitioningSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * int64 min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The minActivePartitions. */ long getMinActivePartitions(); /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * int64 partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The partitionCountLimit. */ long getPartitionCountLimit(); } /** *
   * Partitioning settings for topic.
   * 
* * Protobuf type {@code Ydb.Topic.PartitioningSettings} */ public static final class PartitioningSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.PartitioningSettings) PartitioningSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use PartitioningSettings.newBuilder() to construct. private PartitioningSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitioningSettings() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitioningSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitioningSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitioningSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitioningSettings.class, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder.class); } public static final int MIN_ACTIVE_PARTITIONS_FIELD_NUMBER = 1; private long minActivePartitions_ = 0L; /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * int64 min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The minActivePartitions. */ @java.lang.Override public long getMinActivePartitions() { return minActivePartitions_; } public static final int PARTITION_COUNT_LIMIT_FIELD_NUMBER = 2; private long partitionCountLimit_ = 0L; /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * int64 partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The partitionCountLimit. */ @java.lang.Override public long getPartitionCountLimit() { return partitionCountLimit_; } 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 (minActivePartitions_ != 0L) { output.writeInt64(1, minActivePartitions_); } if (partitionCountLimit_ != 0L) { output.writeInt64(2, partitionCountLimit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minActivePartitions_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, minActivePartitions_); } if (partitionCountLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, partitionCountLimit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.PartitioningSettings)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.PartitioningSettings other = (tech.ydb.proto.topic.YdbTopic.PartitioningSettings) obj; if (getMinActivePartitions() != other.getMinActivePartitions()) return false; if (getPartitionCountLimit() != other.getPartitionCountLimit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_ACTIVE_PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinActivePartitions()); hash = (37 * hash) + PARTITION_COUNT_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionCountLimit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings 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 tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings 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 tech.ydb.proto.topic.YdbTopic.PartitioningSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings 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(tech.ydb.proto.topic.YdbTopic.PartitioningSettings 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; } /** *
     * Partitioning settings for topic.
     * 
* * Protobuf type {@code Ydb.Topic.PartitioningSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.PartitioningSettings) tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitioningSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitioningSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitioningSettings.class, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.PartitioningSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; minActivePartitions_ = 0L; partitionCountLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitioningSettings_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings build() { tech.ydb.proto.topic.YdbTopic.PartitioningSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings buildPartial() { tech.ydb.proto.topic.YdbTopic.PartitioningSettings result = new tech.ydb.proto.topic.YdbTopic.PartitioningSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.PartitioningSettings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.minActivePartitions_ = minActivePartitions_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.partitionCountLimit_ = partitionCountLimit_; } } @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 tech.ydb.proto.topic.YdbTopic.PartitioningSettings) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.PartitioningSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.PartitioningSettings other) { if (other == tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance()) return this; if (other.getMinActivePartitions() != 0L) { setMinActivePartitions(other.getMinActivePartitions()); } if (other.getPartitionCountLimit() != 0L) { setPartitionCountLimit(other.getPartitionCountLimit()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { minActivePartitions_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { partitionCountLimit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long minActivePartitions_ ; /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * int64 min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The minActivePartitions. */ @java.lang.Override public long getMinActivePartitions() { return minActivePartitions_; } /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * int64 min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @param value The minActivePartitions to set. * @return This builder for chaining. */ public Builder setMinActivePartitions(long value) { minActivePartitions_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * int64 min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearMinActivePartitions() { bitField0_ = (bitField0_ & ~0x00000001); minActivePartitions_ = 0L; onChanged(); return this; } private long partitionCountLimit_ ; /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * int64 partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The partitionCountLimit. */ @java.lang.Override public long getPartitionCountLimit() { return partitionCountLimit_; } /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * int64 partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @param value The partitionCountLimit to set. * @return This builder for chaining. */ public Builder setPartitionCountLimit(long value) { partitionCountLimit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * int64 partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearPartitionCountLimit() { bitField0_ = (bitField0_ & ~0x00000002); partitionCountLimit_ = 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.Topic.PartitioningSettings) } // @@protoc_insertion_point(class_scope:Ydb.Topic.PartitioningSettings) private static final tech.ydb.proto.topic.YdbTopic.PartitioningSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.PartitioningSettings(); } public static tech.ydb.proto.topic.YdbTopic.PartitioningSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitioningSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlterPartitioningSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.AlterPartitioningSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return Whether the setMinActivePartitions field is set. */ boolean hasSetMinActivePartitions(); /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The setMinActivePartitions. */ long getSetMinActivePartitions(); /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionCountLimit field is set. */ boolean hasSetPartitionCountLimit(); /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The setPartitionCountLimit. */ long getSetPartitionCountLimit(); } /** *
   * Partitioning settings for topic.
   * 
* * Protobuf type {@code Ydb.Topic.AlterPartitioningSettings} */ public static final class AlterPartitioningSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.AlterPartitioningSettings) AlterPartitioningSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use AlterPartitioningSettings.newBuilder() to construct. private AlterPartitioningSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlterPartitioningSettings() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlterPartitioningSettings(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterPartitioningSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.class, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder.class); } private int bitField0_; public static final int SET_MIN_ACTIVE_PARTITIONS_FIELD_NUMBER = 1; private long setMinActivePartitions_ = 0L; /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return Whether the setMinActivePartitions field is set. */ @java.lang.Override public boolean hasSetMinActivePartitions() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Minimum partition count auto merge would stop working at.
     * Zero value means default - 1.
     * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The setMinActivePartitions. */ @java.lang.Override public long getSetMinActivePartitions() { return setMinActivePartitions_; } public static final int SET_PARTITION_COUNT_LIMIT_FIELD_NUMBER = 2; private long setPartitionCountLimit_ = 0L; /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionCountLimit field is set. */ @java.lang.Override public boolean hasSetPartitionCountLimit() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Limit for total partition count, including active (open for write) and read-only partitions.
     * Zero value means default - 100.
     * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The setPartitionCountLimit. */ @java.lang.Override public long getSetPartitionCountLimit() { return setPartitionCountLimit_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, setMinActivePartitions_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, setPartitionCountLimit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, setMinActivePartitions_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, setPartitionCountLimit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings other = (tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings) obj; if (hasSetMinActivePartitions() != other.hasSetMinActivePartitions()) return false; if (hasSetMinActivePartitions()) { if (getSetMinActivePartitions() != other.getSetMinActivePartitions()) return false; } if (hasSetPartitionCountLimit() != other.hasSetPartitionCountLimit()) return false; if (hasSetPartitionCountLimit()) { if (getSetPartitionCountLimit() != other.getSetPartitionCountLimit()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSetMinActivePartitions()) { hash = (37 * hash) + SET_MIN_ACTIVE_PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSetMinActivePartitions()); } if (hasSetPartitionCountLimit()) { hash = (37 * hash) + SET_PARTITION_COUNT_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSetPartitionCountLimit()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings 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 tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings 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 tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings 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(tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings 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; } /** *
     * Partitioning settings for topic.
     * 
* * Protobuf type {@code Ydb.Topic.AlterPartitioningSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.AlterPartitioningSettings) tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterPartitioningSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.class, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; setMinActivePartitions_ = 0L; setPartitionCountLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings build() { tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings buildPartial() { tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings result = new tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.setMinActivePartitions_ = setMinActivePartitions_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.setPartitionCountLimit_ = setPartitionCountLimit_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings other) { if (other == tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance()) return this; if (other.hasSetMinActivePartitions()) { setSetMinActivePartitions(other.getSetMinActivePartitions()); } if (other.hasSetPartitionCountLimit()) { setSetPartitionCountLimit(other.getSetPartitionCountLimit()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { setMinActivePartitions_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { setPartitionCountLimit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long setMinActivePartitions_ ; /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return Whether the setMinActivePartitions field is set. */ @java.lang.Override public boolean hasSetMinActivePartitions() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return The setMinActivePartitions. */ @java.lang.Override public long getSetMinActivePartitions() { return setMinActivePartitions_; } /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @param value The setMinActivePartitions to set. * @return This builder for chaining. */ public Builder setSetMinActivePartitions(long value) { setMinActivePartitions_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Minimum partition count auto merge would stop working at.
       * Zero value means default - 1.
       * 
* * optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearSetMinActivePartitions() { bitField0_ = (bitField0_ & ~0x00000001); setMinActivePartitions_ = 0L; onChanged(); return this; } private long setPartitionCountLimit_ ; /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionCountLimit field is set. */ @java.lang.Override public boolean hasSetPartitionCountLimit() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return The setPartitionCountLimit. */ @java.lang.Override public long getSetPartitionCountLimit() { return setPartitionCountLimit_; } /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @param value The setPartitionCountLimit to set. * @return This builder for chaining. */ public Builder setSetPartitionCountLimit(long value) { setPartitionCountLimit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Limit for total partition count, including active (open for write) and read-only partitions.
       * Zero value means default - 100.
       * 
* * optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearSetPartitionCountLimit() { bitField0_ = (bitField0_ & ~0x00000002); setPartitionCountLimit_ = 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.Topic.AlterPartitioningSettings) } // @@protoc_insertion_point(class_scope:Ydb.Topic.AlterPartitioningSettings) private static final tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings(); } public static tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlterPartitioningSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CreateTopicRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return Whether the partitioningSettings field is set. */ boolean hasPartitioningSettings(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return The partitioningSettings. */ tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ boolean hasRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ com.google.protobuf.Duration getRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; */ com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder(); /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Zero value means infinite limit.
     * 
* * int64 retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The retentionStorageMb. */ long getRetentionStorageMb(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ boolean hasSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder(); /** *
     * Partition write speed in bytes per second. Must be less than database limit.
     * Zero value means default limit: 1 MB per second.
     * 
* * int64 partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteSpeedBytesPerSecond. */ long getPartitionWriteSpeedBytesPerSecond(); /** *
     * Burst size for write in partition, in bytes. Must be less than database limit.
     * Zero value means default limit: 1 MB.
     * 
* * int64 partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteBurstBytes. */ long getPartitionWriteBurstBytes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ int getAttributesCount(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ boolean containsAttributes( java.lang.String key); /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ java.util.Map getAttributesMap(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ java.lang.String getAttributesOrThrow( java.lang.String key); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ java.util.List getConsumersList(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ int getConsumersCount(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ java.util.List getConsumersOrBuilderList(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index); /** *
     * Metering mode for the topic in a serverless database.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ int getMeteringModeValue(); /** *
     * Metering mode for the topic in a serverless database.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode(); } /** *
   * Create topic request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.CreateTopicRequest} */ public static final class CreateTopicRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CreateTopicRequest) CreateTopicRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateTopicRequest.newBuilder() to construct. private CreateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateTopicRequest() { path_ = ""; consumers_ = java.util.Collections.emptyList(); meteringMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateTopicRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.class, tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITIONING_SETTINGS_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.PartitioningSettings partitioningSettings_; /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return Whether the partitioningSettings field is set. */ @java.lang.Override public boolean hasPartitioningSettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return The partitioningSettings. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings() { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder() { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } public static final int RETENTION_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration retentionPeriod_; /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration retention_period = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } public static final int RETENTION_STORAGE_MB_FIELD_NUMBER = 5; private long retentionStorageMb_ = 0L; /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Zero value means infinite limit.
     * 
* * int64 retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The retentionStorageMb. */ @java.lang.Override public long getRetentionStorageMb() { return retentionStorageMb_; } public static final int SUPPORTED_CODECS_FIELD_NUMBER = 7; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ @java.lang.Override public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } public static final int PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER = 8; private long partitionWriteSpeedBytesPerSecond_ = 0L; /** *
     * Partition write speed in bytes per second. Must be less than database limit.
     * Zero value means default limit: 1 MB per second.
     * 
* * int64 partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionWriteSpeedBytesPerSecond() { return partitionWriteSpeedBytesPerSecond_; } public static final int PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER = 9; private long partitionWriteBurstBytes_ = 0L; /** *
     * Burst size for write in partition, in bytes. Must be less than database limit.
     * Zero value means default limit: 1 MB.
     * 
* * int64 partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteBurstBytes. */ @java.lang.Override public long getPartitionWriteBurstBytes() { return partitionWriteBurstBytes_; } public static final int ATTRIBUTES_FIELD_NUMBER = 10; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONSUMERS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List consumers_; /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getConsumersList() { return consumers_; } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getConsumersOrBuilderList() { return consumers_; } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public int getConsumersCount() { return consumers_.size(); } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index) { return consumers_.get(index); } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index) { return consumers_.get(index); } public static final int METERING_MODE_FIELD_NUMBER = 12; private int meteringMode_ = 0; /** *
     * Metering mode for the topic in a serverless database.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ @java.lang.Override public int getMeteringModeValue() { return meteringMode_; } /** *
     * Metering mode for the topic in a serverless database.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(meteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPartitioningSettings()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getRetentionPeriod()); } if (retentionStorageMb_ != 0L) { output.writeInt64(5, retentionStorageMb_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getSupportedCodecs()); } if (partitionWriteSpeedBytesPerSecond_ != 0L) { output.writeInt64(8, partitionWriteSpeedBytesPerSecond_); } if (partitionWriteBurstBytes_ != 0L) { output.writeInt64(9, partitionWriteBurstBytes_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 10); for (int i = 0; i < consumers_.size(); i++) { output.writeMessage(11, consumers_.get(i)); } if (meteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(12, meteringMode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitioningSettings()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRetentionPeriod()); } if (retentionStorageMb_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, retentionStorageMb_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getSupportedCodecs()); } if (partitionWriteSpeedBytesPerSecond_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, partitionWriteSpeedBytesPerSecond_); } if (partitionWriteBurstBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, partitionWriteBurstBytes_); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, attributes__); } for (int i = 0; i < consumers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, consumers_.get(i)); } if (meteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, meteringMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CreateTopicRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CreateTopicRequest other = (tech.ydb.proto.topic.YdbTopic.CreateTopicRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (hasPartitioningSettings() != other.hasPartitioningSettings()) return false; if (hasPartitioningSettings()) { if (!getPartitioningSettings() .equals(other.getPartitioningSettings())) return false; } if (hasRetentionPeriod() != other.hasRetentionPeriod()) return false; if (hasRetentionPeriod()) { if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; } if (getRetentionStorageMb() != other.getRetentionStorageMb()) return false; if (hasSupportedCodecs() != other.hasSupportedCodecs()) return false; if (hasSupportedCodecs()) { if (!getSupportedCodecs() .equals(other.getSupportedCodecs())) return false; } if (getPartitionWriteSpeedBytesPerSecond() != other.getPartitionWriteSpeedBytesPerSecond()) return false; if (getPartitionWriteBurstBytes() != other.getPartitionWriteBurstBytes()) return false; if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (!getConsumersList() .equals(other.getConsumersList())) return false; if (meteringMode_ != other.meteringMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (hasPartitioningSettings()) { hash = (37 * hash) + PARTITIONING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getPartitioningSettings().hashCode(); } if (hasRetentionPeriod()) { hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); } hash = (37 * hash) + RETENTION_STORAGE_MB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRetentionStorageMb()); if (hasSupportedCodecs()) { hash = (37 * hash) + SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSupportedCodecs().hashCode(); } hash = (37 * hash) + PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionWriteSpeedBytesPerSecond()); hash = (37 * hash) + PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionWriteBurstBytes()); if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } if (getConsumersCount() > 0) { hash = (37 * hash) + CONSUMERS_FIELD_NUMBER; hash = (53 * hash) + getConsumersList().hashCode(); } hash = (37 * hash) + METERING_MODE_FIELD_NUMBER; hash = (53 * hash) + meteringMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest 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 tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest 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 tech.ydb.proto.topic.YdbTopic.CreateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest 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(tech.ydb.proto.topic.YdbTopic.CreateTopicRequest 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; } /** *
     * Create topic request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.CreateTopicRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CreateTopicRequest) tech.ydb.proto.topic.YdbTopic.CreateTopicRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.class, tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); getPartitioningSettingsFieldBuilder(); getRetentionPeriodFieldBuilder(); getSupportedCodecsFieldBuilder(); getConsumersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; partitioningSettings_ = null; if (partitioningSettingsBuilder_ != null) { partitioningSettingsBuilder_.dispose(); partitioningSettingsBuilder_ = null; } retentionPeriod_ = null; if (retentionPeriodBuilder_ != null) { retentionPeriodBuilder_.dispose(); retentionPeriodBuilder_ = null; } retentionStorageMb_ = 0L; supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } partitionWriteSpeedBytesPerSecond_ = 0L; partitionWriteBurstBytes_ = 0L; internalGetMutableAttributes().clear(); if (consumersBuilder_ == null) { consumers_ = java.util.Collections.emptyList(); } else { consumers_ = null; consumersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); meteringMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicRequest build() { tech.ydb.proto.topic.YdbTopic.CreateTopicRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.CreateTopicRequest result = new tech.ydb.proto.topic.YdbTopic.CreateTopicRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.CreateTopicRequest result) { if (consumersBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { consumers_ = java.util.Collections.unmodifiableList(consumers_); bitField0_ = (bitField0_ & ~0x00000200); } result.consumers_ = consumers_; } else { result.consumers_ = consumersBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.CreateTopicRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitioningSettings_ = partitioningSettingsBuilder_ == null ? partitioningSettings_ : partitioningSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.retentionPeriod_ = retentionPeriodBuilder_ == null ? retentionPeriod_ : retentionPeriodBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.retentionStorageMb_ = retentionStorageMb_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.supportedCodecs_ = supportedCodecsBuilder_ == null ? supportedCodecs_ : supportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.partitionWriteSpeedBytesPerSecond_ = partitionWriteSpeedBytesPerSecond_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.partitionWriteBurstBytes_ = partitionWriteBurstBytes_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.meteringMode_ = meteringMode_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.CreateTopicRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CreateTopicRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CreateTopicRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.CreateTopicRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasPartitioningSettings()) { mergePartitioningSettings(other.getPartitioningSettings()); } if (other.hasRetentionPeriod()) { mergeRetentionPeriod(other.getRetentionPeriod()); } if (other.getRetentionStorageMb() != 0L) { setRetentionStorageMb(other.getRetentionStorageMb()); } if (other.hasSupportedCodecs()) { mergeSupportedCodecs(other.getSupportedCodecs()); } if (other.getPartitionWriteSpeedBytesPerSecond() != 0L) { setPartitionWriteSpeedBytesPerSecond(other.getPartitionWriteSpeedBytesPerSecond()); } if (other.getPartitionWriteBurstBytes() != 0L) { setPartitionWriteBurstBytes(other.getPartitionWriteBurstBytes()); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); bitField0_ |= 0x00000100; if (consumersBuilder_ == null) { if (!other.consumers_.isEmpty()) { if (consumers_.isEmpty()) { consumers_ = other.consumers_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureConsumersIsMutable(); consumers_.addAll(other.consumers_); } onChanged(); } } else { if (!other.consumers_.isEmpty()) { if (consumersBuilder_.isEmpty()) { consumersBuilder_.dispose(); consumersBuilder_ = null; consumers_ = other.consumers_; bitField0_ = (bitField0_ & ~0x00000200); consumersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConsumersFieldBuilder() : null; } else { consumersBuilder_.addAllMessages(other.consumers_); } } } if (other.meteringMode_ != 0) { setMeteringModeValue(other.getMeteringModeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getPartitioningSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRetentionPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { retentionStorageMb_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 58: { input.readMessage( getSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 case 64: { partitionWriteSpeedBytesPerSecond_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 64 case 72: { partitionWriteBurstBytes_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 72 case 82: { com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributes().getMutableMap().put( attributes__.getKey(), attributes__.getValue()); bitField0_ |= 0x00000100; break; } // case 82 case 90: { tech.ydb.proto.topic.YdbTopic.Consumer m = input.readMessage( tech.ydb.proto.topic.YdbTopic.Consumer.parser(), extensionRegistry); if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(m); } else { consumersBuilder_.addMessage(m); } break; } // case 90 case 96: { meteringMode_ = input.readEnum(); bitField0_ |= 0x00000400; break; } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.PartitioningSettings partitioningSettings_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder> partitioningSettingsBuilder_; /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return Whether the partitioningSettings field is set. */ public boolean hasPartitioningSettings() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; * @return The partitioningSettings. */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings() { if (partitioningSettingsBuilder_ == null) { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } else { return partitioningSettingsBuilder_.getMessage(); } } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public Builder setPartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) { if (partitioningSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitioningSettings_ = value; } else { partitioningSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public Builder setPartitioningSettings( tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder builderForValue) { if (partitioningSettingsBuilder_ == null) { partitioningSettings_ = builderForValue.build(); } else { partitioningSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public Builder mergePartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) { if (partitioningSettingsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && partitioningSettings_ != null && partitioningSettings_ != tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance()) { getPartitioningSettingsBuilder().mergeFrom(value); } else { partitioningSettings_ = value; } } else { partitioningSettingsBuilder_.mergeFrom(value); } if (partitioningSettings_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public Builder clearPartitioningSettings() { bitField0_ = (bitField0_ & ~0x00000004); partitioningSettings_ = null; if (partitioningSettingsBuilder_ != null) { partitioningSettingsBuilder_.dispose(); partitioningSettingsBuilder_ = null; } onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder getPartitioningSettingsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPartitioningSettingsFieldBuilder().getBuilder(); } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder() { if (partitioningSettingsBuilder_ != null) { return partitioningSettingsBuilder_.getMessageOrBuilder(); } else { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder> getPartitioningSettingsFieldBuilder() { if (partitioningSettingsBuilder_ == null) { partitioningSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder>( getPartitioningSettings(), getParentForChildren(), isClean()); partitioningSettings_ = null; } return partitioningSettingsBuilder_; } private com.google.protobuf.Duration retentionPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionPeriodBuilder_; /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ public boolean hasRetentionPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } else { return retentionPeriodBuilder_.getMessage(); } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder setRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionPeriod_ = value; } else { retentionPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPeriod_ = builderForValue.build(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && retentionPeriod_ != null && retentionPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getRetentionPeriodBuilder().mergeFrom(value); } else { retentionPeriod_ = value; } } else { retentionPeriodBuilder_.mergeFrom(value); } if (retentionPeriod_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder clearRetentionPeriod() { bitField0_ = (bitField0_ & ~0x00000008); retentionPeriod_ = null; if (retentionPeriodBuilder_ != null) { retentionPeriodBuilder_.dispose(); retentionPeriodBuilder_ = null; } onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRetentionPeriodFieldBuilder().getBuilder(); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPeriodBuilder_ != null) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration retention_period = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { retentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getRetentionPeriod(), getParentForChildren(), isClean()); retentionPeriod_ = null; } return retentionPeriodBuilder_; } private long retentionStorageMb_ ; /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The retentionStorageMb. */ @java.lang.Override public long getRetentionStorageMb() { return retentionStorageMb_; } /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @param value The retentionStorageMb to set. * @return This builder for chaining. */ public Builder setRetentionStorageMb(long value) { retentionStorageMb_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearRetentionStorageMb() { bitField0_ = (bitField0_ & ~0x00000010); retentionStorageMb_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> supportedCodecsBuilder_; /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { if (supportedCodecsBuilder_ == null) { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } else { return supportedCodecsBuilder_.getMessage(); } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder setSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportedCodecs_ = value; } else { supportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder setSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (supportedCodecsBuilder_ == null) { supportedCodecs_ = builderForValue.build(); } else { supportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder mergeSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && supportedCodecs_ != null && supportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSupportedCodecsBuilder().mergeFrom(value); } else { supportedCodecs_ = value; } } else { supportedCodecsBuilder_.mergeFrom(value); } if (supportedCodecs_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder clearSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000020); supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSupportedCodecsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSupportedCodecsFieldBuilder().getBuilder(); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { if (supportedCodecsBuilder_ != null) { return supportedCodecsBuilder_.getMessageOrBuilder(); } else { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSupportedCodecsFieldBuilder() { if (supportedCodecsBuilder_ == null) { supportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSupportedCodecs(), getParentForChildren(), isClean()); supportedCodecs_ = null; } return supportedCodecsBuilder_; } private long partitionWriteSpeedBytesPerSecond_ ; /** *
       * Partition write speed in bytes per second. Must be less than database limit.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionWriteSpeedBytesPerSecond() { return partitionWriteSpeedBytesPerSecond_; } /** *
       * Partition write speed in bytes per second. Must be less than database limit.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @param value The partitionWriteSpeedBytesPerSecond to set. * @return This builder for chaining. */ public Builder setPartitionWriteSpeedBytesPerSecond(long value) { partitionWriteSpeedBytesPerSecond_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Partition write speed in bytes per second. Must be less than database limit.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearPartitionWriteSpeedBytesPerSecond() { bitField0_ = (bitField0_ & ~0x00000040); partitionWriteSpeedBytesPerSecond_ = 0L; onChanged(); return this; } private long partitionWriteBurstBytes_ ; /** *
       * Burst size for write in partition, in bytes. Must be less than database limit.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The partitionWriteBurstBytes. */ @java.lang.Override public long getPartitionWriteBurstBytes() { return partitionWriteBurstBytes_; } /** *
       * Burst size for write in partition, in bytes. Must be less than database limit.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @param value The partitionWriteBurstBytes to set. * @return This builder for chaining. */ public Builder setPartitionWriteBurstBytes(long value) { partitionWriteBurstBytes_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Burst size for write in partition, in bytes. Must be less than database limit.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearPartitionWriteBurstBytes() { bitField0_ = (bitField0_ & ~0x00000080); partitionWriteBurstBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } bitField0_ |= 0x00000100; onChanged(); return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000100; return internalGetMutableAttributes().getMutableMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; return this; } private java.util.List consumers_ = java.util.Collections.emptyList(); private void ensureConsumersIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { consumers_ = new java.util.ArrayList(consumers_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> consumersBuilder_; /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getConsumersList() { if (consumersBuilder_ == null) { return java.util.Collections.unmodifiableList(consumers_); } else { return consumersBuilder_.getMessageList(); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public int getConsumersCount() { if (consumersBuilder_ == null) { return consumers_.size(); } else { return consumersBuilder_.getCount(); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index) { if (consumersBuilder_ == null) { return consumers_.get(index); } else { return consumersBuilder_.getMessage(index); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder setConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.set(index, value); onChanged(); } else { consumersBuilder_.setMessage(index, value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder setConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.set(index, builderForValue.build()); onChanged(); } else { consumersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder addConsumers(tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.add(value); onChanged(); } else { consumersBuilder_.addMessage(value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder addConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.add(index, value); onChanged(); } else { consumersBuilder_.addMessage(index, value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder addConsumers( tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(builderForValue.build()); onChanged(); } else { consumersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder addConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(index, builderForValue.build()); onChanged(); } else { consumersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAllConsumers( java.lang.Iterable values) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumers_); onChanged(); } else { consumersBuilder_.addAllMessages(values); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder clearConsumers() { if (consumersBuilder_ == null) { consumers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { consumersBuilder_.clear(); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public Builder removeConsumers(int index) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.remove(index); onChanged(); } else { consumersBuilder_.remove(index); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder getConsumersBuilder( int index) { return getConsumersFieldBuilder().getBuilder(index); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index) { if (consumersBuilder_ == null) { return consumers_.get(index); } else { return consumersBuilder_.getMessageOrBuilder(index); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getConsumersOrBuilderList() { if (consumersBuilder_ != null) { return consumersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(consumers_); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addConsumersBuilder() { return getConsumersFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addConsumersBuilder( int index) { return getConsumersFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getConsumersBuilderList() { return getConsumersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> getConsumersFieldBuilder() { if (consumersBuilder_ == null) { consumersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder>( consumers_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); consumers_ = null; } return consumersBuilder_; } private int meteringMode_ = 0; /** *
       * Metering mode for the topic in a serverless database.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ @java.lang.Override public int getMeteringModeValue() { return meteringMode_; } /** *
       * Metering mode for the topic in a serverless database.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @param value The enum numeric value on the wire for meteringMode to set. * @return This builder for chaining. */ public Builder setMeteringModeValue(int value) { meteringMode_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Metering mode for the topic in a serverless database.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(meteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } /** *
       * Metering mode for the topic in a serverless database.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @param value The meteringMode to set. * @return This builder for chaining. */ public Builder setMeteringMode(tech.ydb.proto.topic.YdbTopic.MeteringMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; meteringMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Metering mode for the topic in a serverless database.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return This builder for chaining. */ public Builder clearMeteringMode() { bitField0_ = (bitField0_ & ~0x00000400); meteringMode_ = 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.Topic.CreateTopicRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CreateTopicRequest) private static final tech.ydb.proto.topic.YdbTopic.CreateTopicRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CreateTopicRequest(); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTopicResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CreateTopicResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Create topic response sent from server to client.
   * If topic is already exists then response status will be "ALREADY_EXISTS".
   * 
* * Protobuf type {@code Ydb.Topic.CreateTopicResponse} */ public static final class CreateTopicResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CreateTopicResponse) CreateTopicResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CreateTopicResponse.newBuilder() to construct. private CreateTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateTopicResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateTopicResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.class, tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CreateTopicResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CreateTopicResponse other = (tech.ydb.proto.topic.YdbTopic.CreateTopicResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse 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 tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse 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 tech.ydb.proto.topic.YdbTopic.CreateTopicResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse 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(tech.ydb.proto.topic.YdbTopic.CreateTopicResponse 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; } /** *
     * Create topic response sent from server to client.
     * If topic is already exists then response status will be "ALREADY_EXISTS".
     * 
* * Protobuf type {@code Ydb.Topic.CreateTopicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CreateTopicResponse) tech.ydb.proto.topic.YdbTopic.CreateTopicResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.class, tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResponse build() { tech.ydb.proto.topic.YdbTopic.CreateTopicResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.CreateTopicResponse result = new tech.ydb.proto.topic.YdbTopic.CreateTopicResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.CreateTopicResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.CreateTopicResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CreateTopicResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CreateTopicResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.CreateTopicResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.CreateTopicResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CreateTopicResponse) private static final tech.ydb.proto.topic.YdbTopic.CreateTopicResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CreateTopicResponse(); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateTopicResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateTopicResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.CreateTopicResult) com.google.protobuf.MessageOrBuilder { } /** *
   * Create topic result message that will be inside CreateTopicResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.CreateTopicResult} */ public static final class CreateTopicResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.CreateTopicResult) CreateTopicResultOrBuilder { private static final long serialVersionUID = 0L; // Use CreateTopicResult.newBuilder() to construct. private CreateTopicResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateTopicResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateTopicResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicResult.class, tech.ydb.proto.topic.YdbTopic.CreateTopicResult.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.CreateTopicResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.CreateTopicResult other = (tech.ydb.proto.topic.YdbTopic.CreateTopicResult) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult 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 tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult 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 tech.ydb.proto.topic.YdbTopic.CreateTopicResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult 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(tech.ydb.proto.topic.YdbTopic.CreateTopicResult 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; } /** *
     * Create topic result message that will be inside CreateTopicResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.CreateTopicResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.CreateTopicResult) tech.ydb.proto.topic.YdbTopic.CreateTopicResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.CreateTopicResult.class, tech.ydb.proto.topic.YdbTopic.CreateTopicResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.CreateTopicResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_CreateTopicResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.CreateTopicResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResult build() { tech.ydb.proto.topic.YdbTopic.CreateTopicResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResult buildPartial() { tech.ydb.proto.topic.YdbTopic.CreateTopicResult result = new tech.ydb.proto.topic.YdbTopic.CreateTopicResult(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.CreateTopicResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.CreateTopicResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.CreateTopicResult other) { if (other == tech.ydb.proto.topic.YdbTopic.CreateTopicResult.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.CreateTopicResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.CreateTopicResult) private static final tech.ydb.proto.topic.YdbTopic.CreateTopicResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.CreateTopicResult(); } public static tech.ydb.proto.topic.YdbTopic.CreateTopicResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateTopicResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.CreateTopicResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.PartitionLocation) com.google.protobuf.MessageOrBuilder { /** *
     * Node identificator.
     * 
* * int32 node_id = 1; * @return The nodeId. */ int getNodeId(); /** *
     * Partition generation.
     * 
* * int64 generation = 2; * @return The generation. */ long getGeneration(); } /** *
   * Topic partition location
   * 
* * Protobuf type {@code Ydb.Topic.PartitionLocation} */ public static final class PartitionLocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.PartitionLocation) PartitionLocationOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionLocation.newBuilder() to construct. private PartitionLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionLocation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionLocation(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionLocation.class, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder.class); } public static final int NODE_ID_FIELD_NUMBER = 1; private int nodeId_ = 0; /** *
     * Node identificator.
     * 
* * int32 node_id = 1; * @return The nodeId. */ @java.lang.Override public int getNodeId() { return nodeId_; } public static final int GENERATION_FIELD_NUMBER = 2; private long generation_ = 0L; /** *
     * Partition generation.
     * 
* * int64 generation = 2; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } 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 (nodeId_ != 0) { output.writeInt32(1, nodeId_); } if (generation_ != 0L) { output.writeInt64(2, generation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nodeId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, nodeId_); } if (generation_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, generation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.PartitionLocation)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.PartitionLocation other = (tech.ydb.proto.topic.YdbTopic.PartitionLocation) obj; if (getNodeId() != other.getNodeId()) return false; if (getGeneration() != other.getGeneration()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGeneration()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation 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 tech.ydb.proto.topic.YdbTopic.PartitionLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation 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 tech.ydb.proto.topic.YdbTopic.PartitionLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation 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(tech.ydb.proto.topic.YdbTopic.PartitionLocation 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; } /** *
     * Topic partition location
     * 
* * Protobuf type {@code Ydb.Topic.PartitionLocation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.PartitionLocation) tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionLocation.class, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.PartitionLocation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nodeId_ = 0; generation_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionLocation_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation build() { tech.ydb.proto.topic.YdbTopic.PartitionLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation buildPartial() { tech.ydb.proto.topic.YdbTopic.PartitionLocation result = new tech.ydb.proto.topic.YdbTopic.PartitionLocation(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.PartitionLocation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nodeId_ = nodeId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.generation_ = generation_; } } @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 tech.ydb.proto.topic.YdbTopic.PartitionLocation) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.PartitionLocation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.PartitionLocation other) { if (other == tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance()) return this; if (other.getNodeId() != 0) { setNodeId(other.getNodeId()); } if (other.getGeneration() != 0L) { setGeneration(other.getGeneration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nodeId_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { generation_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int nodeId_ ; /** *
       * Node identificator.
       * 
* * int32 node_id = 1; * @return The nodeId. */ @java.lang.Override public int getNodeId() { return nodeId_; } /** *
       * Node identificator.
       * 
* * int32 node_id = 1; * @param value The nodeId to set. * @return This builder for chaining. */ public Builder setNodeId(int value) { nodeId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Node identificator.
       * 
* * int32 node_id = 1; * @return This builder for chaining. */ public Builder clearNodeId() { bitField0_ = (bitField0_ & ~0x00000001); nodeId_ = 0; onChanged(); return this; } private long generation_ ; /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @return The generation. */ @java.lang.Override public long getGeneration() { return generation_; } /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @param value The generation to set. * @return This builder for chaining. */ public Builder setGeneration(long value) { generation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Partition generation.
       * 
* * int64 generation = 2; * @return This builder for chaining. */ public Builder clearGeneration() { bitField0_ = (bitField0_ & ~0x00000002); generation_ = 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.Topic.PartitionLocation) } // @@protoc_insertion_point(class_scope:Ydb.Topic.PartitionLocation) private static final tech.ydb.proto.topic.YdbTopic.PartitionLocation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.PartitionLocation(); } public static tech.ydb.proto.topic.YdbTopic.PartitionLocation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionLocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeTopicRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Include topic statistics.
     * 
* * bool include_stats = 3; * @return The includeStats. */ boolean getIncludeStats(); /** *
     * Include partition location.
     * 
* * bool include_location = 4; * @return The includeLocation. */ boolean getIncludeLocation(); } /** *
   * Describe topic request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicRequest} */ public static final class DescribeTopicRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeTopicRequest) DescribeTopicRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeTopicRequest.newBuilder() to construct. private DescribeTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeTopicRequest() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeTopicRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INCLUDE_STATS_FIELD_NUMBER = 3; private boolean includeStats_ = false; /** *
     * Include topic statistics.
     * 
* * bool include_stats = 3; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } public static final int INCLUDE_LOCATION_FIELD_NUMBER = 4; private boolean includeLocation_ = false; /** *
     * Include partition location.
     * 
* * bool include_location = 4; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (includeStats_ != false) { output.writeBool(3, includeStats_); } if (includeLocation_ != false) { output.writeBool(4, includeLocation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (includeStats_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, includeStats_); } if (includeLocation_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, includeLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest other = (tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (getIncludeStats() != other.getIncludeStats()) return false; if (getIncludeLocation() != other.getIncludeLocation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + INCLUDE_STATS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeStats()); hash = (37 * hash) + INCLUDE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeLocation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest 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(tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest 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; } /** *
     * Describe topic request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeTopicRequest) tech.ydb.proto.topic.YdbTopic.DescribeTopicRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; includeStats_ = false; includeLocation_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest build() { tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest result = new tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.includeStats_ = includeStats_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.includeLocation_ = includeLocation_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.getIncludeStats() != false) { setIncludeStats(other.getIncludeStats()); } if (other.getIncludeLocation() != false) { setIncludeLocation(other.getIncludeLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { includeStats_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { includeLocation_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private boolean includeStats_ ; /** *
       * Include topic statistics.
       * 
* * bool include_stats = 3; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } /** *
       * Include topic statistics.
       * 
* * bool include_stats = 3; * @param value The includeStats to set. * @return This builder for chaining. */ public Builder setIncludeStats(boolean value) { includeStats_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Include topic statistics.
       * 
* * bool include_stats = 3; * @return This builder for chaining. */ public Builder clearIncludeStats() { bitField0_ = (bitField0_ & ~0x00000004); includeStats_ = false; onChanged(); return this; } private boolean includeLocation_ ; /** *
       * Include partition location.
       * 
* * bool include_location = 4; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } /** *
       * Include partition location.
       * 
* * bool include_location = 4; * @param value The includeLocation to set. * @return This builder for chaining. */ public Builder setIncludeLocation(boolean value) { includeLocation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Include partition location.
       * 
* * bool include_location = 4; * @return This builder for chaining. */ public Builder clearIncludeLocation() { bitField0_ = (bitField0_ & ~0x00000008); includeLocation_ = 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.Topic.DescribeTopicRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeTopicRequest) private static final tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest(); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeTopicResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeTopicResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Describe topic response sent from server to client.
   * If topic is not existed then response status will be "SCHEME_ERROR".
   * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicResponse} */ public static final class DescribeTopicResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeTopicResponse) DescribeTopicResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeTopicResponse.newBuilder() to construct. private DescribeTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeTopicResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeTopicResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse other = (tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse 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(tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse 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; } /** *
     * Describe topic response sent from server to client.
     * If topic is not existed then response status will be "SCHEME_ERROR".
     * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeTopicResponse) tech.ydb.proto.topic.YdbTopic.DescribeTopicResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse build() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse result = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.DescribeTopicResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeTopicResponse) private static final tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse(); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeTopicResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeTopicResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeTopicResult) com.google.protobuf.MessageOrBuilder { /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ boolean hasSelf(); /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf(); /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; */ tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return Whether the partitioningSettings field is set. */ boolean hasPartitioningSettings(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return The partitioningSettings. */ tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings(); /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder(); /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ java.util.List getPartitionsList(); /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartitions(int index); /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ int getPartitionsCount(); /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ java.util.List getPartitionsOrBuilderList(); /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ boolean hasRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ com.google.protobuf.Duration getRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; */ com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder(); /** *
     * How much data in partition should be stored.
     * Zero value means infinite limit.
     * 
* * int64 retention_storage_mb = 5; * @return The retentionStorageMb. */ long getRetentionStorageMb(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ boolean hasSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder(); /** *
     * Partition write speed in bytes per second.
     * Zero value means default limit: 1 MB per second.
     * 
* * int64 partition_write_speed_bytes_per_second = 8; * @return The partitionWriteSpeedBytesPerSecond. */ long getPartitionWriteSpeedBytesPerSecond(); /** * int64 partition_total_read_speed_bytes_per_second = 14; * @return The partitionTotalReadSpeedBytesPerSecond. */ long getPartitionTotalReadSpeedBytesPerSecond(); /** * int64 partition_consumer_read_speed_bytes_per_second = 15; * @return The partitionConsumerReadSpeedBytesPerSecond. */ long getPartitionConsumerReadSpeedBytesPerSecond(); /** *
     * Burst size for write in partition, in bytes.
     * Zero value means default limit: 1 MB.
     * 
* * int64 partition_write_burst_bytes = 9; * @return The partitionWriteBurstBytes. */ long getPartitionWriteBurstBytes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ int getAttributesCount(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ boolean containsAttributes( java.lang.String key); /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ java.util.Map getAttributesMap(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ java.lang.String getAttributesOrThrow( java.lang.String key); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ java.util.List getConsumersList(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ int getConsumersCount(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ java.util.List getConsumersOrBuilderList(); /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index); /** *
     * Metering settings.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ int getMeteringModeValue(); /** *
     * Metering settings.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode(); /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return Whether the topicStats field is set. */ boolean hasTopicStats(); /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return The topicStats. */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getTopicStats(); /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder getTopicStatsOrBuilder(); } /** *
   * Describe topic result message that will be inside DescribeTopicResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicResult} */ public static final class DescribeTopicResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeTopicResult) DescribeTopicResultOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeTopicResult.newBuilder() to construct. private DescribeTopicResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeTopicResult() { partitions_ = java.util.Collections.emptyList(); consumers_ = java.util.Collections.emptyList(); meteringMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeTopicResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.Builder.class); } public interface PartitionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeTopicResult.PartitionInfo) com.google.protobuf.MessageOrBuilder { /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return The partitionId. */ long getPartitionId(); /** *
       * Is partition open for write.
       * 
* * bool active = 2; * @return The active. */ boolean getActive(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ java.util.List getChildPartitionIdsList(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ int getChildPartitionIdsCount(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ long getChildPartitionIds(int index); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ java.util.List getParentPartitionIdsList(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ int getParentPartitionIdsCount(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ long getParentPartitionIds(int index); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ boolean hasPartitionStats(); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats(); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return Whether the partitionLocation field is set. */ boolean hasPartitionLocation(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return The partitionLocation. */ tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder(); } /** * Protobuf type {@code Ydb.Topic.DescribeTopicResult.PartitionInfo} */ public static final class PartitionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeTopicResult.PartitionInfo) PartitionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionInfo.newBuilder() to construct. private PartitionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionInfo() { childPartitionIds_ = emptyLongList(); parentPartitionIds_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder.class); } private int bitField0_; public static final int PARTITION_ID_FIELD_NUMBER = 1; private long partitionId_ = 0L; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int ACTIVE_FIELD_NUMBER = 2; private boolean active_ = false; /** *
       * Is partition open for write.
       * 
* * bool active = 2; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } public static final int CHILD_PARTITION_IDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList childPartitionIds_ = emptyLongList(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ @java.lang.Override public java.util.List getChildPartitionIdsList() { return childPartitionIds_; } /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ public int getChildPartitionIdsCount() { return childPartitionIds_.size(); } /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ public long getChildPartitionIds(int index) { return childPartitionIds_.getLong(index); } private int childPartitionIdsMemoizedSerializedSize = -1; public static final int PARENT_PARTITION_IDS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList parentPartitionIds_ = emptyLongList(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ @java.lang.Override public java.util.List getParentPartitionIdsList() { return parentPartitionIds_; } /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ public int getParentPartitionIdsCount() { return parentPartitionIds_.size(); } /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ public long getParentPartitionIds(int index) { return parentPartitionIds_.getLong(index); } private int parentPartitionIdsMemoizedSerializedSize = -1; public static final int PARTITION_STATS_FIELD_NUMBER = 5; private tech.ydb.proto.topic.YdbTopic.PartitionStats partitionStats_; /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ @java.lang.Override public boolean hasPartitionStats() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats() { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder() { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } public static final int PARTITION_LOCATION_FIELD_NUMBER = 6; private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return Whether the partitionLocation field is set. */ @java.lang.Override public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return The partitionLocation. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } 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 { getSerializedSize(); if (partitionId_ != 0L) { output.writeInt64(1, partitionId_); } if (active_ != false) { output.writeBool(2, active_); } if (getChildPartitionIdsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(childPartitionIdsMemoizedSerializedSize); } for (int i = 0; i < childPartitionIds_.size(); i++) { output.writeInt64NoTag(childPartitionIds_.getLong(i)); } if (getParentPartitionIdsList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(parentPartitionIdsMemoizedSerializedSize); } for (int i = 0; i < parentPartitionIds_.size(); i++) { output.writeInt64NoTag(parentPartitionIds_.getLong(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getPartitionStats()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getPartitionLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionId_); } if (active_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, active_); } { int dataSize = 0; for (int i = 0; i < childPartitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(childPartitionIds_.getLong(i)); } size += dataSize; if (!getChildPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } childPartitionIdsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < parentPartitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(parentPartitionIds_.getLong(i)); } size += dataSize; if (!getParentPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } parentPartitionIdsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPartitionStats()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPartitionLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo other = (tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo) obj; if (getPartitionId() != other.getPartitionId()) return false; if (getActive() != other.getActive()) return false; if (!getChildPartitionIdsList() .equals(other.getChildPartitionIdsList())) return false; if (!getParentPartitionIdsList() .equals(other.getParentPartitionIdsList())) return false; if (hasPartitionStats() != other.hasPartitionStats()) return false; if (hasPartitionStats()) { if (!getPartitionStats() .equals(other.getPartitionStats())) return false; } if (hasPartitionLocation() != other.hasPartitionLocation()) return false; if (hasPartitionLocation()) { if (!getPartitionLocation() .equals(other.getPartitionLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getActive()); if (getChildPartitionIdsCount() > 0) { hash = (37 * hash) + CHILD_PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getChildPartitionIdsList().hashCode(); } if (getParentPartitionIdsCount() > 0) { hash = (37 * hash) + PARENT_PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getParentPartitionIdsList().hashCode(); } if (hasPartitionStats()) { hash = (37 * hash) + PARTITION_STATS_FIELD_NUMBER; hash = (53 * hash) + getPartitionStats().hashCode(); } if (hasPartitionLocation()) { hash = (37 * hash) + PARTITION_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo 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(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo 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.Topic.DescribeTopicResult.PartitionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeTopicResult.PartitionInfo) tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionStatsFieldBuilder(); getPartitionLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionId_ = 0L; active_ = false; childPartitionIds_ = emptyLongList(); parentPartitionIds_ = emptyLongList(); partitionStats_ = null; if (partitionStatsBuilder_ != null) { partitionStatsBuilder_.dispose(); partitionStatsBuilder_ = null; } partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo build() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo result = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionId_ = partitionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.active_ = active_; } if (((from_bitField0_ & 0x00000004) != 0)) { childPartitionIds_.makeImmutable(); result.childPartitionIds_ = childPartitionIds_; } if (((from_bitField0_ & 0x00000008) != 0)) { parentPartitionIds_.makeImmutable(); result.parentPartitionIds_ = parentPartitionIds_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.partitionStats_ = partitionStatsBuilder_ == null ? partitionStats_ : partitionStatsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.partitionLocation_ = partitionLocationBuilder_ == null ? partitionLocation_ : partitionLocationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance()) return this; if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.getActive() != false) { setActive(other.getActive()); } if (!other.childPartitionIds_.isEmpty()) { if (childPartitionIds_.isEmpty()) { childPartitionIds_ = other.childPartitionIds_; childPartitionIds_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureChildPartitionIdsIsMutable(); childPartitionIds_.addAll(other.childPartitionIds_); } onChanged(); } if (!other.parentPartitionIds_.isEmpty()) { if (parentPartitionIds_.isEmpty()) { parentPartitionIds_ = other.parentPartitionIds_; parentPartitionIds_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addAll(other.parentPartitionIds_); } onChanged(); } if (other.hasPartitionStats()) { mergePartitionStats(other.getPartitionStats()); } if (other.hasPartitionLocation()) { mergePartitionLocation(other.getPartitionLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { active_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { long v = input.readInt64(); ensureChildPartitionIdsIsMutable(); childPartitionIds_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureChildPartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { childPartitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 case 32: { long v = input.readInt64(); ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addLong(v); break; } // case 32 case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureParentPartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { parentPartitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 34 case 42: { input.readMessage( getPartitionStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getPartitionLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionId_ ; /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionId_ = 0L; onChanged(); return this; } private boolean active_ ; /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @param value The active to set. * @return This builder for chaining. */ public Builder setActive(boolean value) { active_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @return This builder for chaining. */ public Builder clearActive() { bitField0_ = (bitField0_ & ~0x00000002); active_ = false; onChanged(); return this; } private com.google.protobuf.Internal.LongList childPartitionIds_ = emptyLongList(); private void ensureChildPartitionIdsIsMutable() { if (!childPartitionIds_.isModifiable()) { childPartitionIds_ = makeMutableCopy(childPartitionIds_); } bitField0_ |= 0x00000004; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ public java.util.List getChildPartitionIdsList() { childPartitionIds_.makeImmutable(); return childPartitionIds_; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ public int getChildPartitionIdsCount() { return childPartitionIds_.size(); } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ public long getChildPartitionIds(int index) { return childPartitionIds_.getLong(index); } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param index The index to set the value at. * @param value The childPartitionIds to set. * @return This builder for chaining. */ public Builder setChildPartitionIds( int index, long value) { ensureChildPartitionIdsIsMutable(); childPartitionIds_.setLong(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param value The childPartitionIds to add. * @return This builder for chaining. */ public Builder addChildPartitionIds(long value) { ensureChildPartitionIdsIsMutable(); childPartitionIds_.addLong(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param values The childPartitionIds to add. * @return This builder for chaining. */ public Builder addAllChildPartitionIds( java.lang.Iterable values) { ensureChildPartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, childPartitionIds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return This builder for chaining. */ public Builder clearChildPartitionIds() { childPartitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.LongList parentPartitionIds_ = emptyLongList(); private void ensureParentPartitionIdsIsMutable() { if (!parentPartitionIds_.isModifiable()) { parentPartitionIds_ = makeMutableCopy(parentPartitionIds_); } bitField0_ |= 0x00000008; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ public java.util.List getParentPartitionIdsList() { parentPartitionIds_.makeImmutable(); return parentPartitionIds_; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ public int getParentPartitionIdsCount() { return parentPartitionIds_.size(); } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ public long getParentPartitionIds(int index) { return parentPartitionIds_.getLong(index); } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param index The index to set the value at. * @param value The parentPartitionIds to set. * @return This builder for chaining. */ public Builder setParentPartitionIds( int index, long value) { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.setLong(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param value The parentPartitionIds to add. * @return This builder for chaining. */ public Builder addParentPartitionIds(long value) { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addLong(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param values The parentPartitionIds to add. * @return This builder for chaining. */ public Builder addAllParentPartitionIds( java.lang.Iterable values) { ensureParentPartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parentPartitionIds_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return This builder for chaining. */ public Builder clearParentPartitionIds() { parentPartitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.PartitionStats partitionStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder> partitionStatsBuilder_; /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ public boolean hasPartitionStats() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ public tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats() { if (partitionStatsBuilder_ == null) { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } else { return partitionStatsBuilder_.getMessage(); } } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder setPartitionStats(tech.ydb.proto.topic.YdbTopic.PartitionStats value) { if (partitionStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionStats_ = value; } else { partitionStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder setPartitionStats( tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder builderForValue) { if (partitionStatsBuilder_ == null) { partitionStats_ = builderForValue.build(); } else { partitionStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder mergePartitionStats(tech.ydb.proto.topic.YdbTopic.PartitionStats value) { if (partitionStatsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && partitionStats_ != null && partitionStats_ != tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance()) { getPartitionStatsBuilder().mergeFrom(value); } else { partitionStats_ = value; } } else { partitionStatsBuilder_.mergeFrom(value); } if (partitionStats_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder clearPartitionStats() { bitField0_ = (bitField0_ & ~0x00000010); partitionStats_ = null; if (partitionStatsBuilder_ != null) { partitionStatsBuilder_.dispose(); partitionStatsBuilder_ = null; } onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder getPartitionStatsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPartitionStatsFieldBuilder().getBuilder(); } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder() { if (partitionStatsBuilder_ != null) { return partitionStatsBuilder_.getMessageOrBuilder(); } else { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder> getPartitionStatsFieldBuilder() { if (partitionStatsBuilder_ == null) { partitionStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder>( getPartitionStats(), getParentForChildren(), isClean()); partitionStats_ = null; } return partitionStatsBuilder_; } private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> partitionLocationBuilder_; /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return Whether the partitionLocation field is set. */ public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000020) != 0); } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; * @return The partitionLocation. */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { if (partitionLocationBuilder_ == null) { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } else { return partitionLocationBuilder_.getMessage(); } } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public Builder setPartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionLocation_ = value; } else { partitionLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public Builder setPartitionLocation( tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder builderForValue) { if (partitionLocationBuilder_ == null) { partitionLocation_ = builderForValue.build(); } else { partitionLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public Builder mergePartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && partitionLocation_ != null && partitionLocation_ != tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance()) { getPartitionLocationBuilder().mergeFrom(value); } else { partitionLocation_ = value; } } else { partitionLocationBuilder_.mergeFrom(value); } if (partitionLocation_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public Builder clearPartitionLocation() { bitField0_ = (bitField0_ & ~0x00000020); partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder getPartitionLocationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPartitionLocationFieldBuilder().getBuilder(); } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { if (partitionLocationBuilder_ != null) { return partitionLocationBuilder_.getMessageOrBuilder(); } else { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 6; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> getPartitionLocationFieldBuilder() { if (partitionLocationBuilder_ == null) { partitionLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder>( getPartitionLocation(), getParentForChildren(), isClean()); partitionLocation_ = null; } return partitionLocationBuilder_; } @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.Topic.DescribeTopicResult.PartitionInfo) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeTopicResult.PartitionInfo) private static final tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo(); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopicStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeTopicResult.TopicStats) com.google.protobuf.MessageOrBuilder { /** *
       * Approximate size of topic.
       * 
* * int64 store_size_bytes = 1; * @return The storeSizeBytes. */ long getStoreSizeBytes(); /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return Whether the minLastWriteTime field is set. */ boolean hasMinLastWriteTime(); /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return The minLastWriteTime. */ com.google.protobuf.Timestamp getMinLastWriteTime(); /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ com.google.protobuf.TimestampOrBuilder getMinLastWriteTimeOrBuilder(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ boolean hasMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ com.google.protobuf.Duration getMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder(); /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return Whether the bytesWritten field is set. */ boolean hasBytesWritten(); /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return The bytesWritten. */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten(); /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder(); } /** * Protobuf type {@code Ydb.Topic.DescribeTopicResult.TopicStats} */ public static final class TopicStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeTopicResult.TopicStats) TopicStatsOrBuilder { private static final long serialVersionUID = 0L; // Use TopicStats.newBuilder() to construct. private TopicStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder.class); } private int bitField0_; public static final int STORE_SIZE_BYTES_FIELD_NUMBER = 1; private long storeSizeBytes_ = 0L; /** *
       * Approximate size of topic.
       * 
* * int64 store_size_bytes = 1; * @return The storeSizeBytes. */ @java.lang.Override public long getStoreSizeBytes() { return storeSizeBytes_; } public static final int MIN_LAST_WRITE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp minLastWriteTime_; /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return Whether the minLastWriteTime field is set. */ @java.lang.Override public boolean hasMinLastWriteTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return The minLastWriteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinLastWriteTime() { return minLastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLastWriteTime_; } /** *
       * Minimum of timestamps of last write among all partitions.
       * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMinLastWriteTimeOrBuilder() { return minLastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLastWriteTime_; } public static final int MAX_WRITE_TIME_LAG_FIELD_NUMBER = 3; private com.google.protobuf.Duration maxWriteTimeLag_; /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ @java.lang.Override public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxWriteTimeLag() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } public static final int BYTES_WRITTEN_FIELD_NUMBER = 4; private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesWritten_; /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return Whether the bytesWritten field is set. */ @java.lang.Override public boolean hasBytesWritten() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return The bytesWritten. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten() { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } /** *
       * How much bytes were written statistics.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder() { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } 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 (storeSizeBytes_ != 0L) { output.writeInt64(1, storeSizeBytes_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMinLastWriteTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getBytesWritten()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (storeSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, storeSizeBytes_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMinLastWriteTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBytesWritten()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats other = (tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats) obj; if (getStoreSizeBytes() != other.getStoreSizeBytes()) return false; if (hasMinLastWriteTime() != other.hasMinLastWriteTime()) return false; if (hasMinLastWriteTime()) { if (!getMinLastWriteTime() .equals(other.getMinLastWriteTime())) return false; } if (hasMaxWriteTimeLag() != other.hasMaxWriteTimeLag()) return false; if (hasMaxWriteTimeLag()) { if (!getMaxWriteTimeLag() .equals(other.getMaxWriteTimeLag())) return false; } if (hasBytesWritten() != other.hasBytesWritten()) return false; if (hasBytesWritten()) { if (!getBytesWritten() .equals(other.getBytesWritten())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STORE_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStoreSizeBytes()); if (hasMinLastWriteTime()) { hash = (37 * hash) + MIN_LAST_WRITE_TIME_FIELD_NUMBER; hash = (53 * hash) + getMinLastWriteTime().hashCode(); } if (hasMaxWriteTimeLag()) { hash = (37 * hash) + MAX_WRITE_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxWriteTimeLag().hashCode(); } if (hasBytesWritten()) { hash = (37 * hash) + BYTES_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + getBytesWritten().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats 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(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats 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.Topic.DescribeTopicResult.TopicStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeTopicResult.TopicStats) tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMinLastWriteTimeFieldBuilder(); getMaxWriteTimeLagFieldBuilder(); getBytesWrittenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; storeSizeBytes_ = 0L; minLastWriteTime_ = null; if (minLastWriteTimeBuilder_ != null) { minLastWriteTimeBuilder_.dispose(); minLastWriteTimeBuilder_ = null; } maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } bytesWritten_ = null; if (bytesWrittenBuilder_ != null) { bytesWrittenBuilder_.dispose(); bytesWrittenBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats build() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats result = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.storeSizeBytes_ = storeSizeBytes_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.minLastWriteTime_ = minLastWriteTimeBuilder_ == null ? minLastWriteTime_ : minLastWriteTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxWriteTimeLag_ = maxWriteTimeLagBuilder_ == null ? maxWriteTimeLag_ : maxWriteTimeLagBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bytesWritten_ = bytesWrittenBuilder_ == null ? bytesWritten_ : bytesWrittenBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance()) return this; if (other.getStoreSizeBytes() != 0L) { setStoreSizeBytes(other.getStoreSizeBytes()); } if (other.hasMinLastWriteTime()) { mergeMinLastWriteTime(other.getMinLastWriteTime()); } if (other.hasMaxWriteTimeLag()) { mergeMaxWriteTimeLag(other.getMaxWriteTimeLag()); } if (other.hasBytesWritten()) { mergeBytesWritten(other.getBytesWritten()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { storeSizeBytes_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getMinLastWriteTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMaxWriteTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getBytesWrittenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long storeSizeBytes_ ; /** *
         * Approximate size of topic.
         * 
* * int64 store_size_bytes = 1; * @return The storeSizeBytes. */ @java.lang.Override public long getStoreSizeBytes() { return storeSizeBytes_; } /** *
         * Approximate size of topic.
         * 
* * int64 store_size_bytes = 1; * @param value The storeSizeBytes to set. * @return This builder for chaining. */ public Builder setStoreSizeBytes(long value) { storeSizeBytes_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Approximate size of topic.
         * 
* * int64 store_size_bytes = 1; * @return This builder for chaining. */ public Builder clearStoreSizeBytes() { bitField0_ = (bitField0_ & ~0x00000001); storeSizeBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp minLastWriteTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minLastWriteTimeBuilder_; /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return Whether the minLastWriteTime field is set. */ public boolean hasMinLastWriteTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; * @return The minLastWriteTime. */ public com.google.protobuf.Timestamp getMinLastWriteTime() { if (minLastWriteTimeBuilder_ == null) { return minLastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLastWriteTime_; } else { return minLastWriteTimeBuilder_.getMessage(); } } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public Builder setMinLastWriteTime(com.google.protobuf.Timestamp value) { if (minLastWriteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minLastWriteTime_ = value; } else { minLastWriteTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public Builder setMinLastWriteTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (minLastWriteTimeBuilder_ == null) { minLastWriteTime_ = builderForValue.build(); } else { minLastWriteTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public Builder mergeMinLastWriteTime(com.google.protobuf.Timestamp value) { if (minLastWriteTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && minLastWriteTime_ != null && minLastWriteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getMinLastWriteTimeBuilder().mergeFrom(value); } else { minLastWriteTime_ = value; } } else { minLastWriteTimeBuilder_.mergeFrom(value); } if (minLastWriteTime_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public Builder clearMinLastWriteTime() { bitField0_ = (bitField0_ & ~0x00000002); minLastWriteTime_ = null; if (minLastWriteTimeBuilder_ != null) { minLastWriteTimeBuilder_.dispose(); minLastWriteTimeBuilder_ = null; } onChanged(); return this; } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public com.google.protobuf.Timestamp.Builder getMinLastWriteTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinLastWriteTimeFieldBuilder().getBuilder(); } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ public com.google.protobuf.TimestampOrBuilder getMinLastWriteTimeOrBuilder() { if (minLastWriteTimeBuilder_ != null) { return minLastWriteTimeBuilder_.getMessageOrBuilder(); } else { return minLastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minLastWriteTime_; } } /** *
         * Minimum of timestamps of last write among all partitions.
         * 
* * .google.protobuf.Timestamp min_last_write_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMinLastWriteTimeFieldBuilder() { if (minLastWriteTimeBuilder_ == null) { minLastWriteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMinLastWriteTime(), getParentForChildren(), isClean()); minLastWriteTime_ = null; } return minLastWriteTimeBuilder_; } private com.google.protobuf.Duration maxWriteTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWriteTimeLagBuilder_; /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return Whether the maxWriteTimeLag field is set. */ public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; * @return The maxWriteTimeLag. */ public com.google.protobuf.Duration getMaxWriteTimeLag() { if (maxWriteTimeLagBuilder_ == null) { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } else { return maxWriteTimeLagBuilder_.getMessage(); } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder setMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxWriteTimeLag_ = value; } else { maxWriteTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder setMaxWriteTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLag_ = builderForValue.build(); } else { maxWriteTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder mergeMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && maxWriteTimeLag_ != null && maxWriteTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxWriteTimeLagBuilder().mergeFrom(value); } else { maxWriteTimeLag_ = value; } } else { maxWriteTimeLagBuilder_.mergeFrom(value); } if (maxWriteTimeLag_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public Builder clearMaxWriteTimeLag() { bitField0_ = (bitField0_ & ~0x00000004); maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public com.google.protobuf.Duration.Builder getMaxWriteTimeLagBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxWriteTimeLagFieldBuilder().getBuilder(); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { if (maxWriteTimeLagBuilder_ != null) { return maxWriteTimeLagBuilder_.getMessageOrBuilder(); } else { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxWriteTimeLagFieldBuilder() { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxWriteTimeLag(), getParentForChildren(), isClean()); maxWriteTimeLag_ = null; } return maxWriteTimeLagBuilder_; } private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesWritten_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> bytesWrittenBuilder_; /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return Whether the bytesWritten field is set. */ public boolean hasBytesWritten() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; * @return The bytesWritten. */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten() { if (bytesWrittenBuilder_ == null) { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } else { return bytesWrittenBuilder_.getMessage(); } } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public Builder setBytesWritten(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesWrittenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bytesWritten_ = value; } else { bytesWrittenBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public Builder setBytesWritten( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder builderForValue) { if (bytesWrittenBuilder_ == null) { bytesWritten_ = builderForValue.build(); } else { bytesWrittenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public Builder mergeBytesWritten(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesWrittenBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && bytesWritten_ != null && bytesWritten_ != tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance()) { getBytesWrittenBuilder().mergeFrom(value); } else { bytesWritten_ = value; } } else { bytesWrittenBuilder_.mergeFrom(value); } if (bytesWritten_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public Builder clearBytesWritten() { bitField0_ = (bitField0_ & ~0x00000008); bytesWritten_ = null; if (bytesWrittenBuilder_ != null) { bytesWrittenBuilder_.dispose(); bytesWrittenBuilder_ = null; } onChanged(); return this; } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder getBytesWrittenBuilder() { bitField0_ |= 0x00000008; onChanged(); return getBytesWrittenFieldBuilder().getBuilder(); } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder() { if (bytesWrittenBuilder_ != null) { return bytesWrittenBuilder_.getMessageOrBuilder(); } else { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } } /** *
         * How much bytes were written statistics.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 4; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> getBytesWrittenFieldBuilder() { if (bytesWrittenBuilder_ == null) { bytesWrittenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder>( getBytesWritten(), getParentForChildren(), isClean()); bytesWritten_ = null; } return bytesWrittenBuilder_; } @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.Topic.DescribeTopicResult.TopicStats) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeTopicResult.TopicStats) private static final tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats(); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SELF_FIELD_NUMBER = 1; private tech.ydb.proto.scheme.SchemeOperationProtos.Entry self_; /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ @java.lang.Override public boolean hasSelf() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ @java.lang.Override public tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf() { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; */ @java.lang.Override public tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } public static final int PARTITIONING_SETTINGS_FIELD_NUMBER = 2; private tech.ydb.proto.topic.YdbTopic.PartitioningSettings partitioningSettings_; /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return Whether the partitioningSettings field is set. */ @java.lang.Override public boolean hasPartitioningSettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return The partitioningSettings. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings() { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } /** *
     * Settings for partitioning
     * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder() { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } public static final int PARTITIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List partitions_; /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ @java.lang.Override public java.util.List getPartitionsList() { return partitions_; } /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ @java.lang.Override public java.util.List getPartitionsOrBuilderList() { return partitions_; } /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ @java.lang.Override public int getPartitionsCount() { return partitions_.size(); } /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartitions(int index) { return partitions_.get(index); } /** *
     * Partitions description.
     * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index) { return partitions_.get(index); } public static final int RETENTION_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration retentionPeriod_; /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored.
     * 
* * .google.protobuf.Duration retention_period = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } public static final int RETENTION_STORAGE_MB_FIELD_NUMBER = 5; private long retentionStorageMb_ = 0L; /** *
     * How much data in partition should be stored.
     * Zero value means infinite limit.
     * 
* * int64 retention_storage_mb = 5; * @return The retentionStorageMb. */ @java.lang.Override public long getRetentionStorageMb() { return retentionStorageMb_; } public static final int SUPPORTED_CODECS_FIELD_NUMBER = 7; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ @java.lang.Override public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } public static final int PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER = 8; private long partitionWriteSpeedBytesPerSecond_ = 0L; /** *
     * Partition write speed in bytes per second.
     * Zero value means default limit: 1 MB per second.
     * 
* * int64 partition_write_speed_bytes_per_second = 8; * @return The partitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionWriteSpeedBytesPerSecond() { return partitionWriteSpeedBytesPerSecond_; } public static final int PARTITION_TOTAL_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER = 14; private long partitionTotalReadSpeedBytesPerSecond_ = 0L; /** * int64 partition_total_read_speed_bytes_per_second = 14; * @return The partitionTotalReadSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionTotalReadSpeedBytesPerSecond() { return partitionTotalReadSpeedBytesPerSecond_; } public static final int PARTITION_CONSUMER_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER = 15; private long partitionConsumerReadSpeedBytesPerSecond_ = 0L; /** * int64 partition_consumer_read_speed_bytes_per_second = 15; * @return The partitionConsumerReadSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionConsumerReadSpeedBytesPerSecond() { return partitionConsumerReadSpeedBytesPerSecond_; } public static final int PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER = 9; private long partitionWriteBurstBytes_ = 0L; /** *
     * Burst size for write in partition, in bytes.
     * Zero value means default limit: 1 MB.
     * 
* * int64 partition_write_burst_bytes = 9; * @return The partitionWriteBurstBytes. */ @java.lang.Override public long getPartitionWriteBurstBytes() { return partitionWriteBurstBytes_; } public static final int ATTRIBUTES_FIELD_NUMBER = 10; private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONSUMERS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List consumers_; /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ @java.lang.Override public java.util.List getConsumersList() { return consumers_; } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ @java.lang.Override public java.util.List getConsumersOrBuilderList() { return consumers_; } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ @java.lang.Override public int getConsumersCount() { return consumers_.size(); } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index) { return consumers_.get(index); } /** *
     * List of consumers for this topic.
     * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index) { return consumers_.get(index); } public static final int METERING_MODE_FIELD_NUMBER = 12; private int meteringMode_ = 0; /** *
     * Metering settings.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ @java.lang.Override public int getMeteringModeValue() { return meteringMode_; } /** *
     * Metering settings.
     * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(meteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } public static final int TOPIC_STATS_FIELD_NUMBER = 13; private tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats topicStats_; /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return Whether the topicStats field is set. */ @java.lang.Override public boolean hasTopicStats() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return The topicStats. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getTopicStats() { return topicStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance() : topicStats_; } /** *
     * Statistics of topic.
     * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder getTopicStatsOrBuilder() { return topicStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance() : topicStats_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSelf()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPartitioningSettings()); } for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(3, partitions_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getRetentionPeriod()); } if (retentionStorageMb_ != 0L) { output.writeInt64(5, retentionStorageMb_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getSupportedCodecs()); } if (partitionWriteSpeedBytesPerSecond_ != 0L) { output.writeInt64(8, partitionWriteSpeedBytesPerSecond_); } if (partitionWriteBurstBytes_ != 0L) { output.writeInt64(9, partitionWriteBurstBytes_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 10); for (int i = 0; i < consumers_.size(); i++) { output.writeMessage(11, consumers_.get(i)); } if (meteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(12, meteringMode_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(13, getTopicStats()); } if (partitionTotalReadSpeedBytesPerSecond_ != 0L) { output.writeInt64(14, partitionTotalReadSpeedBytesPerSecond_); } if (partitionConsumerReadSpeedBytesPerSecond_ != 0L) { output.writeInt64(15, partitionConsumerReadSpeedBytesPerSecond_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSelf()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPartitioningSettings()); } for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, partitions_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRetentionPeriod()); } if (retentionStorageMb_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, retentionStorageMb_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getSupportedCodecs()); } if (partitionWriteSpeedBytesPerSecond_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, partitionWriteSpeedBytesPerSecond_); } if (partitionWriteBurstBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, partitionWriteBurstBytes_); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, attributes__); } for (int i = 0; i < consumers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, consumers_.get(i)); } if (meteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, meteringMode_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getTopicStats()); } if (partitionTotalReadSpeedBytesPerSecond_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, partitionTotalReadSpeedBytesPerSecond_); } if (partitionConsumerReadSpeedBytesPerSecond_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(15, partitionConsumerReadSpeedBytesPerSecond_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeTopicResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeTopicResult other = (tech.ydb.proto.topic.YdbTopic.DescribeTopicResult) obj; if (hasSelf() != other.hasSelf()) return false; if (hasSelf()) { if (!getSelf() .equals(other.getSelf())) return false; } if (hasPartitioningSettings() != other.hasPartitioningSettings()) return false; if (hasPartitioningSettings()) { if (!getPartitioningSettings() .equals(other.getPartitioningSettings())) return false; } if (!getPartitionsList() .equals(other.getPartitionsList())) return false; if (hasRetentionPeriod() != other.hasRetentionPeriod()) return false; if (hasRetentionPeriod()) { if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; } if (getRetentionStorageMb() != other.getRetentionStorageMb()) return false; if (hasSupportedCodecs() != other.hasSupportedCodecs()) return false; if (hasSupportedCodecs()) { if (!getSupportedCodecs() .equals(other.getSupportedCodecs())) return false; } if (getPartitionWriteSpeedBytesPerSecond() != other.getPartitionWriteSpeedBytesPerSecond()) return false; if (getPartitionTotalReadSpeedBytesPerSecond() != other.getPartitionTotalReadSpeedBytesPerSecond()) return false; if (getPartitionConsumerReadSpeedBytesPerSecond() != other.getPartitionConsumerReadSpeedBytesPerSecond()) return false; if (getPartitionWriteBurstBytes() != other.getPartitionWriteBurstBytes()) return false; if (!internalGetAttributes().equals( other.internalGetAttributes())) return false; if (!getConsumersList() .equals(other.getConsumersList())) return false; if (meteringMode_ != other.meteringMode_) return false; if (hasTopicStats() != other.hasTopicStats()) return false; if (hasTopicStats()) { if (!getTopicStats() .equals(other.getTopicStats())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSelf()) { hash = (37 * hash) + SELF_FIELD_NUMBER; hash = (53 * hash) + getSelf().hashCode(); } if (hasPartitioningSettings()) { hash = (37 * hash) + PARTITIONING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getPartitioningSettings().hashCode(); } if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().hashCode(); } if (hasRetentionPeriod()) { hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); } hash = (37 * hash) + RETENTION_STORAGE_MB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRetentionStorageMb()); if (hasSupportedCodecs()) { hash = (37 * hash) + SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSupportedCodecs().hashCode(); } hash = (37 * hash) + PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionWriteSpeedBytesPerSecond()); hash = (37 * hash) + PARTITION_TOTAL_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionTotalReadSpeedBytesPerSecond()); hash = (37 * hash) + PARTITION_CONSUMER_READ_SPEED_BYTES_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionConsumerReadSpeedBytesPerSecond()); hash = (37 * hash) + PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionWriteBurstBytes()); if (!internalGetAttributes().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } if (getConsumersCount() > 0) { hash = (37 * hash) + CONSUMERS_FIELD_NUMBER; hash = (53 * hash) + getConsumersList().hashCode(); } hash = (37 * hash) + METERING_MODE_FIELD_NUMBER; hash = (53 * hash) + meteringMode_; if (hasTopicStats()) { hash = (37 * hash) + TOPIC_STATS_FIELD_NUMBER; hash = (53 * hash) + getTopicStats().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult 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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult 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(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult 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; } /** *
     * Describe topic result message that will be inside DescribeTopicResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.DescribeTopicResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeTopicResult) tech.ydb.proto.topic.YdbTopic.DescribeTopicResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.class, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelfFieldBuilder(); getPartitioningSettingsFieldBuilder(); getPartitionsFieldBuilder(); getRetentionPeriodFieldBuilder(); getSupportedCodecsFieldBuilder(); getConsumersFieldBuilder(); getTopicStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; self_ = null; if (selfBuilder_ != null) { selfBuilder_.dispose(); selfBuilder_ = null; } partitioningSettings_ = null; if (partitioningSettingsBuilder_ != null) { partitioningSettingsBuilder_.dispose(); partitioningSettingsBuilder_ = null; } if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); } else { partitions_ = null; partitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); retentionPeriod_ = null; if (retentionPeriodBuilder_ != null) { retentionPeriodBuilder_.dispose(); retentionPeriodBuilder_ = null; } retentionStorageMb_ = 0L; supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } partitionWriteSpeedBytesPerSecond_ = 0L; partitionTotalReadSpeedBytesPerSecond_ = 0L; partitionConsumerReadSpeedBytesPerSecond_ = 0L; partitionWriteBurstBytes_ = 0L; internalGetMutableAttributes().clear(); if (consumersBuilder_ == null) { consumers_ = java.util.Collections.emptyList(); } else { consumers_ = null; consumersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); meteringMode_ = 0; topicStats_ = null; if (topicStatsBuilder_ != null) { topicStatsBuilder_.dispose(); topicStatsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeTopicResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult build() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult result = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult result) { if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000004); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } if (consumersBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { consumers_ = java.util.Collections.unmodifiableList(consumers_); bitField0_ = (bitField0_ & ~0x00000800); } result.consumers_ = consumers_; } else { result.consumers_ = consumersBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.self_ = selfBuilder_ == null ? self_ : selfBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.partitioningSettings_ = partitioningSettingsBuilder_ == null ? partitioningSettings_ : partitioningSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.retentionPeriod_ = retentionPeriodBuilder_ == null ? retentionPeriod_ : retentionPeriodBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.retentionStorageMb_ = retentionStorageMb_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.supportedCodecs_ = supportedCodecsBuilder_ == null ? supportedCodecs_ : supportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.partitionWriteSpeedBytesPerSecond_ = partitionWriteSpeedBytesPerSecond_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.partitionTotalReadSpeedBytesPerSecond_ = partitionTotalReadSpeedBytesPerSecond_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.partitionConsumerReadSpeedBytesPerSecond_ = partitionConsumerReadSpeedBytesPerSecond_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.partitionWriteBurstBytes_ = partitionWriteBurstBytes_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.meteringMode_ = meteringMode_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.topicStats_ = topicStatsBuilder_ == null ? topicStats_ : topicStatsBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeTopicResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeTopicResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.getDefaultInstance()) return this; if (other.hasSelf()) { mergeSelf(other.getSelf()); } if (other.hasPartitioningSettings()) { mergePartitioningSettings(other.getPartitioningSettings()); } if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } } else { if (!other.partitions_.isEmpty()) { if (partitionsBuilder_.isEmpty()) { partitionsBuilder_.dispose(); partitionsBuilder_ = null; partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000004); partitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); } } } if (other.hasRetentionPeriod()) { mergeRetentionPeriod(other.getRetentionPeriod()); } if (other.getRetentionStorageMb() != 0L) { setRetentionStorageMb(other.getRetentionStorageMb()); } if (other.hasSupportedCodecs()) { mergeSupportedCodecs(other.getSupportedCodecs()); } if (other.getPartitionWriteSpeedBytesPerSecond() != 0L) { setPartitionWriteSpeedBytesPerSecond(other.getPartitionWriteSpeedBytesPerSecond()); } if (other.getPartitionTotalReadSpeedBytesPerSecond() != 0L) { setPartitionTotalReadSpeedBytesPerSecond(other.getPartitionTotalReadSpeedBytesPerSecond()); } if (other.getPartitionConsumerReadSpeedBytesPerSecond() != 0L) { setPartitionConsumerReadSpeedBytesPerSecond(other.getPartitionConsumerReadSpeedBytesPerSecond()); } if (other.getPartitionWriteBurstBytes() != 0L) { setPartitionWriteBurstBytes(other.getPartitionWriteBurstBytes()); } internalGetMutableAttributes().mergeFrom( other.internalGetAttributes()); bitField0_ |= 0x00000400; if (consumersBuilder_ == null) { if (!other.consumers_.isEmpty()) { if (consumers_.isEmpty()) { consumers_ = other.consumers_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureConsumersIsMutable(); consumers_.addAll(other.consumers_); } onChanged(); } } else { if (!other.consumers_.isEmpty()) { if (consumersBuilder_.isEmpty()) { consumersBuilder_.dispose(); consumersBuilder_ = null; consumers_ = other.consumers_; bitField0_ = (bitField0_ & ~0x00000800); consumersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConsumersFieldBuilder() : null; } else { consumersBuilder_.addAllMessages(other.consumers_); } } } if (other.meteringMode_ != 0) { setMeteringModeValue(other.getMeteringModeValue()); } if (other.hasTopicStats()) { mergeTopicStats(other.getTopicStats()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSelfFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPartitioningSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo m = input.readMessage( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.parser(), extensionRegistry); if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(m); } else { partitionsBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getRetentionPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { retentionStorageMb_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 58: { input.readMessage( getSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 case 64: { partitionWriteSpeedBytesPerSecond_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 64 case 72: { partitionWriteBurstBytes_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 72 case 82: { com.google.protobuf.MapEntry attributes__ = input.readMessage( AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributes().getMutableMap().put( attributes__.getKey(), attributes__.getValue()); bitField0_ |= 0x00000400; break; } // case 82 case 90: { tech.ydb.proto.topic.YdbTopic.Consumer m = input.readMessage( tech.ydb.proto.topic.YdbTopic.Consumer.parser(), extensionRegistry); if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(m); } else { consumersBuilder_.addMessage(m); } break; } // case 90 case 96: { meteringMode_ = input.readEnum(); bitField0_ |= 0x00001000; break; } // case 96 case 106: { input.readMessage( getTopicStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 106 case 112: { partitionTotalReadSpeedBytesPerSecond_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 112 case 120: { partitionConsumerReadSpeedBytesPerSecond_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.scheme.SchemeOperationProtos.Entry self_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder> selfBuilder_; /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ public boolean hasSelf() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ public tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf() { if (selfBuilder_ == null) { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } else { return selfBuilder_.getMessage(); } } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder setSelf(tech.ydb.proto.scheme.SchemeOperationProtos.Entry value) { if (selfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } self_ = value; } else { selfBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder setSelf( tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder builderForValue) { if (selfBuilder_ == null) { self_ = builderForValue.build(); } else { selfBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder mergeSelf(tech.ydb.proto.scheme.SchemeOperationProtos.Entry value) { if (selfBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && self_ != null && self_ != tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance()) { getSelfBuilder().mergeFrom(value); } else { self_ = value; } } else { selfBuilder_.mergeFrom(value); } if (self_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder clearSelf() { bitField0_ = (bitField0_ & ~0x00000001); self_ = null; if (selfBuilder_ != null) { selfBuilder_.dispose(); selfBuilder_ = null; } onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder getSelfBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSelfFieldBuilder().getBuilder(); } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() { if (selfBuilder_ != null) { return selfBuilder_.getMessageOrBuilder(); } else { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder> getSelfFieldBuilder() { if (selfBuilder_ == null) { selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder>( getSelf(), getParentForChildren(), isClean()); self_ = null; } return selfBuilder_; } private tech.ydb.proto.topic.YdbTopic.PartitioningSettings partitioningSettings_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder> partitioningSettingsBuilder_; /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return Whether the partitioningSettings field is set. */ public boolean hasPartitioningSettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; * @return The partitioningSettings. */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getPartitioningSettings() { if (partitioningSettingsBuilder_ == null) { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } else { return partitioningSettingsBuilder_.getMessage(); } } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public Builder setPartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) { if (partitioningSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitioningSettings_ = value; } else { partitioningSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public Builder setPartitioningSettings( tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder builderForValue) { if (partitioningSettingsBuilder_ == null) { partitioningSettings_ = builderForValue.build(); } else { partitioningSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public Builder mergePartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) { if (partitioningSettingsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && partitioningSettings_ != null && partitioningSettings_ != tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance()) { getPartitioningSettingsBuilder().mergeFrom(value); } else { partitioningSettings_ = value; } } else { partitioningSettingsBuilder_.mergeFrom(value); } if (partitioningSettings_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public Builder clearPartitioningSettings() { bitField0_ = (bitField0_ & ~0x00000002); partitioningSettings_ = null; if (partitioningSettingsBuilder_ != null) { partitioningSettingsBuilder_.dispose(); partitioningSettingsBuilder_ = null; } onChanged(); return this; } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder getPartitioningSettingsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitioningSettingsFieldBuilder().getBuilder(); } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getPartitioningSettingsOrBuilder() { if (partitioningSettingsBuilder_ != null) { return partitioningSettingsBuilder_.getMessageOrBuilder(); } else { return partitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : partitioningSettings_; } } /** *
       * Settings for partitioning
       * 
* * .Ydb.Topic.PartitioningSettings partitioning_settings = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder> getPartitioningSettingsFieldBuilder() { if (partitioningSettingsBuilder_ == null) { partitioningSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder>( getPartitioningSettings(), getParentForChildren(), isClean()); partitioningSettings_ = null; } return partitioningSettingsBuilder_; } private java.util.List partitions_ = java.util.Collections.emptyList(); private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { partitions_ = new java.util.ArrayList(partitions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder> partitionsBuilder_; /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsList() { if (partitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitions_); } else { return partitionsBuilder_.getMessageList(); } } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public int getPartitionsCount() { if (partitionsBuilder_ == null) { return partitions_.size(); } else { return partitionsBuilder_.getCount(); } } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartitions(int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessage(index); } } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder addPartitions(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder addPartitions( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder addAllPartitions( java.lang.Iterable values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { partitionsBuilder_.clear(); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder getPartitionsBuilder( int index) { return getPartitionsFieldBuilder().getBuilder(index); } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsOrBuilderList() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitions_); } } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder addPartitionsBuilder() { return getPartitionsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance()); } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder addPartitionsBuilder( int index) { return getPartitionsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance()); } /** *
       * Partitions description.
       * 
* * repeated .Ydb.Topic.DescribeTopicResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsBuilderList() { return getPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder>( partitions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } private com.google.protobuf.Duration retentionPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionPeriodBuilder_; /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; * @return Whether the retentionPeriod field is set. */ public boolean hasRetentionPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; * @return The retentionPeriod. */ public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } else { return retentionPeriodBuilder_.getMessage(); } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder setRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionPeriod_ = value; } else { retentionPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPeriod_ = builderForValue.build(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && retentionPeriod_ != null && retentionPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getRetentionPeriodBuilder().mergeFrom(value); } else { retentionPeriod_ = value; } } else { retentionPeriodBuilder_.mergeFrom(value); } if (retentionPeriod_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public Builder clearRetentionPeriod() { bitField0_ = (bitField0_ & ~0x00000008); retentionPeriod_ = null; if (retentionPeriodBuilder_ != null) { retentionPeriodBuilder_.dispose(); retentionPeriodBuilder_ = null; } onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRetentionPeriodFieldBuilder().getBuilder(); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPeriodBuilder_ != null) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_; } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored.
       * 
* * .google.protobuf.Duration retention_period = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { retentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getRetentionPeriod(), getParentForChildren(), isClean()); retentionPeriod_ = null; } return retentionPeriodBuilder_; } private long retentionStorageMb_ ; /** *
       * How much data in partition should be stored.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5; * @return The retentionStorageMb. */ @java.lang.Override public long getRetentionStorageMb() { return retentionStorageMb_; } /** *
       * How much data in partition should be stored.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5; * @param value The retentionStorageMb to set. * @return This builder for chaining. */ public Builder setRetentionStorageMb(long value) { retentionStorageMb_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * How much data in partition should be stored.
       * Zero value means infinite limit.
       * 
* * int64 retention_storage_mb = 5; * @return This builder for chaining. */ public Builder clearRetentionStorageMb() { bitField0_ = (bitField0_ & ~0x00000010); retentionStorageMb_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs supportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> supportedCodecsBuilder_; /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return Whether the supportedCodecs field is set. */ public boolean hasSupportedCodecs() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; * @return The supportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSupportedCodecs() { if (supportedCodecsBuilder_ == null) { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } else { return supportedCodecsBuilder_.getMessage(); } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder setSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supportedCodecs_ = value; } else { supportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder setSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (supportedCodecsBuilder_ == null) { supportedCodecs_ = builderForValue.build(); } else { supportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder mergeSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (supportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && supportedCodecs_ != null && supportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSupportedCodecsBuilder().mergeFrom(value); } else { supportedCodecs_ = value; } } else { supportedCodecsBuilder_.mergeFrom(value); } if (supportedCodecs_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public Builder clearSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000020); supportedCodecs_ = null; if (supportedCodecsBuilder_ != null) { supportedCodecsBuilder_.dispose(); supportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSupportedCodecsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSupportedCodecsFieldBuilder().getBuilder(); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSupportedCodecsOrBuilder() { if (supportedCodecsBuilder_ != null) { return supportedCodecsBuilder_.getMessageOrBuilder(); } else { return supportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : supportedCodecs_; } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs supported_codecs = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSupportedCodecsFieldBuilder() { if (supportedCodecsBuilder_ == null) { supportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSupportedCodecs(), getParentForChildren(), isClean()); supportedCodecs_ = null; } return supportedCodecsBuilder_; } private long partitionWriteSpeedBytesPerSecond_ ; /** *
       * Partition write speed in bytes per second.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8; * @return The partitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionWriteSpeedBytesPerSecond() { return partitionWriteSpeedBytesPerSecond_; } /** *
       * Partition write speed in bytes per second.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8; * @param value The partitionWriteSpeedBytesPerSecond to set. * @return This builder for chaining. */ public Builder setPartitionWriteSpeedBytesPerSecond(long value) { partitionWriteSpeedBytesPerSecond_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Partition write speed in bytes per second.
       * Zero value means default limit: 1 MB per second.
       * 
* * int64 partition_write_speed_bytes_per_second = 8; * @return This builder for chaining. */ public Builder clearPartitionWriteSpeedBytesPerSecond() { bitField0_ = (bitField0_ & ~0x00000040); partitionWriteSpeedBytesPerSecond_ = 0L; onChanged(); return this; } private long partitionTotalReadSpeedBytesPerSecond_ ; /** * int64 partition_total_read_speed_bytes_per_second = 14; * @return The partitionTotalReadSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionTotalReadSpeedBytesPerSecond() { return partitionTotalReadSpeedBytesPerSecond_; } /** * int64 partition_total_read_speed_bytes_per_second = 14; * @param value The partitionTotalReadSpeedBytesPerSecond to set. * @return This builder for chaining. */ public Builder setPartitionTotalReadSpeedBytesPerSecond(long value) { partitionTotalReadSpeedBytesPerSecond_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * int64 partition_total_read_speed_bytes_per_second = 14; * @return This builder for chaining. */ public Builder clearPartitionTotalReadSpeedBytesPerSecond() { bitField0_ = (bitField0_ & ~0x00000080); partitionTotalReadSpeedBytesPerSecond_ = 0L; onChanged(); return this; } private long partitionConsumerReadSpeedBytesPerSecond_ ; /** * int64 partition_consumer_read_speed_bytes_per_second = 15; * @return The partitionConsumerReadSpeedBytesPerSecond. */ @java.lang.Override public long getPartitionConsumerReadSpeedBytesPerSecond() { return partitionConsumerReadSpeedBytesPerSecond_; } /** * int64 partition_consumer_read_speed_bytes_per_second = 15; * @param value The partitionConsumerReadSpeedBytesPerSecond to set. * @return This builder for chaining. */ public Builder setPartitionConsumerReadSpeedBytesPerSecond(long value) { partitionConsumerReadSpeedBytesPerSecond_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * int64 partition_consumer_read_speed_bytes_per_second = 15; * @return This builder for chaining. */ public Builder clearPartitionConsumerReadSpeedBytesPerSecond() { bitField0_ = (bitField0_ & ~0x00000100); partitionConsumerReadSpeedBytesPerSecond_ = 0L; onChanged(); return this; } private long partitionWriteBurstBytes_ ; /** *
       * Burst size for write in partition, in bytes.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9; * @return The partitionWriteBurstBytes. */ @java.lang.Override public long getPartitionWriteBurstBytes() { return partitionWriteBurstBytes_; } /** *
       * Burst size for write in partition, in bytes.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9; * @param value The partitionWriteBurstBytes to set. * @return This builder for chaining. */ public Builder setPartitionWriteBurstBytes(long value) { partitionWriteBurstBytes_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
       * Burst size for write in partition, in bytes.
       * Zero value means default limit: 1 MB.
       * 
* * int64 partition_write_burst_bytes = 9; * @return This builder for chaining. */ public Builder clearPartitionWriteBurstBytes() { bitField0_ = (bitField0_ & ~0x00000200); partitionWriteBurstBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } bitField0_ |= 0x00000400; onChanged(); return attributes_; } public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public boolean containsAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } /** * Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ @java.lang.Override public java.lang.String getAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableAttributes().getMutableMap() .clear(); return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder removeAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000400; return internalGetMutableAttributes().getMutableMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder putAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000400; return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * 
* * map<string, string> attributes = 10; */ public Builder putAllAttributes( java.util.Map values) { internalGetMutableAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000400; return this; } private java.util.List consumers_ = java.util.Collections.emptyList(); private void ensureConsumersIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { consumers_ = new java.util.ArrayList(consumers_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> consumersBuilder_; /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public java.util.List getConsumersList() { if (consumersBuilder_ == null) { return java.util.Collections.unmodifiableList(consumers_); } else { return consumersBuilder_.getMessageList(); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public int getConsumersCount() { if (consumersBuilder_ == null) { return consumers_.size(); } else { return consumersBuilder_.getCount(); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public tech.ydb.proto.topic.YdbTopic.Consumer getConsumers(int index) { if (consumersBuilder_ == null) { return consumers_.get(index); } else { return consumersBuilder_.getMessage(index); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder setConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.set(index, value); onChanged(); } else { consumersBuilder_.setMessage(index, value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder setConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.set(index, builderForValue.build()); onChanged(); } else { consumersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder addConsumers(tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.add(value); onChanged(); } else { consumersBuilder_.addMessage(value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder addConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsumersIsMutable(); consumers_.add(index, value); onChanged(); } else { consumersBuilder_.addMessage(index, value); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder addConsumers( tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(builderForValue.build()); onChanged(); } else { consumersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder addConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.add(index, builderForValue.build()); onChanged(); } else { consumersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder addAllConsumers( java.lang.Iterable values) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, consumers_); onChanged(); } else { consumersBuilder_.addAllMessages(values); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder clearConsumers() { if (consumersBuilder_ == null) { consumers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { consumersBuilder_.clear(); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public Builder removeConsumers(int index) { if (consumersBuilder_ == null) { ensureConsumersIsMutable(); consumers_.remove(index); onChanged(); } else { consumersBuilder_.remove(index); } return this; } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder getConsumersBuilder( int index) { return getConsumersFieldBuilder().getBuilder(index); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumersOrBuilder( int index) { if (consumersBuilder_ == null) { return consumers_.get(index); } else { return consumersBuilder_.getMessageOrBuilder(index); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public java.util.List getConsumersOrBuilderList() { if (consumersBuilder_ != null) { return consumersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(consumers_); } } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addConsumersBuilder() { return getConsumersFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addConsumersBuilder( int index) { return getConsumersFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * List of consumers for this topic.
       * 
* * repeated .Ydb.Topic.Consumer consumers = 11; */ public java.util.List getConsumersBuilderList() { return getConsumersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> getConsumersFieldBuilder() { if (consumersBuilder_ == null) { consumersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder>( consumers_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); consumers_ = null; } return consumersBuilder_; } private int meteringMode_ = 0; /** *
       * Metering settings.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The enum numeric value on the wire for meteringMode. */ @java.lang.Override public int getMeteringModeValue() { return meteringMode_; } /** *
       * Metering settings.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @param value The enum numeric value on the wire for meteringMode to set. * @return This builder for chaining. */ public Builder setMeteringModeValue(int value) { meteringMode_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Metering settings.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return The meteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(meteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } /** *
       * Metering settings.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @param value The meteringMode to set. * @return This builder for chaining. */ public Builder setMeteringMode(tech.ydb.proto.topic.YdbTopic.MeteringMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; meteringMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Metering settings.
       * 
* * .Ydb.Topic.MeteringMode metering_mode = 12; * @return This builder for chaining. */ public Builder clearMeteringMode() { bitField0_ = (bitField0_ & ~0x00001000); meteringMode_ = 0; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats topicStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder> topicStatsBuilder_; /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return Whether the topicStats field is set. */ public boolean hasTopicStats() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; * @return The topicStats. */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats getTopicStats() { if (topicStatsBuilder_ == null) { return topicStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance() : topicStats_; } else { return topicStatsBuilder_.getMessage(); } } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public Builder setTopicStats(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats value) { if (topicStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topicStats_ = value; } else { topicStatsBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public Builder setTopicStats( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder builderForValue) { if (topicStatsBuilder_ == null) { topicStats_ = builderForValue.build(); } else { topicStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public Builder mergeTopicStats(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats value) { if (topicStatsBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && topicStats_ != null && topicStats_ != tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance()) { getTopicStatsBuilder().mergeFrom(value); } else { topicStats_ = value; } } else { topicStatsBuilder_.mergeFrom(value); } if (topicStats_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public Builder clearTopicStats() { bitField0_ = (bitField0_ & ~0x00002000); topicStats_ = null; if (topicStatsBuilder_ != null) { topicStatsBuilder_.dispose(); topicStatsBuilder_ = null; } onChanged(); return this; } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder getTopicStatsBuilder() { bitField0_ |= 0x00002000; onChanged(); return getTopicStatsFieldBuilder().getBuilder(); } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder getTopicStatsOrBuilder() { if (topicStatsBuilder_ != null) { return topicStatsBuilder_.getMessageOrBuilder(); } else { return topicStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.getDefaultInstance() : topicStats_; } } /** *
       * Statistics of topic.
       * 
* * .Ydb.Topic.DescribeTopicResult.TopicStats topic_stats = 13; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder> getTopicStatsFieldBuilder() { if (topicStatsBuilder_ == null) { topicStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.TopicStatsOrBuilder>( getTopicStats(), getParentForChildren(), isClean()); topicStats_ = null; } return topicStatsBuilder_; } @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.Topic.DescribeTopicResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeTopicResult) private static final tech.ydb.proto.topic.YdbTopic.DescribeTopicResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeTopicResult(); } public static tech.ydb.proto.topic.YdbTopic.DescribeTopicResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeTopicResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribePartitionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribePartitionRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Partition identifier.
     * 
* * int64 partition_id = 3; * @return The partitionId. */ long getPartitionId(); /** *
     * Include partition statistics.
     * 
* * bool include_stats = 4; * @return The includeStats. */ boolean getIncludeStats(); /** *
     * Include partition location.
     * 
* * bool include_location = 5; * @return The includeLocation. */ boolean getIncludeLocation(); } /** *
   * Describe partition request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionRequest} */ public static final class DescribePartitionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribePartitionRequest) DescribePartitionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DescribePartitionRequest.newBuilder() to construct. private DescribePartitionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribePartitionRequest() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribePartitionRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; /** *
     * Partition identifier.
     * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int INCLUDE_STATS_FIELD_NUMBER = 4; private boolean includeStats_ = false; /** *
     * Include partition statistics.
     * 
* * bool include_stats = 4; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } public static final int INCLUDE_LOCATION_FIELD_NUMBER = 5; private boolean includeLocation_ = false; /** *
     * Include partition location.
     * 
* * bool include_location = 5; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); } if (includeStats_ != false) { output.writeBool(4, includeStats_); } if (includeLocation_ != false) { output.writeBool(5, includeLocation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionId_); } if (includeStats_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, includeStats_); } if (includeLocation_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, includeLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest other = (tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getIncludeStats() != other.getIncludeStats()) return false; if (getIncludeLocation() != other.getIncludeLocation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + INCLUDE_STATS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeStats()); hash = (37 * hash) + INCLUDE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeLocation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest 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(tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest 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; } /** *
     * Describe partition request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribePartitionRequest) tech.ydb.proto.topic.YdbTopic.DescribePartitionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; partitionId_ = 0L; includeStats_ = false; includeLocation_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest build() { tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest result = new tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.includeStats_ = includeStats_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.includeLocation_ = includeLocation_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.getIncludeStats() != false) { setIncludeStats(other.getIncludeStats()); } if (other.getIncludeLocation() != false) { setIncludeLocation(other.getIncludeLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { includeStats_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { includeLocation_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long partitionId_ ; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Partition identifier.
       * 
* * int64 partition_id = 3; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000004); partitionId_ = 0L; onChanged(); return this; } private boolean includeStats_ ; /** *
       * Include partition statistics.
       * 
* * bool include_stats = 4; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } /** *
       * Include partition statistics.
       * 
* * bool include_stats = 4; * @param value The includeStats to set. * @return This builder for chaining. */ public Builder setIncludeStats(boolean value) { includeStats_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Include partition statistics.
       * 
* * bool include_stats = 4; * @return This builder for chaining. */ public Builder clearIncludeStats() { bitField0_ = (bitField0_ & ~0x00000008); includeStats_ = false; onChanged(); return this; } private boolean includeLocation_ ; /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @param value The includeLocation to set. * @return This builder for chaining. */ public Builder setIncludeLocation(boolean value) { includeLocation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @return This builder for chaining. */ public Builder clearIncludeLocation() { bitField0_ = (bitField0_ & ~0x00000010); includeLocation_ = 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.Topic.DescribePartitionRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribePartitionRequest) private static final tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest(); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribePartitionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribePartitionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribePartitionResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Describe partition response sent from server to client.
   * If topic is not existed then response status will be "SCHEME_ERROR".
   * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionResponse} */ public static final class DescribePartitionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribePartitionResponse) DescribePartitionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DescribePartitionResponse.newBuilder() to construct. private DescribePartitionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribePartitionResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribePartitionResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse other = (tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse 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(tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse 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; } /** *
     * Describe partition response sent from server to client.
     * If topic is not existed then response status will be "SCHEME_ERROR".
     * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribePartitionResponse) tech.ydb.proto.topic.YdbTopic.DescribePartitionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse build() { tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse result = new tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.DescribePartitionResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribePartitionResponse) private static final tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse(); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribePartitionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribePartitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribePartitionResult) com.google.protobuf.MessageOrBuilder { /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return Whether the partition field is set. */ boolean hasPartition(); /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return The partition. */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartition(); /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionOrBuilder(); } /** *
   * Describe partition result message that will be inside DescribeTopicResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionResult} */ public static final class DescribePartitionResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribePartitionResult) DescribePartitionResultOrBuilder { private static final long serialVersionUID = 0L; // Use DescribePartitionResult.newBuilder() to construct. private DescribePartitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribePartitionResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribePartitionResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.Builder.class); } private int bitField0_; public static final int PARTITION_FIELD_NUMBER = 1; private tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo partition_; /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return Whether the partition field is set. */ @java.lang.Override public boolean hasPartition() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return The partition. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartition() { return partition_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance() : partition_; } /** *
     * Partitions description.
     * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionOrBuilder() { return partition_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance() : partition_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPartition()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPartition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribePartitionResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribePartitionResult other = (tech.ydb.proto.topic.YdbTopic.DescribePartitionResult) obj; if (hasPartition() != other.hasPartition()) return false; if (hasPartition()) { if (!getPartition() .equals(other.getPartition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPartition()) { hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult 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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult 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(tech.ydb.proto.topic.YdbTopic.DescribePartitionResult 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; } /** *
     * Describe partition result message that will be inside DescribeTopicResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.DescribePartitionResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribePartitionResult) tech.ydb.proto.topic.YdbTopic.DescribePartitionResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.class, tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partition_ = null; if (partitionBuilder_ != null) { partitionBuilder_.dispose(); partitionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribePartitionResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResult build() { tech.ydb.proto.topic.YdbTopic.DescribePartitionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResult buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribePartitionResult result = new tech.ydb.proto.topic.YdbTopic.DescribePartitionResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribePartitionResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.partition_ = partitionBuilder_ == null ? partition_ : partitionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribePartitionResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribePartitionResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribePartitionResult other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribePartitionResult.getDefaultInstance()) return this; if (other.hasPartition()) { mergePartition(other.getPartition()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPartitionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo partition_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder> partitionBuilder_; /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return Whether the partition field is set. */ public boolean hasPartition() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; * @return The partition. */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo getPartition() { if (partitionBuilder_ == null) { return partition_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance() : partition_; } else { return partitionBuilder_.getMessage(); } } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public Builder setPartition(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo value) { if (partitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partition_ = value; } else { partitionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public Builder setPartition( tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder builderForValue) { if (partitionBuilder_ == null) { partition_ = builderForValue.build(); } else { partitionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public Builder mergePartition(tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo value) { if (partitionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && partition_ != null && partition_ != tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance()) { getPartitionBuilder().mergeFrom(value); } else { partition_ = value; } } else { partitionBuilder_.mergeFrom(value); } if (partition_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public Builder clearPartition() { bitField0_ = (bitField0_ & ~0x00000001); partition_ = null; if (partitionBuilder_ != null) { partitionBuilder_.dispose(); partitionBuilder_ = null; } onChanged(); return this; } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder getPartitionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPartitionFieldBuilder().getBuilder(); } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ public tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder getPartitionOrBuilder() { if (partitionBuilder_ != null) { return partitionBuilder_.getMessageOrBuilder(); } else { return partition_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.getDefaultInstance() : partition_; } } /** *
       * Partitions description.
       * 
* * .Ydb.Topic.DescribeTopicResult.PartitionInfo partition = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder> getPartitionFieldBuilder() { if (partitionBuilder_ == null) { partitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeTopicResult.PartitionInfoOrBuilder>( getPartition(), getParentForChildren(), isClean()); partition_ = null; } return partitionBuilder_; } @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.Topic.DescribePartitionResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribePartitionResult) private static final tech.ydb.proto.topic.YdbTopic.DescribePartitionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribePartitionResult(); } public static tech.ydb.proto.topic.YdbTopic.DescribePartitionResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribePartitionResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribePartitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeConsumerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeConsumerRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * Consumer name;
     * 
* * string consumer = 3; * @return The consumer. */ java.lang.String getConsumer(); /** *
     * Consumer name;
     * 
* * string consumer = 3; * @return The bytes for consumer. */ com.google.protobuf.ByteString getConsumerBytes(); /** *
     * Include consumer statistics.
     * 
* * bool include_stats = 4; * @return The includeStats. */ boolean getIncludeStats(); /** *
     * Include partition location.
     * 
* * bool include_location = 5; * @return The includeLocation. */ boolean getIncludeLocation(); } /** *
   * Describe topic's consumer request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerRequest} */ public static final class DescribeConsumerRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeConsumerRequest) DescribeConsumerRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeConsumerRequest.newBuilder() to construct. private DescribeConsumerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeConsumerRequest() { path_ = ""; consumer_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeConsumerRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONSUMER_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object consumer_ = ""; /** *
     * Consumer name;
     * 
* * string consumer = 3; * @return The consumer. */ @java.lang.Override public java.lang.String getConsumer() { java.lang.Object ref = consumer_; 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(); consumer_ = s; return s; } } /** *
     * Consumer name;
     * 
* * string consumer = 3; * @return The bytes for consumer. */ @java.lang.Override public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INCLUDE_STATS_FIELD_NUMBER = 4; private boolean includeStats_ = false; /** *
     * Include consumer statistics.
     * 
* * bool include_stats = 4; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } public static final int INCLUDE_LOCATION_FIELD_NUMBER = 5; private boolean includeLocation_ = false; /** *
     * Include partition location.
     * 
* * bool include_location = 5; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumer_); } if (includeStats_ != false) { output.writeBool(4, includeStats_); } if (includeLocation_ != false) { output.writeBool(5, includeLocation_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumer_); } if (includeStats_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, includeStats_); } if (includeLocation_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, includeLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest other = (tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (!getConsumer() .equals(other.getConsumer())) return false; if (getIncludeStats() != other.getIncludeStats()) return false; if (getIncludeLocation() != other.getIncludeLocation()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); hash = (37 * hash) + INCLUDE_STATS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeStats()); hash = (37 * hash) + INCLUDE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeLocation()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest 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(tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest 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; } /** *
     * Describe topic's consumer request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeConsumerRequest) tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; consumer_ = ""; includeStats_ = false; includeLocation_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest build() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest result = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.consumer_ = consumer_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.includeStats_ = includeStats_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.includeLocation_ = includeLocation_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getConsumer().isEmpty()) { consumer_ = other.consumer_; bitField0_ |= 0x00000004; onChanged(); } if (other.getIncludeStats() != false) { setIncludeStats(other.getIncludeStats()); } if (other.getIncludeLocation() != false) { setIncludeLocation(other.getIncludeLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { consumer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { includeStats_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { includeLocation_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object consumer_ = ""; /** *
       * Consumer name;
       * 
* * string consumer = 3; * @return The consumer. */ public java.lang.String getConsumer() { java.lang.Object ref = consumer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Consumer name;
       * 
* * string consumer = 3; * @return The bytes for consumer. */ public com.google.protobuf.ByteString getConsumerBytes() { java.lang.Object ref = consumer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); consumer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Consumer name;
       * 
* * string consumer = 3; * @param value The consumer to set. * @return This builder for chaining. */ public Builder setConsumer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } consumer_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Consumer name;
       * 
* * string consumer = 3; * @return This builder for chaining. */ public Builder clearConsumer() { consumer_ = getDefaultInstance().getConsumer(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Consumer name;
       * 
* * string consumer = 3; * @param value The bytes for consumer to set. * @return This builder for chaining. */ public Builder setConsumerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); consumer_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private boolean includeStats_ ; /** *
       * Include consumer statistics.
       * 
* * bool include_stats = 4; * @return The includeStats. */ @java.lang.Override public boolean getIncludeStats() { return includeStats_; } /** *
       * Include consumer statistics.
       * 
* * bool include_stats = 4; * @param value The includeStats to set. * @return This builder for chaining. */ public Builder setIncludeStats(boolean value) { includeStats_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Include consumer statistics.
       * 
* * bool include_stats = 4; * @return This builder for chaining. */ public Builder clearIncludeStats() { bitField0_ = (bitField0_ & ~0x00000008); includeStats_ = false; onChanged(); return this; } private boolean includeLocation_ ; /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @return The includeLocation. */ @java.lang.Override public boolean getIncludeLocation() { return includeLocation_; } /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @param value The includeLocation to set. * @return This builder for chaining. */ public Builder setIncludeLocation(boolean value) { includeLocation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Include partition location.
       * 
* * bool include_location = 5; * @return This builder for chaining. */ public Builder clearIncludeLocation() { bitField0_ = (bitField0_ & ~0x00000010); includeLocation_ = 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.Topic.DescribeConsumerRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeConsumerRequest) private static final tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest(); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeConsumerRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeConsumerResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeConsumerResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Describe topic's consumer response sent from server to client.
   * If topic is not existed then response status will be "SCHEME_ERROR".
   * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerResponse} */ public static final class DescribeConsumerResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeConsumerResponse) DescribeConsumerResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeConsumerResponse.newBuilder() to construct. private DescribeConsumerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeConsumerResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeConsumerResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse other = (tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse 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(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse 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; } /** *
     * Describe topic's consumer response sent from server to client.
     * If topic is not existed then response status will be "SCHEME_ERROR".
     * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeConsumerResponse) tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse build() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse result = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.DescribeConsumerResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeConsumerResponse) private static final tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse(); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeConsumerResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeConsumerResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeConsumerResult) com.google.protobuf.MessageOrBuilder { /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ boolean hasSelf(); /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf(); /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; */ tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder(); /** * .Ydb.Topic.Consumer consumer = 2; * @return Whether the consumer field is set. */ boolean hasConsumer(); /** * .Ydb.Topic.Consumer consumer = 2; * @return The consumer. */ tech.ydb.proto.topic.YdbTopic.Consumer getConsumer(); /** * .Ydb.Topic.Consumer consumer = 2; */ tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumerOrBuilder(); /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ java.util.List getPartitionsList(); /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getPartitions(int index); /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ int getPartitionsCount(); /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ java.util.List getPartitionsOrBuilderList(); /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index); } /** *
   * Describe topic's consumer result message that will be inside DescribeConsumerResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerResult} */ public static final class DescribeConsumerResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeConsumerResult) DescribeConsumerResultOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeConsumerResult.newBuilder() to construct. private DescribeConsumerResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeConsumerResult() { partitions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeConsumerResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.Builder.class); } public interface PartitionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeConsumerResult.PartitionInfo) com.google.protobuf.MessageOrBuilder { /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return The partitionId. */ long getPartitionId(); /** *
       * Is partition open for write.
       * 
* * bool active = 2; * @return The active. */ boolean getActive(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ java.util.List getChildPartitionIdsList(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ int getChildPartitionIdsCount(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ long getChildPartitionIds(int index); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ java.util.List getParentPartitionIdsList(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ int getParentPartitionIdsCount(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ long getParentPartitionIds(int index); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ boolean hasPartitionStats(); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats(); /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder(); /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return Whether the partitionConsumerStats field is set. */ boolean hasPartitionConsumerStats(); /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return The partitionConsumerStats. */ tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getPartitionConsumerStats(); /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder getPartitionConsumerStatsOrBuilder(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return Whether the partitionLocation field is set. */ boolean hasPartitionLocation(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return The partitionLocation. */ tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation(); /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder(); } /** * Protobuf type {@code Ydb.Topic.DescribeConsumerResult.PartitionInfo} */ public static final class PartitionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeConsumerResult.PartitionInfo) PartitionInfoOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionInfo.newBuilder() to construct. private PartitionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionInfo() { childPartitionIds_ = emptyLongList(); parentPartitionIds_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder.class); } private int bitField0_; public static final int PARTITION_ID_FIELD_NUMBER = 1; private long partitionId_ = 0L; /** *
       * Partition identifier.
       * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } public static final int ACTIVE_FIELD_NUMBER = 2; private boolean active_ = false; /** *
       * Is partition open for write.
       * 
* * bool active = 2; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } public static final int CHILD_PARTITION_IDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList childPartitionIds_ = emptyLongList(); /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ @java.lang.Override public java.util.List getChildPartitionIdsList() { return childPartitionIds_; } /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ public int getChildPartitionIdsCount() { return childPartitionIds_.size(); } /** *
       * Ids of partitions which was formed when this partition was split or merged.
       * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ public long getChildPartitionIds(int index) { return childPartitionIds_.getLong(index); } private int childPartitionIdsMemoizedSerializedSize = -1; public static final int PARENT_PARTITION_IDS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList parentPartitionIds_ = emptyLongList(); /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ @java.lang.Override public java.util.List getParentPartitionIdsList() { return parentPartitionIds_; } /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ public int getParentPartitionIdsCount() { return parentPartitionIds_.size(); } /** *
       * Ids of partitions from which this partition was formed by split or merge.
       * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ public long getParentPartitionIds(int index) { return parentPartitionIds_.getLong(index); } private int parentPartitionIdsMemoizedSerializedSize = -1; public static final int PARTITION_STATS_FIELD_NUMBER = 5; private tech.ydb.proto.topic.YdbTopic.PartitionStats partitionStats_; /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ @java.lang.Override public boolean hasPartitionStats() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats() { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } /** *
       * Stats for partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder() { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } public static final int PARTITION_CONSUMER_STATS_FIELD_NUMBER = 6; private tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats partitionConsumerStats_; /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return Whether the partitionConsumerStats field is set. */ @java.lang.Override public boolean hasPartitionConsumerStats() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return The partitionConsumerStats. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getPartitionConsumerStats() { return partitionConsumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance() : partitionConsumerStats_; } /** *
       * Stats for consumer of this partition, filled only when include_stats in request is true.
       * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder getPartitionConsumerStatsOrBuilder() { return partitionConsumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance() : partitionConsumerStats_; } public static final int PARTITION_LOCATION_FIELD_NUMBER = 7; private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return Whether the partitionLocation field is set. */ @java.lang.Override public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return The partitionLocation. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } /** *
       * Partition location, filled only when include_location in request is true.
       * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } 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 { getSerializedSize(); if (partitionId_ != 0L) { output.writeInt64(1, partitionId_); } if (active_ != false) { output.writeBool(2, active_); } if (getChildPartitionIdsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(childPartitionIdsMemoizedSerializedSize); } for (int i = 0; i < childPartitionIds_.size(); i++) { output.writeInt64NoTag(childPartitionIds_.getLong(i)); } if (getParentPartitionIdsList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(parentPartitionIdsMemoizedSerializedSize); } for (int i = 0; i < parentPartitionIds_.size(); i++) { output.writeInt64NoTag(parentPartitionIds_.getLong(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getPartitionStats()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getPartitionConsumerStats()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getPartitionLocation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, partitionId_); } if (active_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, active_); } { int dataSize = 0; for (int i = 0; i < childPartitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(childPartitionIds_.getLong(i)); } size += dataSize; if (!getChildPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } childPartitionIdsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < parentPartitionIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(parentPartitionIds_.getLong(i)); } size += dataSize; if (!getParentPartitionIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } parentPartitionIdsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPartitionStats()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPartitionConsumerStats()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPartitionLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo other = (tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo) obj; if (getPartitionId() != other.getPartitionId()) return false; if (getActive() != other.getActive()) return false; if (!getChildPartitionIdsList() .equals(other.getChildPartitionIdsList())) return false; if (!getParentPartitionIdsList() .equals(other.getParentPartitionIdsList())) return false; if (hasPartitionStats() != other.hasPartitionStats()) return false; if (hasPartitionStats()) { if (!getPartitionStats() .equals(other.getPartitionStats())) return false; } if (hasPartitionConsumerStats() != other.hasPartitionConsumerStats()) return false; if (hasPartitionConsumerStats()) { if (!getPartitionConsumerStats() .equals(other.getPartitionConsumerStats())) return false; } if (hasPartitionLocation() != other.hasPartitionLocation()) return false; if (hasPartitionLocation()) { if (!getPartitionLocation() .equals(other.getPartitionLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getActive()); if (getChildPartitionIdsCount() > 0) { hash = (37 * hash) + CHILD_PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getChildPartitionIdsList().hashCode(); } if (getParentPartitionIdsCount() > 0) { hash = (37 * hash) + PARENT_PARTITION_IDS_FIELD_NUMBER; hash = (53 * hash) + getParentPartitionIdsList().hashCode(); } if (hasPartitionStats()) { hash = (37 * hash) + PARTITION_STATS_FIELD_NUMBER; hash = (53 * hash) + getPartitionStats().hashCode(); } if (hasPartitionConsumerStats()) { hash = (37 * hash) + PARTITION_CONSUMER_STATS_FIELD_NUMBER; hash = (53 * hash) + getPartitionConsumerStats().hashCode(); } if (hasPartitionLocation()) { hash = (37 * hash) + PARTITION_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getPartitionLocation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo 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(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo 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.Topic.DescribeConsumerResult.PartitionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeConsumerResult.PartitionInfo) tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionStatsFieldBuilder(); getPartitionConsumerStatsFieldBuilder(); getPartitionLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionId_ = 0L; active_ = false; childPartitionIds_ = emptyLongList(); parentPartitionIds_ = emptyLongList(); partitionStats_ = null; if (partitionStatsBuilder_ != null) { partitionStatsBuilder_.dispose(); partitionStatsBuilder_ = null; } partitionConsumerStats_ = null; if (partitionConsumerStatsBuilder_ != null) { partitionConsumerStatsBuilder_.dispose(); partitionConsumerStatsBuilder_ = null; } partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo build() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo result = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionId_ = partitionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.active_ = active_; } if (((from_bitField0_ & 0x00000004) != 0)) { childPartitionIds_.makeImmutable(); result.childPartitionIds_ = childPartitionIds_; } if (((from_bitField0_ & 0x00000008) != 0)) { parentPartitionIds_.makeImmutable(); result.parentPartitionIds_ = parentPartitionIds_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.partitionStats_ = partitionStatsBuilder_ == null ? partitionStats_ : partitionStatsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.partitionConsumerStats_ = partitionConsumerStatsBuilder_ == null ? partitionConsumerStats_ : partitionConsumerStatsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.partitionLocation_ = partitionLocationBuilder_ == null ? partitionLocation_ : partitionLocationBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.getDefaultInstance()) return this; if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (other.getActive() != false) { setActive(other.getActive()); } if (!other.childPartitionIds_.isEmpty()) { if (childPartitionIds_.isEmpty()) { childPartitionIds_ = other.childPartitionIds_; childPartitionIds_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureChildPartitionIdsIsMutable(); childPartitionIds_.addAll(other.childPartitionIds_); } onChanged(); } if (!other.parentPartitionIds_.isEmpty()) { if (parentPartitionIds_.isEmpty()) { parentPartitionIds_ = other.parentPartitionIds_; parentPartitionIds_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addAll(other.parentPartitionIds_); } onChanged(); } if (other.hasPartitionStats()) { mergePartitionStats(other.getPartitionStats()); } if (other.hasPartitionConsumerStats()) { mergePartitionConsumerStats(other.getPartitionConsumerStats()); } if (other.hasPartitionLocation()) { mergePartitionLocation(other.getPartitionLocation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { partitionId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { active_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { long v = input.readInt64(); ensureChildPartitionIdsIsMutable(); childPartitionIds_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureChildPartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { childPartitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 case 32: { long v = input.readInt64(); ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addLong(v); break; } // case 32 case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureParentPartitionIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { parentPartitionIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 34 case 42: { input.readMessage( getPartitionStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getPartitionConsumerStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getPartitionLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long partitionId_ ; /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return The partitionId. */ @java.lang.Override public long getPartitionId() { return partitionId_; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @param value The partitionId to set. * @return This builder for chaining. */ public Builder setPartitionId(long value) { partitionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Partition identifier.
         * 
* * int64 partition_id = 1; * @return This builder for chaining. */ public Builder clearPartitionId() { bitField0_ = (bitField0_ & ~0x00000001); partitionId_ = 0L; onChanged(); return this; } private boolean active_ ; /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @param value The active to set. * @return This builder for chaining. */ public Builder setActive(boolean value) { active_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Is partition open for write.
         * 
* * bool active = 2; * @return This builder for chaining. */ public Builder clearActive() { bitField0_ = (bitField0_ & ~0x00000002); active_ = false; onChanged(); return this; } private com.google.protobuf.Internal.LongList childPartitionIds_ = emptyLongList(); private void ensureChildPartitionIdsIsMutable() { if (!childPartitionIds_.isModifiable()) { childPartitionIds_ = makeMutableCopy(childPartitionIds_); } bitField0_ |= 0x00000004; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return A list containing the childPartitionIds. */ public java.util.List getChildPartitionIdsList() { childPartitionIds_.makeImmutable(); return childPartitionIds_; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return The count of childPartitionIds. */ public int getChildPartitionIdsCount() { return childPartitionIds_.size(); } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param index The index of the element to return. * @return The childPartitionIds at the given index. */ public long getChildPartitionIds(int index) { return childPartitionIds_.getLong(index); } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param index The index to set the value at. * @param value The childPartitionIds to set. * @return This builder for chaining. */ public Builder setChildPartitionIds( int index, long value) { ensureChildPartitionIdsIsMutable(); childPartitionIds_.setLong(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param value The childPartitionIds to add. * @return This builder for chaining. */ public Builder addChildPartitionIds(long value) { ensureChildPartitionIdsIsMutable(); childPartitionIds_.addLong(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @param values The childPartitionIds to add. * @return This builder for chaining. */ public Builder addAllChildPartitionIds( java.lang.Iterable values) { ensureChildPartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, childPartitionIds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Ids of partitions which was formed when this partition was split or merged.
         * 
* * repeated int64 child_partition_ids = 3; * @return This builder for chaining. */ public Builder clearChildPartitionIds() { childPartitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.LongList parentPartitionIds_ = emptyLongList(); private void ensureParentPartitionIdsIsMutable() { if (!parentPartitionIds_.isModifiable()) { parentPartitionIds_ = makeMutableCopy(parentPartitionIds_); } bitField0_ |= 0x00000008; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return A list containing the parentPartitionIds. */ public java.util.List getParentPartitionIdsList() { parentPartitionIds_.makeImmutable(); return parentPartitionIds_; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return The count of parentPartitionIds. */ public int getParentPartitionIdsCount() { return parentPartitionIds_.size(); } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param index The index of the element to return. * @return The parentPartitionIds at the given index. */ public long getParentPartitionIds(int index) { return parentPartitionIds_.getLong(index); } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param index The index to set the value at. * @param value The parentPartitionIds to set. * @return This builder for chaining. */ public Builder setParentPartitionIds( int index, long value) { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.setLong(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param value The parentPartitionIds to add. * @return This builder for chaining. */ public Builder addParentPartitionIds(long value) { ensureParentPartitionIdsIsMutable(); parentPartitionIds_.addLong(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @param values The parentPartitionIds to add. * @return This builder for chaining. */ public Builder addAllParentPartitionIds( java.lang.Iterable values) { ensureParentPartitionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parentPartitionIds_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Ids of partitions from which this partition was formed by split or merge.
         * 
* * repeated int64 parent_partition_ids = 4; * @return This builder for chaining. */ public Builder clearParentPartitionIds() { parentPartitionIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.PartitionStats partitionStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder> partitionStatsBuilder_; /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return Whether the partitionStats field is set. */ public boolean hasPartitionStats() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; * @return The partitionStats. */ public tech.ydb.proto.topic.YdbTopic.PartitionStats getPartitionStats() { if (partitionStatsBuilder_ == null) { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } else { return partitionStatsBuilder_.getMessage(); } } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder setPartitionStats(tech.ydb.proto.topic.YdbTopic.PartitionStats value) { if (partitionStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionStats_ = value; } else { partitionStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder setPartitionStats( tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder builderForValue) { if (partitionStatsBuilder_ == null) { partitionStats_ = builderForValue.build(); } else { partitionStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder mergePartitionStats(tech.ydb.proto.topic.YdbTopic.PartitionStats value) { if (partitionStatsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && partitionStats_ != null && partitionStats_ != tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance()) { getPartitionStatsBuilder().mergeFrom(value); } else { partitionStats_ = value; } } else { partitionStatsBuilder_.mergeFrom(value); } if (partitionStats_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public Builder clearPartitionStats() { bitField0_ = (bitField0_ & ~0x00000010); partitionStats_ = null; if (partitionStatsBuilder_ != null) { partitionStatsBuilder_.dispose(); partitionStatsBuilder_ = null; } onChanged(); return this; } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder getPartitionStatsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPartitionStatsFieldBuilder().getBuilder(); } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ public tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder getPartitionStatsOrBuilder() { if (partitionStatsBuilder_ != null) { return partitionStatsBuilder_.getMessageOrBuilder(); } else { return partitionStats_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance() : partitionStats_; } } /** *
         * Stats for partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.PartitionStats partition_stats = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder> getPartitionStatsFieldBuilder() { if (partitionStatsBuilder_ == null) { partitionStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionStats, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder, tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder>( getPartitionStats(), getParentForChildren(), isClean()); partitionStats_ = null; } return partitionStatsBuilder_; } private tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats partitionConsumerStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder> partitionConsumerStatsBuilder_; /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return Whether the partitionConsumerStats field is set. */ public boolean hasPartitionConsumerStats() { return ((bitField0_ & 0x00000020) != 0); } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; * @return The partitionConsumerStats. */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getPartitionConsumerStats() { if (partitionConsumerStatsBuilder_ == null) { return partitionConsumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance() : partitionConsumerStats_; } else { return partitionConsumerStatsBuilder_.getMessage(); } } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public Builder setPartitionConsumerStats(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats value) { if (partitionConsumerStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionConsumerStats_ = value; } else { partitionConsumerStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public Builder setPartitionConsumerStats( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder builderForValue) { if (partitionConsumerStatsBuilder_ == null) { partitionConsumerStats_ = builderForValue.build(); } else { partitionConsumerStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public Builder mergePartitionConsumerStats(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats value) { if (partitionConsumerStatsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && partitionConsumerStats_ != null && partitionConsumerStats_ != tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance()) { getPartitionConsumerStatsBuilder().mergeFrom(value); } else { partitionConsumerStats_ = value; } } else { partitionConsumerStatsBuilder_.mergeFrom(value); } if (partitionConsumerStats_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public Builder clearPartitionConsumerStats() { bitField0_ = (bitField0_ & ~0x00000020); partitionConsumerStats_ = null; if (partitionConsumerStatsBuilder_ != null) { partitionConsumerStatsBuilder_.dispose(); partitionConsumerStatsBuilder_ = null; } onChanged(); return this; } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder getPartitionConsumerStatsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPartitionConsumerStatsFieldBuilder().getBuilder(); } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder getPartitionConsumerStatsOrBuilder() { if (partitionConsumerStatsBuilder_ != null) { return partitionConsumerStatsBuilder_.getMessageOrBuilder(); } else { return partitionConsumerStats_ == null ? tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance() : partitionConsumerStats_; } } /** *
         * Stats for consumer of this partition, filled only when include_stats in request is true.
         * 
* * .Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats partition_consumer_stats = 6; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder> getPartitionConsumerStatsFieldBuilder() { if (partitionConsumerStatsBuilder_ == null) { partitionConsumerStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder>( getPartitionConsumerStats(), getParentForChildren(), isClean()); partitionConsumerStats_ = null; } return partitionConsumerStatsBuilder_; } private tech.ydb.proto.topic.YdbTopic.PartitionLocation partitionLocation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> partitionLocationBuilder_; /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return Whether the partitionLocation field is set. */ public boolean hasPartitionLocation() { return ((bitField0_ & 0x00000040) != 0); } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; * @return The partitionLocation. */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation getPartitionLocation() { if (partitionLocationBuilder_ == null) { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } else { return partitionLocationBuilder_.getMessage(); } } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public Builder setPartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionLocation_ = value; } else { partitionLocationBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public Builder setPartitionLocation( tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder builderForValue) { if (partitionLocationBuilder_ == null) { partitionLocation_ = builderForValue.build(); } else { partitionLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public Builder mergePartitionLocation(tech.ydb.proto.topic.YdbTopic.PartitionLocation value) { if (partitionLocationBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && partitionLocation_ != null && partitionLocation_ != tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance()) { getPartitionLocationBuilder().mergeFrom(value); } else { partitionLocation_ = value; } } else { partitionLocationBuilder_.mergeFrom(value); } if (partitionLocation_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public Builder clearPartitionLocation() { bitField0_ = (bitField0_ & ~0x00000040); partitionLocation_ = null; if (partitionLocationBuilder_ != null) { partitionLocationBuilder_.dispose(); partitionLocationBuilder_ = null; } onChanged(); return this; } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder getPartitionLocationBuilder() { bitField0_ |= 0x00000040; onChanged(); return getPartitionLocationFieldBuilder().getBuilder(); } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ public tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder getPartitionLocationOrBuilder() { if (partitionLocationBuilder_ != null) { return partitionLocationBuilder_.getMessageOrBuilder(); } else { return partitionLocation_ == null ? tech.ydb.proto.topic.YdbTopic.PartitionLocation.getDefaultInstance() : partitionLocation_; } } /** *
         * Partition location, filled only when include_location in request is true.
         * 
* * .Ydb.Topic.PartitionLocation partition_location = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder> getPartitionLocationFieldBuilder() { if (partitionLocationBuilder_ == null) { partitionLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.PartitionLocation, tech.ydb.proto.topic.YdbTopic.PartitionLocation.Builder, tech.ydb.proto.topic.YdbTopic.PartitionLocationOrBuilder>( getPartitionLocation(), getParentForChildren(), isClean()); partitionLocation_ = null; } return partitionLocationBuilder_; } @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.Topic.DescribeConsumerResult.PartitionInfo) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeConsumerResult.PartitionInfo) private static final tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo(); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionConsumerStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats) com.google.protobuf.MessageOrBuilder { /** *
       * Last read offset from this partition.
       * 
* * int64 last_read_offset = 1; * @return The lastReadOffset. */ long getLastReadOffset(); /** *
       * Committed offset for this partition.
       * 
* * int64 committed_offset = 2; * @return The committedOffset. */ long getCommittedOffset(); /** *
       * Reading this partition read session identifier.
       * 
* * string read_session_id = 3; * @return The readSessionId. */ java.lang.String getReadSessionId(); /** *
       * Reading this partition read session identifier.
       * 
* * string read_session_id = 3; * @return The bytes for readSessionId. */ com.google.protobuf.ByteString getReadSessionIdBytes(); /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return Whether the partitionReadSessionCreateTime field is set. */ boolean hasPartitionReadSessionCreateTime(); /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return The partitionReadSessionCreateTime. */ com.google.protobuf.Timestamp getPartitionReadSessionCreateTime(); /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ com.google.protobuf.TimestampOrBuilder getPartitionReadSessionCreateTimeOrBuilder(); /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return Whether the lastReadTime field is set. */ boolean hasLastReadTime(); /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return The lastReadTime. */ com.google.protobuf.Timestamp getLastReadTime(); /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; */ com.google.protobuf.TimestampOrBuilder getLastReadTimeOrBuilder(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return Whether the maxReadTimeLag field is set. */ boolean hasMaxReadTimeLag(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return The maxReadTimeLag. */ com.google.protobuf.Duration getMaxReadTimeLag(); /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return Whether the maxWriteTimeLag field is set. */ boolean hasMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return The maxWriteTimeLag. */ com.google.protobuf.Duration getMaxWriteTimeLag(); /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder(); /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return Whether the bytesRead field is set. */ boolean hasBytesRead(); /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return The bytesRead. */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead(); /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder(); /** *
       * Read session name, provided by client.
       * 
* * string reader_name = 11; * @return The readerName. */ java.lang.String getReaderName(); /** *
       * Read session name, provided by client.
       * 
* * string reader_name = 11; * @return The bytes for readerName. */ com.google.protobuf.ByteString getReaderNameBytes(); /** *
       * Host where read session connected.
       * 
* * int32 connection_node_id = 12; * @return The connectionNodeId. */ int getConnectionNodeId(); } /** * Protobuf type {@code Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats} */ public static final class PartitionConsumerStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats) PartitionConsumerStatsOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionConsumerStats.newBuilder() to construct. private PartitionConsumerStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionConsumerStats() { readSessionId_ = ""; readerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionConsumerStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder.class); } private int bitField0_; public static final int LAST_READ_OFFSET_FIELD_NUMBER = 1; private long lastReadOffset_ = 0L; /** *
       * Last read offset from this partition.
       * 
* * int64 last_read_offset = 1; * @return The lastReadOffset. */ @java.lang.Override public long getLastReadOffset() { return lastReadOffset_; } public static final int COMMITTED_OFFSET_FIELD_NUMBER = 2; private long committedOffset_ = 0L; /** *
       * Committed offset for this partition.
       * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } public static final int READ_SESSION_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object readSessionId_ = ""; /** *
       * Reading this partition read session identifier.
       * 
* * string read_session_id = 3; * @return The readSessionId. */ @java.lang.Override public java.lang.String getReadSessionId() { java.lang.Object ref = readSessionId_; 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(); readSessionId_ = s; return s; } } /** *
       * Reading this partition read session identifier.
       * 
* * string read_session_id = 3; * @return The bytes for readSessionId. */ @java.lang.Override public com.google.protobuf.ByteString getReadSessionIdBytes() { java.lang.Object ref = readSessionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readSessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_READ_SESSION_CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp partitionReadSessionCreateTime_; /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return Whether the partitionReadSessionCreateTime field is set. */ @java.lang.Override public boolean hasPartitionReadSessionCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return The partitionReadSessionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getPartitionReadSessionCreateTime() { return partitionReadSessionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : partitionReadSessionCreateTime_; } /** *
       * Timestamp of providing this partition to this session by server.
       * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getPartitionReadSessionCreateTimeOrBuilder() { return partitionReadSessionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : partitionReadSessionCreateTime_; } public static final int LAST_READ_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastReadTime_; /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return Whether the lastReadTime field is set. */ @java.lang.Override public boolean hasLastReadTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return The lastReadTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastReadTime() { return lastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReadTime_; } /** *
       * Timestamp of last read from this partition.
       * 
* * .google.protobuf.Timestamp last_read_time = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastReadTimeOrBuilder() { return lastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReadTime_; } public static final int MAX_READ_TIME_LAG_FIELD_NUMBER = 6; private com.google.protobuf.Duration maxReadTimeLag_; /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return Whether the maxReadTimeLag field is set. */ @java.lang.Override public boolean hasMaxReadTimeLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return The maxReadTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxReadTimeLag() { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } /** *
       * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder() { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } public static final int MAX_WRITE_TIME_LAG_FIELD_NUMBER = 7; private com.google.protobuf.Duration maxWriteTimeLag_; /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return Whether the maxWriteTimeLag field is set. */ @java.lang.Override public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return The maxWriteTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxWriteTimeLag() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } public static final int BYTES_READ_FIELD_NUMBER = 8; private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesRead_; /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return Whether the bytesRead field is set. */ @java.lang.Override public boolean hasBytesRead() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return The bytesRead. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead() { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } /** *
       * How much bytes were read during several windows statistics from this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder() { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } public static final int READER_NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object readerName_ = ""; /** *
       * Read session name, provided by client.
       * 
* * string reader_name = 11; * @return The readerName. */ @java.lang.Override public java.lang.String getReaderName() { java.lang.Object ref = readerName_; 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(); readerName_ = s; return s; } } /** *
       * Read session name, provided by client.
       * 
* * string reader_name = 11; * @return The bytes for readerName. */ @java.lang.Override public com.google.protobuf.ByteString getReaderNameBytes() { java.lang.Object ref = readerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONNECTION_NODE_ID_FIELD_NUMBER = 12; private int connectionNodeId_ = 0; /** *
       * Host where read session connected.
       * 
* * int32 connection_node_id = 12; * @return The connectionNodeId. */ @java.lang.Override public int getConnectionNodeId() { return connectionNodeId_; } 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 (lastReadOffset_ != 0L) { output.writeInt64(1, lastReadOffset_); } if (committedOffset_ != 0L) { output.writeInt64(2, committedOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readSessionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, readSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPartitionReadSessionCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getLastReadTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getMaxReadTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getBytesRead()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readerName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, readerName_); } if (connectionNodeId_ != 0) { output.writeInt32(12, connectionNodeId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (lastReadOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, lastReadOffset_); } if (committedOffset_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, committedOffset_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readSessionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, readSessionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPartitionReadSessionCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastReadTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMaxReadTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getBytesRead()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readerName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, readerName_); } if (connectionNodeId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, connectionNodeId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats other = (tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats) obj; if (getLastReadOffset() != other.getLastReadOffset()) return false; if (getCommittedOffset() != other.getCommittedOffset()) return false; if (!getReadSessionId() .equals(other.getReadSessionId())) return false; if (hasPartitionReadSessionCreateTime() != other.hasPartitionReadSessionCreateTime()) return false; if (hasPartitionReadSessionCreateTime()) { if (!getPartitionReadSessionCreateTime() .equals(other.getPartitionReadSessionCreateTime())) return false; } if (hasLastReadTime() != other.hasLastReadTime()) return false; if (hasLastReadTime()) { if (!getLastReadTime() .equals(other.getLastReadTime())) return false; } if (hasMaxReadTimeLag() != other.hasMaxReadTimeLag()) return false; if (hasMaxReadTimeLag()) { if (!getMaxReadTimeLag() .equals(other.getMaxReadTimeLag())) return false; } if (hasMaxWriteTimeLag() != other.hasMaxWriteTimeLag()) return false; if (hasMaxWriteTimeLag()) { if (!getMaxWriteTimeLag() .equals(other.getMaxWriteTimeLag())) return false; } if (hasBytesRead() != other.hasBytesRead()) return false; if (hasBytesRead()) { if (!getBytesRead() .equals(other.getBytesRead())) return false; } if (!getReaderName() .equals(other.getReaderName())) return false; if (getConnectionNodeId() != other.getConnectionNodeId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LAST_READ_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastReadOffset()); hash = (37 * hash) + COMMITTED_OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommittedOffset()); hash = (37 * hash) + READ_SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + getReadSessionId().hashCode(); if (hasPartitionReadSessionCreateTime()) { hash = (37 * hash) + PARTITION_READ_SESSION_CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getPartitionReadSessionCreateTime().hashCode(); } if (hasLastReadTime()) { hash = (37 * hash) + LAST_READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastReadTime().hashCode(); } if (hasMaxReadTimeLag()) { hash = (37 * hash) + MAX_READ_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxReadTimeLag().hashCode(); } if (hasMaxWriteTimeLag()) { hash = (37 * hash) + MAX_WRITE_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxWriteTimeLag().hashCode(); } if (hasBytesRead()) { hash = (37 * hash) + BYTES_READ_FIELD_NUMBER; hash = (53 * hash) + getBytesRead().hashCode(); } hash = (37 * hash) + READER_NAME_FIELD_NUMBER; hash = (53 * hash) + getReaderName().hashCode(); hash = (37 * hash) + CONNECTION_NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionNodeId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats 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(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats 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.Topic.DescribeConsumerResult.PartitionConsumerStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats) tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionReadSessionCreateTimeFieldBuilder(); getLastReadTimeFieldBuilder(); getMaxReadTimeLagFieldBuilder(); getMaxWriteTimeLagFieldBuilder(); getBytesReadFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; lastReadOffset_ = 0L; committedOffset_ = 0L; readSessionId_ = ""; partitionReadSessionCreateTime_ = null; if (partitionReadSessionCreateTimeBuilder_ != null) { partitionReadSessionCreateTimeBuilder_.dispose(); partitionReadSessionCreateTimeBuilder_ = null; } lastReadTime_ = null; if (lastReadTimeBuilder_ != null) { lastReadTimeBuilder_.dispose(); lastReadTimeBuilder_ = null; } maxReadTimeLag_ = null; if (maxReadTimeLagBuilder_ != null) { maxReadTimeLagBuilder_.dispose(); maxReadTimeLagBuilder_ = null; } maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } bytesRead_ = null; if (bytesReadBuilder_ != null) { bytesReadBuilder_.dispose(); bytesReadBuilder_ = null; } readerName_ = ""; connectionNodeId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats build() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats result = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.lastReadOffset_ = lastReadOffset_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.committedOffset_ = committedOffset_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.readSessionId_ = readSessionId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.partitionReadSessionCreateTime_ = partitionReadSessionCreateTimeBuilder_ == null ? partitionReadSessionCreateTime_ : partitionReadSessionCreateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.lastReadTime_ = lastReadTimeBuilder_ == null ? lastReadTime_ : lastReadTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.maxReadTimeLag_ = maxReadTimeLagBuilder_ == null ? maxReadTimeLag_ : maxReadTimeLagBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.maxWriteTimeLag_ = maxWriteTimeLagBuilder_ == null ? maxWriteTimeLag_ : maxWriteTimeLagBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.bytesRead_ = bytesReadBuilder_ == null ? bytesRead_ : bytesReadBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.readerName_ = readerName_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.connectionNodeId_ = connectionNodeId_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats.getDefaultInstance()) return this; if (other.getLastReadOffset() != 0L) { setLastReadOffset(other.getLastReadOffset()); } if (other.getCommittedOffset() != 0L) { setCommittedOffset(other.getCommittedOffset()); } if (!other.getReadSessionId().isEmpty()) { readSessionId_ = other.readSessionId_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasPartitionReadSessionCreateTime()) { mergePartitionReadSessionCreateTime(other.getPartitionReadSessionCreateTime()); } if (other.hasLastReadTime()) { mergeLastReadTime(other.getLastReadTime()); } if (other.hasMaxReadTimeLag()) { mergeMaxReadTimeLag(other.getMaxReadTimeLag()); } if (other.hasMaxWriteTimeLag()) { mergeMaxWriteTimeLag(other.getMaxWriteTimeLag()); } if (other.hasBytesRead()) { mergeBytesRead(other.getBytesRead()); } if (!other.getReaderName().isEmpty()) { readerName_ = other.readerName_; bitField0_ |= 0x00000100; onChanged(); } if (other.getConnectionNodeId() != 0) { setConnectionNodeId(other.getConnectionNodeId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { lastReadOffset_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { committedOffset_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { readSessionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getPartitionReadSessionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getLastReadTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getMaxReadTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getMaxWriteTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getBytesReadFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 90: { readerName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 90 case 96: { connectionNodeId_ = input.readInt32(); bitField0_ |= 0x00000200; break; } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long lastReadOffset_ ; /** *
         * Last read offset from this partition.
         * 
* * int64 last_read_offset = 1; * @return The lastReadOffset. */ @java.lang.Override public long getLastReadOffset() { return lastReadOffset_; } /** *
         * Last read offset from this partition.
         * 
* * int64 last_read_offset = 1; * @param value The lastReadOffset to set. * @return This builder for chaining. */ public Builder setLastReadOffset(long value) { lastReadOffset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Last read offset from this partition.
         * 
* * int64 last_read_offset = 1; * @return This builder for chaining. */ public Builder clearLastReadOffset() { bitField0_ = (bitField0_ & ~0x00000001); lastReadOffset_ = 0L; onChanged(); return this; } private long committedOffset_ ; /** *
         * Committed offset for this partition.
         * 
* * int64 committed_offset = 2; * @return The committedOffset. */ @java.lang.Override public long getCommittedOffset() { return committedOffset_; } /** *
         * Committed offset for this partition.
         * 
* * int64 committed_offset = 2; * @param value The committedOffset to set. * @return This builder for chaining. */ public Builder setCommittedOffset(long value) { committedOffset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Committed offset for this partition.
         * 
* * int64 committed_offset = 2; * @return This builder for chaining. */ public Builder clearCommittedOffset() { bitField0_ = (bitField0_ & ~0x00000002); committedOffset_ = 0L; onChanged(); return this; } private java.lang.Object readSessionId_ = ""; /** *
         * Reading this partition read session identifier.
         * 
* * string read_session_id = 3; * @return The readSessionId. */ public java.lang.String getReadSessionId() { java.lang.Object ref = readSessionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readSessionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Reading this partition read session identifier.
         * 
* * string read_session_id = 3; * @return The bytes for readSessionId. */ public com.google.protobuf.ByteString getReadSessionIdBytes() { java.lang.Object ref = readSessionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readSessionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Reading this partition read session identifier.
         * 
* * string read_session_id = 3; * @param value The readSessionId to set. * @return This builder for chaining. */ public Builder setReadSessionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } readSessionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * Reading this partition read session identifier.
         * 
* * string read_session_id = 3; * @return This builder for chaining. */ public Builder clearReadSessionId() { readSessionId_ = getDefaultInstance().getReadSessionId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
         * Reading this partition read session identifier.
         * 
* * string read_session_id = 3; * @param value The bytes for readSessionId to set. * @return This builder for chaining. */ public Builder setReadSessionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readSessionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.Timestamp partitionReadSessionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> partitionReadSessionCreateTimeBuilder_; /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return Whether the partitionReadSessionCreateTime field is set. */ public boolean hasPartitionReadSessionCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; * @return The partitionReadSessionCreateTime. */ public com.google.protobuf.Timestamp getPartitionReadSessionCreateTime() { if (partitionReadSessionCreateTimeBuilder_ == null) { return partitionReadSessionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : partitionReadSessionCreateTime_; } else { return partitionReadSessionCreateTimeBuilder_.getMessage(); } } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public Builder setPartitionReadSessionCreateTime(com.google.protobuf.Timestamp value) { if (partitionReadSessionCreateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionReadSessionCreateTime_ = value; } else { partitionReadSessionCreateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public Builder setPartitionReadSessionCreateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (partitionReadSessionCreateTimeBuilder_ == null) { partitionReadSessionCreateTime_ = builderForValue.build(); } else { partitionReadSessionCreateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public Builder mergePartitionReadSessionCreateTime(com.google.protobuf.Timestamp value) { if (partitionReadSessionCreateTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && partitionReadSessionCreateTime_ != null && partitionReadSessionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getPartitionReadSessionCreateTimeBuilder().mergeFrom(value); } else { partitionReadSessionCreateTime_ = value; } } else { partitionReadSessionCreateTimeBuilder_.mergeFrom(value); } if (partitionReadSessionCreateTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public Builder clearPartitionReadSessionCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); partitionReadSessionCreateTime_ = null; if (partitionReadSessionCreateTimeBuilder_ != null) { partitionReadSessionCreateTimeBuilder_.dispose(); partitionReadSessionCreateTimeBuilder_ = null; } onChanged(); return this; } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public com.google.protobuf.Timestamp.Builder getPartitionReadSessionCreateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPartitionReadSessionCreateTimeFieldBuilder().getBuilder(); } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ public com.google.protobuf.TimestampOrBuilder getPartitionReadSessionCreateTimeOrBuilder() { if (partitionReadSessionCreateTimeBuilder_ != null) { return partitionReadSessionCreateTimeBuilder_.getMessageOrBuilder(); } else { return partitionReadSessionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : partitionReadSessionCreateTime_; } } /** *
         * Timestamp of providing this partition to this session by server.
         * 
* * .google.protobuf.Timestamp partition_read_session_create_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getPartitionReadSessionCreateTimeFieldBuilder() { if (partitionReadSessionCreateTimeBuilder_ == null) { partitionReadSessionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getPartitionReadSessionCreateTime(), getParentForChildren(), isClean()); partitionReadSessionCreateTime_ = null; } return partitionReadSessionCreateTimeBuilder_; } private com.google.protobuf.Timestamp lastReadTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastReadTimeBuilder_; /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return Whether the lastReadTime field is set. */ public boolean hasLastReadTime() { return ((bitField0_ & 0x00000010) != 0); } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; * @return The lastReadTime. */ public com.google.protobuf.Timestamp getLastReadTime() { if (lastReadTimeBuilder_ == null) { return lastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReadTime_; } else { return lastReadTimeBuilder_.getMessage(); } } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public Builder setLastReadTime(com.google.protobuf.Timestamp value) { if (lastReadTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastReadTime_ = value; } else { lastReadTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public Builder setLastReadTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastReadTimeBuilder_ == null) { lastReadTime_ = builderForValue.build(); } else { lastReadTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public Builder mergeLastReadTime(com.google.protobuf.Timestamp value) { if (lastReadTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && lastReadTime_ != null && lastReadTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastReadTimeBuilder().mergeFrom(value); } else { lastReadTime_ = value; } } else { lastReadTimeBuilder_.mergeFrom(value); } if (lastReadTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public Builder clearLastReadTime() { bitField0_ = (bitField0_ & ~0x00000010); lastReadTime_ = null; if (lastReadTimeBuilder_ != null) { lastReadTimeBuilder_.dispose(); lastReadTimeBuilder_ = null; } onChanged(); return this; } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public com.google.protobuf.Timestamp.Builder getLastReadTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getLastReadTimeFieldBuilder().getBuilder(); } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ public com.google.protobuf.TimestampOrBuilder getLastReadTimeOrBuilder() { if (lastReadTimeBuilder_ != null) { return lastReadTimeBuilder_.getMessageOrBuilder(); } else { return lastReadTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReadTime_; } } /** *
         * Timestamp of last read from this partition.
         * 
* * .google.protobuf.Timestamp last_read_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastReadTimeFieldBuilder() { if (lastReadTimeBuilder_ == null) { lastReadTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastReadTime(), getParentForChildren(), isClean()); lastReadTime_ = null; } return lastReadTimeBuilder_; } private com.google.protobuf.Duration maxReadTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxReadTimeLagBuilder_; /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return Whether the maxReadTimeLag field is set. */ public boolean hasMaxReadTimeLag() { return ((bitField0_ & 0x00000020) != 0); } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; * @return The maxReadTimeLag. */ public com.google.protobuf.Duration getMaxReadTimeLag() { if (maxReadTimeLagBuilder_ == null) { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } else { return maxReadTimeLagBuilder_.getMessage(); } } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public Builder setMaxReadTimeLag(com.google.protobuf.Duration value) { if (maxReadTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxReadTimeLag_ = value; } else { maxReadTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public Builder setMaxReadTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxReadTimeLagBuilder_ == null) { maxReadTimeLag_ = builderForValue.build(); } else { maxReadTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public Builder mergeMaxReadTimeLag(com.google.protobuf.Duration value) { if (maxReadTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && maxReadTimeLag_ != null && maxReadTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxReadTimeLagBuilder().mergeFrom(value); } else { maxReadTimeLag_ = value; } } else { maxReadTimeLagBuilder_.mergeFrom(value); } if (maxReadTimeLag_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public Builder clearMaxReadTimeLag() { bitField0_ = (bitField0_ & ~0x00000020); maxReadTimeLag_ = null; if (maxReadTimeLagBuilder_ != null) { maxReadTimeLagBuilder_.dispose(); maxReadTimeLagBuilder_ = null; } onChanged(); return this; } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public com.google.protobuf.Duration.Builder getMaxReadTimeLagBuilder() { bitField0_ |= 0x00000020; onChanged(); return getMaxReadTimeLagFieldBuilder().getBuilder(); } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ public com.google.protobuf.DurationOrBuilder getMaxReadTimeLagOrBuilder() { if (maxReadTimeLagBuilder_ != null) { return maxReadTimeLagBuilder_.getMessageOrBuilder(); } else { return maxReadTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxReadTimeLag_; } } /** *
         * Maximum of differences between timestamp of read and write timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_read_time_lag = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxReadTimeLagFieldBuilder() { if (maxReadTimeLagBuilder_ == null) { maxReadTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxReadTimeLag(), getParentForChildren(), isClean()); maxReadTimeLag_ = null; } return maxReadTimeLagBuilder_; } private com.google.protobuf.Duration maxWriteTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWriteTimeLagBuilder_; /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return Whether the maxWriteTimeLag field is set. */ public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000040) != 0); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; * @return The maxWriteTimeLag. */ public com.google.protobuf.Duration getMaxWriteTimeLag() { if (maxWriteTimeLagBuilder_ == null) { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } else { return maxWriteTimeLagBuilder_.getMessage(); } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public Builder setMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxWriteTimeLag_ = value; } else { maxWriteTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public Builder setMaxWriteTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLag_ = builderForValue.build(); } else { maxWriteTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public Builder mergeMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && maxWriteTimeLag_ != null && maxWriteTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxWriteTimeLagBuilder().mergeFrom(value); } else { maxWriteTimeLag_ = value; } } else { maxWriteTimeLagBuilder_.mergeFrom(value); } if (maxWriteTimeLag_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public Builder clearMaxWriteTimeLag() { bitField0_ = (bitField0_ & ~0x00000040); maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } onChanged(); return this; } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public com.google.protobuf.Duration.Builder getMaxWriteTimeLagBuilder() { bitField0_ |= 0x00000040; onChanged(); return getMaxWriteTimeLagFieldBuilder().getBuilder(); } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { if (maxWriteTimeLagBuilder_ != null) { return maxWriteTimeLagBuilder_.getMessageOrBuilder(); } else { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } } /** *
         * Maximum of differences between write timestamp and create timestamp for all messages, read during last minute.
         * 
* * .google.protobuf.Duration max_write_time_lag = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxWriteTimeLagFieldBuilder() { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxWriteTimeLag(), getParentForChildren(), isClean()); maxWriteTimeLag_ = null; } return maxWriteTimeLagBuilder_; } private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesRead_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> bytesReadBuilder_; /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return Whether the bytesRead field is set. */ public boolean hasBytesRead() { return ((bitField0_ & 0x00000080) != 0); } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; * @return The bytesRead. */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesRead() { if (bytesReadBuilder_ == null) { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } else { return bytesReadBuilder_.getMessage(); } } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public Builder setBytesRead(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesReadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bytesRead_ = value; } else { bytesReadBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public Builder setBytesRead( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder builderForValue) { if (bytesReadBuilder_ == null) { bytesRead_ = builderForValue.build(); } else { bytesReadBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public Builder mergeBytesRead(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesReadBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && bytesRead_ != null && bytesRead_ != tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance()) { getBytesReadBuilder().mergeFrom(value); } else { bytesRead_ = value; } } else { bytesReadBuilder_.mergeFrom(value); } if (bytesRead_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public Builder clearBytesRead() { bitField0_ = (bitField0_ & ~0x00000080); bytesRead_ = null; if (bytesReadBuilder_ != null) { bytesReadBuilder_.dispose(); bytesReadBuilder_ = null; } onChanged(); return this; } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder getBytesReadBuilder() { bitField0_ |= 0x00000080; onChanged(); return getBytesReadFieldBuilder().getBuilder(); } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesReadOrBuilder() { if (bytesReadBuilder_ != null) { return bytesReadBuilder_.getMessageOrBuilder(); } else { return bytesRead_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesRead_; } } /** *
         * How much bytes were read during several windows statistics from this partition.
         * 
* * .Ydb.Topic.MultipleWindowsStat bytes_read = 8; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> getBytesReadFieldBuilder() { if (bytesReadBuilder_ == null) { bytesReadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder>( getBytesRead(), getParentForChildren(), isClean()); bytesRead_ = null; } return bytesReadBuilder_; } private java.lang.Object readerName_ = ""; /** *
         * Read session name, provided by client.
         * 
* * string reader_name = 11; * @return The readerName. */ public java.lang.String getReaderName() { java.lang.Object ref = readerName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readerName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Read session name, provided by client.
         * 
* * string reader_name = 11; * @return The bytes for readerName. */ public com.google.protobuf.ByteString getReaderNameBytes() { java.lang.Object ref = readerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); readerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Read session name, provided by client.
         * 
* * string reader_name = 11; * @param value The readerName to set. * @return This builder for chaining. */ public Builder setReaderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } readerName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
         * Read session name, provided by client.
         * 
* * string reader_name = 11; * @return This builder for chaining. */ public Builder clearReaderName() { readerName_ = getDefaultInstance().getReaderName(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
         * Read session name, provided by client.
         * 
* * string reader_name = 11; * @param value The bytes for readerName to set. * @return This builder for chaining. */ public Builder setReaderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readerName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private int connectionNodeId_ ; /** *
         * Host where read session connected.
         * 
* * int32 connection_node_id = 12; * @return The connectionNodeId. */ @java.lang.Override public int getConnectionNodeId() { return connectionNodeId_; } /** *
         * Host where read session connected.
         * 
* * int32 connection_node_id = 12; * @param value The connectionNodeId to set. * @return This builder for chaining. */ public Builder setConnectionNodeId(int value) { connectionNodeId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
         * Host where read session connected.
         * 
* * int32 connection_node_id = 12; * @return This builder for chaining. */ public Builder clearConnectionNodeId() { bitField0_ = (bitField0_ & ~0x00000200); connectionNodeId_ = 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.Topic.DescribeConsumerResult.PartitionConsumerStats) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeConsumerResult.PartitionConsumerStats) private static final tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats(); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionConsumerStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionConsumerStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SELF_FIELD_NUMBER = 1; private tech.ydb.proto.scheme.SchemeOperationProtos.Entry self_; /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ @java.lang.Override public boolean hasSelf() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ @java.lang.Override public tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf() { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } /** *
     * Description of scheme object.
     * 
* * .Ydb.Scheme.Entry self = 1; */ @java.lang.Override public tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } public static final int CONSUMER_FIELD_NUMBER = 2; private tech.ydb.proto.topic.YdbTopic.Consumer consumer_; /** * .Ydb.Topic.Consumer consumer = 2; * @return Whether the consumer field is set. */ @java.lang.Override public boolean hasConsumer() { return ((bitField0_ & 0x00000002) != 0); } /** * .Ydb.Topic.Consumer consumer = 2; * @return The consumer. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getConsumer() { return consumer_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance() : consumer_; } /** * .Ydb.Topic.Consumer consumer = 2; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumerOrBuilder() { return consumer_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance() : consumer_; } public static final int PARTITIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List partitions_; /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ @java.lang.Override public java.util.List getPartitionsList() { return partitions_; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ @java.lang.Override public java.util.List getPartitionsOrBuilderList() { return partitions_; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ @java.lang.Override public int getPartitionsCount() { return partitions_.size(); } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getPartitions(int index) { return partitions_.get(index); } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index) { return partitions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSelf()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getConsumer()); } for (int i = 0; i < partitions_.size(); i++) { output.writeMessage(3, partitions_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSelf()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getConsumer()); } for (int i = 0; i < partitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, partitions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult other = (tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult) obj; if (hasSelf() != other.hasSelf()) return false; if (hasSelf()) { if (!getSelf() .equals(other.getSelf())) return false; } if (hasConsumer() != other.hasConsumer()) return false; if (hasConsumer()) { if (!getConsumer() .equals(other.getConsumer())) return false; } if (!getPartitionsList() .equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSelf()) { hash = (37 * hash) + SELF_FIELD_NUMBER; hash = (53 * hash) + getSelf().hashCode(); } if (hasConsumer()) { hash = (37 * hash) + CONSUMER_FIELD_NUMBER; hash = (53 * hash) + getConsumer().hashCode(); } if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult 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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult 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(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult 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; } /** *
     * Describe topic's consumer result message that will be inside DescribeConsumerResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.DescribeConsumerResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DescribeConsumerResult) tech.ydb.proto.topic.YdbTopic.DescribeConsumerResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.class, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSelfFieldBuilder(); getConsumerFieldBuilder(); getPartitionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; self_ = null; if (selfBuilder_ != null) { selfBuilder_.dispose(); selfBuilder_ = null; } consumer_ = null; if (consumerBuilder_ != null) { consumerBuilder_.dispose(); consumerBuilder_ = null; } if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); } else { partitions_ = null; partitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DescribeConsumerResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult build() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult buildPartial() { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult result = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult result) { if (partitionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { partitions_ = java.util.Collections.unmodifiableList(partitions_); bitField0_ = (bitField0_ & ~0x00000004); } result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.self_ = selfBuilder_ == null ? self_ : selfBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.consumer_ = consumerBuilder_ == null ? consumer_ : consumerBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult other) { if (other == tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.getDefaultInstance()) return this; if (other.hasSelf()) { mergeSelf(other.getSelf()); } if (other.hasConsumer()) { mergeConsumer(other.getConsumer()); } if (partitionsBuilder_ == null) { if (!other.partitions_.isEmpty()) { if (partitions_.isEmpty()) { partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); } onChanged(); } } else { if (!other.partitions_.isEmpty()) { if (partitionsBuilder_.isEmpty()) { partitionsBuilder_.dispose(); partitionsBuilder_ = null; partitions_ = other.partitions_; bitField0_ = (bitField0_ & ~0x00000004); partitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSelfFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getConsumerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo m = input.readMessage( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.parser(), extensionRegistry); if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(m); } else { partitionsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.scheme.SchemeOperationProtos.Entry self_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder> selfBuilder_; /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; * @return Whether the self field is set. */ public boolean hasSelf() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; * @return The self. */ public tech.ydb.proto.scheme.SchemeOperationProtos.Entry getSelf() { if (selfBuilder_ == null) { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } else { return selfBuilder_.getMessage(); } } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder setSelf(tech.ydb.proto.scheme.SchemeOperationProtos.Entry value) { if (selfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } self_ = value; } else { selfBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder setSelf( tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder builderForValue) { if (selfBuilder_ == null) { self_ = builderForValue.build(); } else { selfBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder mergeSelf(tech.ydb.proto.scheme.SchemeOperationProtos.Entry value) { if (selfBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && self_ != null && self_ != tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance()) { getSelfBuilder().mergeFrom(value); } else { self_ = value; } } else { selfBuilder_.mergeFrom(value); } if (self_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public Builder clearSelf() { bitField0_ = (bitField0_ & ~0x00000001); self_ = null; if (selfBuilder_ != null) { selfBuilder_.dispose(); selfBuilder_ = null; } onChanged(); return this; } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder getSelfBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSelfFieldBuilder().getBuilder(); } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ public tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder getSelfOrBuilder() { if (selfBuilder_ != null) { return selfBuilder_.getMessageOrBuilder(); } else { return self_ == null ? tech.ydb.proto.scheme.SchemeOperationProtos.Entry.getDefaultInstance() : self_; } } /** *
       * Description of scheme object.
       * 
* * .Ydb.Scheme.Entry self = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder> getSelfFieldBuilder() { if (selfBuilder_ == null) { selfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scheme.SchemeOperationProtos.Entry, tech.ydb.proto.scheme.SchemeOperationProtos.Entry.Builder, tech.ydb.proto.scheme.SchemeOperationProtos.EntryOrBuilder>( getSelf(), getParentForChildren(), isClean()); self_ = null; } return selfBuilder_; } private tech.ydb.proto.topic.YdbTopic.Consumer consumer_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> consumerBuilder_; /** * .Ydb.Topic.Consumer consumer = 2; * @return Whether the consumer field is set. */ public boolean hasConsumer() { return ((bitField0_ & 0x00000002) != 0); } /** * .Ydb.Topic.Consumer consumer = 2; * @return The consumer. */ public tech.ydb.proto.topic.YdbTopic.Consumer getConsumer() { if (consumerBuilder_ == null) { return consumer_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance() : consumer_; } else { return consumerBuilder_.getMessage(); } } /** * .Ydb.Topic.Consumer consumer = 2; */ public Builder setConsumer(tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consumer_ = value; } else { consumerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .Ydb.Topic.Consumer consumer = 2; */ public Builder setConsumer( tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (consumerBuilder_ == null) { consumer_ = builderForValue.build(); } else { consumerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .Ydb.Topic.Consumer consumer = 2; */ public Builder mergeConsumer(tech.ydb.proto.topic.YdbTopic.Consumer value) { if (consumerBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && consumer_ != null && consumer_ != tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()) { getConsumerBuilder().mergeFrom(value); } else { consumer_ = value; } } else { consumerBuilder_.mergeFrom(value); } if (consumer_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .Ydb.Topic.Consumer consumer = 2; */ public Builder clearConsumer() { bitField0_ = (bitField0_ & ~0x00000002); consumer_ = null; if (consumerBuilder_ != null) { consumerBuilder_.dispose(); consumerBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Topic.Consumer consumer = 2; */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder getConsumerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConsumerFieldBuilder().getBuilder(); } /** * .Ydb.Topic.Consumer consumer = 2; */ public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getConsumerOrBuilder() { if (consumerBuilder_ != null) { return consumerBuilder_.getMessageOrBuilder(); } else { return consumer_ == null ? tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance() : consumer_; } } /** * .Ydb.Topic.Consumer consumer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> getConsumerFieldBuilder() { if (consumerBuilder_ == null) { consumerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder>( getConsumer(), getParentForChildren(), isClean()); consumer_ = null; } return consumerBuilder_; } private java.util.List partitions_ = java.util.Collections.emptyList(); private void ensurePartitionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { partitions_ = new java.util.ArrayList(partitions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder> partitionsBuilder_; /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsList() { if (partitionsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitions_); } else { return partitionsBuilder_.getMessageList(); } } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public int getPartitionsCount() { if (partitionsBuilder_ == null) { return partitions_.size(); } else { return partitionsBuilder_.getCount(); } } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo getPartitions(int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessage(index); } } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder setPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder addPartitions(tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder addPartitions( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder addPartitions( int index, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder addAllPartitions( java.lang.Iterable values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { partitionsBuilder_.clear(); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder getPartitionsBuilder( int index) { return getPartitionsFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder getPartitionsOrBuilder( int index) { if (partitionsBuilder_ == null) { return partitions_.get(index); } else { return partitionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsOrBuilderList() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitions_); } } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder addPartitionsBuilder() { return getPartitionsFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.getDefaultInstance()); } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder addPartitionsBuilder( int index) { return getPartitionsFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.getDefaultInstance()); } /** * repeated .Ydb.Topic.DescribeConsumerResult.PartitionInfo partitions = 3; */ public java.util.List getPartitionsBuilderList() { return getPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfo.Builder, tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult.PartitionInfoOrBuilder>( partitions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } @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.Topic.DescribeConsumerResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DescribeConsumerResult) private static final tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult(); } public static tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeConsumerResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DescribeConsumerResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartitionStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.PartitionStats) com.google.protobuf.MessageOrBuilder { /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return Whether the partitionOffsets field is set. */ boolean hasPartitionOffsets(); /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return The partitionOffsets. */ tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets(); /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder(); /** *
     * Approximate size of partition.
     * 
* * int64 store_size_bytes = 2; * @return The storeSizeBytes. */ long getStoreSizeBytes(); /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return Whether the lastWriteTime field is set. */ boolean hasLastWriteTime(); /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return The lastWriteTime. */ com.google.protobuf.Timestamp getLastWriteTime(); /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; */ com.google.protobuf.TimestampOrBuilder getLastWriteTimeOrBuilder(); /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return Whether the maxWriteTimeLag field is set. */ boolean hasMaxWriteTimeLag(); /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return The maxWriteTimeLag. */ com.google.protobuf.Duration getMaxWriteTimeLag(); /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder(); /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return Whether the bytesWritten field is set. */ boolean hasBytesWritten(); /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return The bytesWritten. */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten(); /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder(); /** *
     * Partition host. Useful for debugging purposes.
     * 
* * int32 partition_node_id = 8 [deprecated = true]; * @deprecated Ydb.Topic.PartitionStats.partition_node_id is deprecated. * See protos/ydb_topic.proto;l=1121 * @return The partitionNodeId. */ @java.lang.Deprecated int getPartitionNodeId(); } /** * Protobuf type {@code Ydb.Topic.PartitionStats} */ public static final class PartitionStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.PartitionStats) PartitionStatsOrBuilder { private static final long serialVersionUID = 0L; // Use PartitionStats.newBuilder() to construct. private PartitionStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartitionStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartitionStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionStats.class, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder.class); } private int bitField0_; public static final int PARTITION_OFFSETS_FIELD_NUMBER = 1; private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return Whether the partitionOffsets field is set. */ @java.lang.Override public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return The partitionOffsets. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } /** *
     * Partition contains messages with offsets in range [start, end).
     * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } public static final int STORE_SIZE_BYTES_FIELD_NUMBER = 2; private long storeSizeBytes_ = 0L; /** *
     * Approximate size of partition.
     * 
* * int64 store_size_bytes = 2; * @return The storeSizeBytes. */ @java.lang.Override public long getStoreSizeBytes() { return storeSizeBytes_; } public static final int LAST_WRITE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastWriteTime_; /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return Whether the lastWriteTime field is set. */ @java.lang.Override public boolean hasLastWriteTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return The lastWriteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastWriteTime() { return lastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastWriteTime_; } /** *
     * Timestamp of last write.
     * 
* * .google.protobuf.Timestamp last_write_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastWriteTimeOrBuilder() { return lastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastWriteTime_; } public static final int MAX_WRITE_TIME_LAG_FIELD_NUMBER = 4; private com.google.protobuf.Duration maxWriteTimeLag_; /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return Whether the maxWriteTimeLag field is set. */ @java.lang.Override public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return The maxWriteTimeLag. */ @java.lang.Override public com.google.protobuf.Duration getMaxWriteTimeLag() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } /** *
     * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
     * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } public static final int BYTES_WRITTEN_FIELD_NUMBER = 5; private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesWritten_; /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return Whether the bytesWritten field is set. */ @java.lang.Override public boolean hasBytesWritten() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return The bytesWritten. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten() { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } /** *
     * How much bytes were written during several windows in this partition.
     * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder() { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } public static final int PARTITION_NODE_ID_FIELD_NUMBER = 8; private int partitionNodeId_ = 0; /** *
     * Partition host. Useful for debugging purposes.
     * 
* * int32 partition_node_id = 8 [deprecated = true]; * @deprecated Ydb.Topic.PartitionStats.partition_node_id is deprecated. * See protos/ydb_topic.proto;l=1121 * @return The partitionNodeId. */ @java.lang.Override @java.lang.Deprecated public int getPartitionNodeId() { return partitionNodeId_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPartitionOffsets()); } if (storeSizeBytes_ != 0L) { output.writeInt64(2, storeSizeBytes_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getLastWriteTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getBytesWritten()); } if (partitionNodeId_ != 0) { output.writeInt32(8, partitionNodeId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPartitionOffsets()); } if (storeSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, storeSizeBytes_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLastWriteTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaxWriteTimeLag()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getBytesWritten()); } if (partitionNodeId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, partitionNodeId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.PartitionStats)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.PartitionStats other = (tech.ydb.proto.topic.YdbTopic.PartitionStats) obj; if (hasPartitionOffsets() != other.hasPartitionOffsets()) return false; if (hasPartitionOffsets()) { if (!getPartitionOffsets() .equals(other.getPartitionOffsets())) return false; } if (getStoreSizeBytes() != other.getStoreSizeBytes()) return false; if (hasLastWriteTime() != other.hasLastWriteTime()) return false; if (hasLastWriteTime()) { if (!getLastWriteTime() .equals(other.getLastWriteTime())) return false; } if (hasMaxWriteTimeLag() != other.hasMaxWriteTimeLag()) return false; if (hasMaxWriteTimeLag()) { if (!getMaxWriteTimeLag() .equals(other.getMaxWriteTimeLag())) return false; } if (hasBytesWritten() != other.hasBytesWritten()) return false; if (hasBytesWritten()) { if (!getBytesWritten() .equals(other.getBytesWritten())) return false; } if (getPartitionNodeId() != other.getPartitionNodeId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPartitionOffsets()) { hash = (37 * hash) + PARTITION_OFFSETS_FIELD_NUMBER; hash = (53 * hash) + getPartitionOffsets().hashCode(); } hash = (37 * hash) + STORE_SIZE_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStoreSizeBytes()); if (hasLastWriteTime()) { hash = (37 * hash) + LAST_WRITE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastWriteTime().hashCode(); } if (hasMaxWriteTimeLag()) { hash = (37 * hash) + MAX_WRITE_TIME_LAG_FIELD_NUMBER; hash = (53 * hash) + getMaxWriteTimeLag().hashCode(); } if (hasBytesWritten()) { hash = (37 * hash) + BYTES_WRITTEN_FIELD_NUMBER; hash = (53 * hash) + getBytesWritten().hashCode(); } hash = (37 * hash) + PARTITION_NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getPartitionNodeId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats 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 tech.ydb.proto.topic.YdbTopic.PartitionStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats 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 tech.ydb.proto.topic.YdbTopic.PartitionStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats 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(tech.ydb.proto.topic.YdbTopic.PartitionStats 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.Topic.PartitionStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.PartitionStats) tech.ydb.proto.topic.YdbTopic.PartitionStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionStats_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.PartitionStats.class, tech.ydb.proto.topic.YdbTopic.PartitionStats.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.PartitionStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionOffsetsFieldBuilder(); getLastWriteTimeFieldBuilder(); getMaxWriteTimeLagFieldBuilder(); getBytesWrittenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } storeSizeBytes_ = 0L; lastWriteTime_ = null; if (lastWriteTimeBuilder_ != null) { lastWriteTimeBuilder_.dispose(); lastWriteTimeBuilder_ = null; } maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } bytesWritten_ = null; if (bytesWrittenBuilder_ != null) { bytesWrittenBuilder_.dispose(); bytesWrittenBuilder_ = null; } partitionNodeId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_PartitionStats_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats build() { tech.ydb.proto.topic.YdbTopic.PartitionStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats buildPartial() { tech.ydb.proto.topic.YdbTopic.PartitionStats result = new tech.ydb.proto.topic.YdbTopic.PartitionStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.PartitionStats result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.partitionOffsets_ = partitionOffsetsBuilder_ == null ? partitionOffsets_ : partitionOffsetsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.storeSizeBytes_ = storeSizeBytes_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lastWriteTime_ = lastWriteTimeBuilder_ == null ? lastWriteTime_ : lastWriteTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.maxWriteTimeLag_ = maxWriteTimeLagBuilder_ == null ? maxWriteTimeLag_ : maxWriteTimeLagBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.bytesWritten_ = bytesWrittenBuilder_ == null ? bytesWritten_ : bytesWrittenBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.partitionNodeId_ = partitionNodeId_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.PartitionStats) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.PartitionStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.PartitionStats other) { if (other == tech.ydb.proto.topic.YdbTopic.PartitionStats.getDefaultInstance()) return this; if (other.hasPartitionOffsets()) { mergePartitionOffsets(other.getPartitionOffsets()); } if (other.getStoreSizeBytes() != 0L) { setStoreSizeBytes(other.getStoreSizeBytes()); } if (other.hasLastWriteTime()) { mergeLastWriteTime(other.getLastWriteTime()); } if (other.hasMaxWriteTimeLag()) { mergeMaxWriteTimeLag(other.getMaxWriteTimeLag()); } if (other.hasBytesWritten()) { mergeBytesWritten(other.getBytesWritten()); } if (other.getPartitionNodeId() != 0) { setPartitionNodeId(other.getPartitionNodeId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPartitionOffsetsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { storeSizeBytes_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getLastWriteTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMaxWriteTimeLagFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getBytesWrittenFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 64: { partitionNodeId_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.topic.YdbTopic.OffsetsRange partitionOffsets_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> partitionOffsetsBuilder_; /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return Whether the partitionOffsets field is set. */ public boolean hasPartitionOffsets() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return The partitionOffsets. */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange getPartitionOffsets() { if (partitionOffsetsBuilder_ == null) { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } else { return partitionOffsetsBuilder_.getMessage(); } } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public Builder setPartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitionOffsets_ = value; } else { partitionOffsetsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public Builder setPartitionOffsets( tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder builderForValue) { if (partitionOffsetsBuilder_ == null) { partitionOffsets_ = builderForValue.build(); } else { partitionOffsetsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public Builder mergePartitionOffsets(tech.ydb.proto.topic.YdbTopic.OffsetsRange value) { if (partitionOffsetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && partitionOffsets_ != null && partitionOffsets_ != tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance()) { getPartitionOffsetsBuilder().mergeFrom(value); } else { partitionOffsets_ = value; } } else { partitionOffsetsBuilder_.mergeFrom(value); } if (partitionOffsets_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public Builder clearPartitionOffsets() { bitField0_ = (bitField0_ & ~0x00000001); partitionOffsets_ = null; if (partitionOffsetsBuilder_ != null) { partitionOffsetsBuilder_.dispose(); partitionOffsetsBuilder_ = null; } onChanged(); return this; } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder getPartitionOffsetsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPartitionOffsetsFieldBuilder().getBuilder(); } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ public tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder getPartitionOffsetsOrBuilder() { if (partitionOffsetsBuilder_ != null) { return partitionOffsetsBuilder_.getMessageOrBuilder(); } else { return partitionOffsets_ == null ? tech.ydb.proto.topic.YdbTopic.OffsetsRange.getDefaultInstance() : partitionOffsets_; } } /** *
       * Partition contains messages with offsets in range [start, end).
       * 
* * .Ydb.Topic.OffsetsRange partition_offsets = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder> getPartitionOffsetsFieldBuilder() { if (partitionOffsetsBuilder_ == null) { partitionOffsetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.OffsetsRange, tech.ydb.proto.topic.YdbTopic.OffsetsRange.Builder, tech.ydb.proto.topic.YdbTopic.OffsetsRangeOrBuilder>( getPartitionOffsets(), getParentForChildren(), isClean()); partitionOffsets_ = null; } return partitionOffsetsBuilder_; } private long storeSizeBytes_ ; /** *
       * Approximate size of partition.
       * 
* * int64 store_size_bytes = 2; * @return The storeSizeBytes. */ @java.lang.Override public long getStoreSizeBytes() { return storeSizeBytes_; } /** *
       * Approximate size of partition.
       * 
* * int64 store_size_bytes = 2; * @param value The storeSizeBytes to set. * @return This builder for chaining. */ public Builder setStoreSizeBytes(long value) { storeSizeBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Approximate size of partition.
       * 
* * int64 store_size_bytes = 2; * @return This builder for chaining. */ public Builder clearStoreSizeBytes() { bitField0_ = (bitField0_ & ~0x00000002); storeSizeBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp lastWriteTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastWriteTimeBuilder_; /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return Whether the lastWriteTime field is set. */ public boolean hasLastWriteTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; * @return The lastWriteTime. */ public com.google.protobuf.Timestamp getLastWriteTime() { if (lastWriteTimeBuilder_ == null) { return lastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastWriteTime_; } else { return lastWriteTimeBuilder_.getMessage(); } } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public Builder setLastWriteTime(com.google.protobuf.Timestamp value) { if (lastWriteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastWriteTime_ = value; } else { lastWriteTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public Builder setLastWriteTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastWriteTimeBuilder_ == null) { lastWriteTime_ = builderForValue.build(); } else { lastWriteTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public Builder mergeLastWriteTime(com.google.protobuf.Timestamp value) { if (lastWriteTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && lastWriteTime_ != null && lastWriteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastWriteTimeBuilder().mergeFrom(value); } else { lastWriteTime_ = value; } } else { lastWriteTimeBuilder_.mergeFrom(value); } if (lastWriteTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public Builder clearLastWriteTime() { bitField0_ = (bitField0_ & ~0x00000004); lastWriteTime_ = null; if (lastWriteTimeBuilder_ != null) { lastWriteTimeBuilder_.dispose(); lastWriteTimeBuilder_ = null; } onChanged(); return this; } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastWriteTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastWriteTimeFieldBuilder().getBuilder(); } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ public com.google.protobuf.TimestampOrBuilder getLastWriteTimeOrBuilder() { if (lastWriteTimeBuilder_ != null) { return lastWriteTimeBuilder_.getMessageOrBuilder(); } else { return lastWriteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastWriteTime_; } } /** *
       * Timestamp of last write.
       * 
* * .google.protobuf.Timestamp last_write_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastWriteTimeFieldBuilder() { if (lastWriteTimeBuilder_ == null) { lastWriteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastWriteTime(), getParentForChildren(), isClean()); lastWriteTime_ = null; } return lastWriteTimeBuilder_; } private com.google.protobuf.Duration maxWriteTimeLag_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxWriteTimeLagBuilder_; /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return Whether the maxWriteTimeLag field is set. */ public boolean hasMaxWriteTimeLag() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; * @return The maxWriteTimeLag. */ public com.google.protobuf.Duration getMaxWriteTimeLag() { if (maxWriteTimeLagBuilder_ == null) { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } else { return maxWriteTimeLagBuilder_.getMessage(); } } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public Builder setMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxWriteTimeLag_ = value; } else { maxWriteTimeLagBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public Builder setMaxWriteTimeLag( com.google.protobuf.Duration.Builder builderForValue) { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLag_ = builderForValue.build(); } else { maxWriteTimeLagBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public Builder mergeMaxWriteTimeLag(com.google.protobuf.Duration value) { if (maxWriteTimeLagBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && maxWriteTimeLag_ != null && maxWriteTimeLag_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxWriteTimeLagBuilder().mergeFrom(value); } else { maxWriteTimeLag_ = value; } } else { maxWriteTimeLagBuilder_.mergeFrom(value); } if (maxWriteTimeLag_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public Builder clearMaxWriteTimeLag() { bitField0_ = (bitField0_ & ~0x00000008); maxWriteTimeLag_ = null; if (maxWriteTimeLagBuilder_ != null) { maxWriteTimeLagBuilder_.dispose(); maxWriteTimeLagBuilder_ = null; } onChanged(); return this; } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public com.google.protobuf.Duration.Builder getMaxWriteTimeLagBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMaxWriteTimeLagFieldBuilder().getBuilder(); } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ public com.google.protobuf.DurationOrBuilder getMaxWriteTimeLagOrBuilder() { if (maxWriteTimeLagBuilder_ != null) { return maxWriteTimeLagBuilder_.getMessageOrBuilder(); } else { return maxWriteTimeLag_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxWriteTimeLag_; } } /** *
       * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute.
       * 
* * .google.protobuf.Duration max_write_time_lag = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxWriteTimeLagFieldBuilder() { if (maxWriteTimeLagBuilder_ == null) { maxWriteTimeLagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxWriteTimeLag(), getParentForChildren(), isClean()); maxWriteTimeLag_ = null; } return maxWriteTimeLagBuilder_; } private tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat bytesWritten_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> bytesWrittenBuilder_; /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return Whether the bytesWritten field is set. */ public boolean hasBytesWritten() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return The bytesWritten. */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat getBytesWritten() { if (bytesWrittenBuilder_ == null) { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } else { return bytesWrittenBuilder_.getMessage(); } } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public Builder setBytesWritten(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesWrittenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bytesWritten_ = value; } else { bytesWrittenBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public Builder setBytesWritten( tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder builderForValue) { if (bytesWrittenBuilder_ == null) { bytesWritten_ = builderForValue.build(); } else { bytesWrittenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public Builder mergeBytesWritten(tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat value) { if (bytesWrittenBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && bytesWritten_ != null && bytesWritten_ != tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance()) { getBytesWrittenBuilder().mergeFrom(value); } else { bytesWritten_ = value; } } else { bytesWrittenBuilder_.mergeFrom(value); } if (bytesWritten_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public Builder clearBytesWritten() { bitField0_ = (bitField0_ & ~0x00000010); bytesWritten_ = null; if (bytesWrittenBuilder_ != null) { bytesWrittenBuilder_.dispose(); bytesWrittenBuilder_ = null; } onChanged(); return this; } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder getBytesWrittenBuilder() { bitField0_ |= 0x00000010; onChanged(); return getBytesWrittenFieldBuilder().getBuilder(); } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ public tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder getBytesWrittenOrBuilder() { if (bytesWrittenBuilder_ != null) { return bytesWrittenBuilder_.getMessageOrBuilder(); } else { return bytesWritten_ == null ? tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.getDefaultInstance() : bytesWritten_; } } /** *
       * How much bytes were written during several windows in this partition.
       * 
* * .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder> getBytesWrittenFieldBuilder() { if (bytesWrittenBuilder_ == null) { bytesWrittenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStat.Builder, tech.ydb.proto.topic.YdbTopic.MultipleWindowsStatOrBuilder>( getBytesWritten(), getParentForChildren(), isClean()); bytesWritten_ = null; } return bytesWrittenBuilder_; } private int partitionNodeId_ ; /** *
       * Partition host. Useful for debugging purposes.
       * 
* * int32 partition_node_id = 8 [deprecated = true]; * @deprecated Ydb.Topic.PartitionStats.partition_node_id is deprecated. * See protos/ydb_topic.proto;l=1121 * @return The partitionNodeId. */ @java.lang.Override @java.lang.Deprecated public int getPartitionNodeId() { return partitionNodeId_; } /** *
       * Partition host. Useful for debugging purposes.
       * 
* * int32 partition_node_id = 8 [deprecated = true]; * @deprecated Ydb.Topic.PartitionStats.partition_node_id is deprecated. * See protos/ydb_topic.proto;l=1121 * @param value The partitionNodeId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPartitionNodeId(int value) { partitionNodeId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Partition host. Useful for debugging purposes.
       * 
* * int32 partition_node_id = 8 [deprecated = true]; * @deprecated Ydb.Topic.PartitionStats.partition_node_id is deprecated. * See protos/ydb_topic.proto;l=1121 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPartitionNodeId() { bitField0_ = (bitField0_ & ~0x00000020); partitionNodeId_ = 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.Topic.PartitionStats) } // @@protoc_insertion_point(class_scope:Ydb.Topic.PartitionStats) private static final tech.ydb.proto.topic.YdbTopic.PartitionStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.PartitionStats(); } public static tech.ydb.proto.topic.YdbTopic.PartitionStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.PartitionStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlterTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.AlterTopicRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return Whether the alterPartitioningSettings field is set. */ boolean hasAlterPartitioningSettings(); /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return The alterPartitioningSettings. */ tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getAlterPartitioningSettings(); /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder getAlterPartitioningSettingsOrBuilder(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; * @return Whether the setRetentionPeriod field is set. */ boolean hasSetRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; * @return The setRetentionPeriod. */ com.google.protobuf.Duration getSetRetentionPeriod(); /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; */ com.google.protobuf.DurationOrBuilder getSetRetentionPeriodOrBuilder(); /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return Whether the setRetentionStorageMb field is set. */ boolean hasSetRetentionStorageMb(); /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The setRetentionStorageMb. */ long getSetRetentionStorageMb(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return Whether the setSupportedCodecs field is set. */ boolean hasSetSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return The setSupportedCodecs. */ tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs(); /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder(); /** *
     * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
     * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteSpeedBytesPerSecond field is set. */ boolean hasSetPartitionWriteSpeedBytesPerSecond(); /** *
     * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
     * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteSpeedBytesPerSecond. */ long getSetPartitionWriteSpeedBytesPerSecond(); /** *
     * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
     * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteBurstBytes field is set. */ boolean hasSetPartitionWriteBurstBytes(); /** *
     * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
     * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteBurstBytes. */ long getSetPartitionWriteBurstBytes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ int getAlterAttributesCount(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ boolean containsAlterAttributes( java.lang.String key); /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAlterAttributes(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ java.util.Map getAlterAttributesMap(); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ java.lang.String getAlterAttributesOrThrow( java.lang.String key); /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ java.util.List getAddConsumersList(); /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.Consumer getAddConsumers(int index); /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ int getAddConsumersCount(); /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ java.util.List getAddConsumersOrBuilderList(); /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getAddConsumersOrBuilder( int index); /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return A list containing the dropConsumers. */ java.util.List getDropConsumersList(); /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return The count of dropConsumers. */ int getDropConsumersCount(); /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The dropConsumers at the given index. */ java.lang.String getDropConsumers(int index); /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the value to return. * @return The bytes of the dropConsumers at the given index. */ com.google.protobuf.ByteString getDropConsumersBytes(int index); /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ java.util.List getAlterConsumersList(); /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.AlterConsumer getAlterConsumers(int index); /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ int getAlterConsumersCount(); /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ java.util.List getAlterConsumersOrBuilderList(); /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder getAlterConsumersOrBuilder( int index); /** *
     * Set metering mode for topic in serverless database.
     * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The enum numeric value on the wire for setMeteringMode. */ int getSetMeteringModeValue(); /** *
     * Set metering mode for topic in serverless database.
     * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The setMeteringMode. */ tech.ydb.proto.topic.YdbTopic.MeteringMode getSetMeteringMode(); } /** *
   * Update existing topic request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.AlterTopicRequest} */ public static final class AlterTopicRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.AlterTopicRequest) AlterTopicRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AlterTopicRequest.newBuilder() to construct. private AlterTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlterTopicRequest() { path_ = ""; addConsumers_ = java.util.Collections.emptyList(); dropConsumers_ = com.google.protobuf.LazyStringArrayList.emptyList(); alterConsumers_ = java.util.Collections.emptyList(); setMeteringMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlterTopicRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.class, tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALTER_PARTITIONING_SETTINGS_FIELD_NUMBER = 3; private tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings alterPartitioningSettings_; /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return Whether the alterPartitioningSettings field is set. */ @java.lang.Override public boolean hasAlterPartitioningSettings() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return The alterPartitioningSettings. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getAlterPartitioningSettings() { return alterPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance() : alterPartitioningSettings_; } /** *
     * partitioning_settings
     * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder getAlterPartitioningSettingsOrBuilder() { return alterPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance() : alterPartitioningSettings_; } public static final int SET_RETENTION_PERIOD_FIELD_NUMBER = 4; private com.google.protobuf.Duration setRetentionPeriod_; /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; * @return Whether the setRetentionPeriod field is set. */ @java.lang.Override public boolean hasSetRetentionPeriod() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; * @return The setRetentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getSetRetentionPeriod() { return setRetentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : setRetentionPeriod_; } /** *
     * Retention settings.
     * Currently, only one limit may be set, so other should not be set.
     *
     * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * Default limit - 36 hours.
     * 
* * .google.protobuf.Duration set_retention_period = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSetRetentionPeriodOrBuilder() { return setRetentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : setRetentionPeriod_; } public static final int SET_RETENTION_STORAGE_MB_FIELD_NUMBER = 5; private long setRetentionStorageMb_ = 0L; /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return Whether the setRetentionStorageMb field is set. */ @java.lang.Override public boolean hasSetRetentionStorageMb() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
     * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The setRetentionStorageMb. */ @java.lang.Override public long getSetRetentionStorageMb() { return setRetentionStorageMb_; } public static final int SET_SUPPORTED_CODECS_FIELD_NUMBER = 7; private tech.ydb.proto.topic.YdbTopic.SupportedCodecs setSupportedCodecs_; /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return Whether the setSupportedCodecs field is set. */ @java.lang.Override public boolean hasSetSupportedCodecs() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return The setSupportedCodecs. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs() { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } /** *
     * List of allowed codecs for writers.
     * Writes with codec not from this list are forbidden.
     * If empty, codec compatibility check for the topic is disabled.
     * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder() { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } public static final int SET_PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER = 8; private long setPartitionWriteSpeedBytesPerSecond_ = 0L; /** *
     * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
     * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteSpeedBytesPerSecond field is set. */ @java.lang.Override public boolean hasSetPartitionWriteSpeedBytesPerSecond() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
     * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getSetPartitionWriteSpeedBytesPerSecond() { return setPartitionWriteSpeedBytesPerSecond_; } public static final int SET_PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER = 9; private long setPartitionWriteBurstBytes_ = 0L; /** *
     * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
     * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteBurstBytes field is set. */ @java.lang.Override public boolean hasSetPartitionWriteBurstBytes() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
     * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteBurstBytes. */ @java.lang.Override public long getSetPartitionWriteBurstBytes() { return setPartitionWriteBurstBytes_; } public static final int ALTER_ATTRIBUTES_FIELD_NUMBER = 10; private static final class AlterAttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.String> alterAttributes_; private com.google.protobuf.MapField internalGetAlterAttributes() { if (alterAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } return alterAttributes_; } public int getAlterAttributesCount() { return internalGetAlterAttributes().getMap().size(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public boolean containsAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAlterAttributes().getMap().containsKey(key); } /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAlterAttributes() { return getAlterAttributesMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public java.util.Map getAlterAttributesMap() { return internalGetAlterAttributes().getMap(); } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
     * Leave the value blank to drop an attribute.
     * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public java.lang.String getAlterAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ADD_CONSUMERS_FIELD_NUMBER = 11; @SuppressWarnings("serial") private java.util.List addConsumers_; /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getAddConsumersList() { return addConsumers_; } /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getAddConsumersOrBuilderList() { return addConsumers_; } /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public int getAddConsumersCount() { return addConsumers_.size(); } /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.Consumer getAddConsumers(int index) { return addConsumers_.get(index); } /** *
     * Add consumers.
     * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getAddConsumersOrBuilder( int index) { return addConsumers_.get(index); } public static final int DROP_CONSUMERS_FIELD_NUMBER = 12; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList dropConsumers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return A list containing the dropConsumers. */ public com.google.protobuf.ProtocolStringList getDropConsumersList() { return dropConsumers_; } /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return The count of dropConsumers. */ public int getDropConsumersCount() { return dropConsumers_.size(); } /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The dropConsumers at the given index. */ public java.lang.String getDropConsumers(int index) { return dropConsumers_.get(index); } /** *
     * Remove consumers (by their names)
     * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the value to return. * @return The bytes of the dropConsumers at the given index. */ public com.google.protobuf.ByteString getDropConsumersBytes(int index) { return dropConsumers_.getByteString(index); } public static final int ALTER_CONSUMERS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List alterConsumers_; /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getAlterConsumersList() { return alterConsumers_; } /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ @java.lang.Override public java.util.List getAlterConsumersOrBuilderList() { return alterConsumers_; } /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ @java.lang.Override public int getAlterConsumersCount() { return alterConsumers_.size(); } /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumer getAlterConsumers(int index) { return alterConsumers_.get(index); } /** *
     * Alter consumers
     * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder getAlterConsumersOrBuilder( int index) { return alterConsumers_.get(index); } public static final int SET_METERING_MODE_FIELD_NUMBER = 14; private int setMeteringMode_ = 0; /** *
     * Set metering mode for topic in serverless database.
     * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The enum numeric value on the wire for setMeteringMode. */ @java.lang.Override public int getSetMeteringModeValue() { return setMeteringMode_; } /** *
     * Set metering mode for topic in serverless database.
     * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The setMeteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getSetMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(setMeteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getAlterPartitioningSettings()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSetRetentionPeriod()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(5, setRetentionStorageMb_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getSetSupportedCodecs()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(8, setPartitionWriteSpeedBytesPerSecond_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt64(9, setPartitionWriteBurstBytes_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAlterAttributes(), AlterAttributesDefaultEntryHolder.defaultEntry, 10); for (int i = 0; i < addConsumers_.size(); i++) { output.writeMessage(11, addConsumers_.get(i)); } for (int i = 0; i < dropConsumers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dropConsumers_.getRaw(i)); } for (int i = 0; i < alterConsumers_.size(); i++) { output.writeMessage(13, alterConsumers_.get(i)); } if (setMeteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(14, setMeteringMode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAlterPartitioningSettings()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSetRetentionPeriod()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, setRetentionStorageMb_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getSetSupportedCodecs()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, setPartitionWriteSpeedBytesPerSecond_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, setPartitionWriteBurstBytes_); } for (java.util.Map.Entry entry : internalGetAlterAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry alterAttributes__ = AlterAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, alterAttributes__); } for (int i = 0; i < addConsumers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, addConsumers_.get(i)); } { int dataSize = 0; for (int i = 0; i < dropConsumers_.size(); i++) { dataSize += computeStringSizeNoTag(dropConsumers_.getRaw(i)); } size += dataSize; size += 1 * getDropConsumersList().size(); } for (int i = 0; i < alterConsumers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, alterConsumers_.get(i)); } if (setMeteringMode_ != tech.ydb.proto.topic.YdbTopic.MeteringMode.METERING_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, setMeteringMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.AlterTopicRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.AlterTopicRequest other = (tech.ydb.proto.topic.YdbTopic.AlterTopicRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (hasAlterPartitioningSettings() != other.hasAlterPartitioningSettings()) return false; if (hasAlterPartitioningSettings()) { if (!getAlterPartitioningSettings() .equals(other.getAlterPartitioningSettings())) return false; } if (hasSetRetentionPeriod() != other.hasSetRetentionPeriod()) return false; if (hasSetRetentionPeriod()) { if (!getSetRetentionPeriod() .equals(other.getSetRetentionPeriod())) return false; } if (hasSetRetentionStorageMb() != other.hasSetRetentionStorageMb()) return false; if (hasSetRetentionStorageMb()) { if (getSetRetentionStorageMb() != other.getSetRetentionStorageMb()) return false; } if (hasSetSupportedCodecs() != other.hasSetSupportedCodecs()) return false; if (hasSetSupportedCodecs()) { if (!getSetSupportedCodecs() .equals(other.getSetSupportedCodecs())) return false; } if (hasSetPartitionWriteSpeedBytesPerSecond() != other.hasSetPartitionWriteSpeedBytesPerSecond()) return false; if (hasSetPartitionWriteSpeedBytesPerSecond()) { if (getSetPartitionWriteSpeedBytesPerSecond() != other.getSetPartitionWriteSpeedBytesPerSecond()) return false; } if (hasSetPartitionWriteBurstBytes() != other.hasSetPartitionWriteBurstBytes()) return false; if (hasSetPartitionWriteBurstBytes()) { if (getSetPartitionWriteBurstBytes() != other.getSetPartitionWriteBurstBytes()) return false; } if (!internalGetAlterAttributes().equals( other.internalGetAlterAttributes())) return false; if (!getAddConsumersList() .equals(other.getAddConsumersList())) return false; if (!getDropConsumersList() .equals(other.getDropConsumersList())) return false; if (!getAlterConsumersList() .equals(other.getAlterConsumersList())) return false; if (setMeteringMode_ != other.setMeteringMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (hasAlterPartitioningSettings()) { hash = (37 * hash) + ALTER_PARTITIONING_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAlterPartitioningSettings().hashCode(); } if (hasSetRetentionPeriod()) { hash = (37 * hash) + SET_RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getSetRetentionPeriod().hashCode(); } if (hasSetRetentionStorageMb()) { hash = (37 * hash) + SET_RETENTION_STORAGE_MB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSetRetentionStorageMb()); } if (hasSetSupportedCodecs()) { hash = (37 * hash) + SET_SUPPORTED_CODECS_FIELD_NUMBER; hash = (53 * hash) + getSetSupportedCodecs().hashCode(); } if (hasSetPartitionWriteSpeedBytesPerSecond()) { hash = (37 * hash) + SET_PARTITION_WRITE_SPEED_BYTES_PER_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSetPartitionWriteSpeedBytesPerSecond()); } if (hasSetPartitionWriteBurstBytes()) { hash = (37 * hash) + SET_PARTITION_WRITE_BURST_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSetPartitionWriteBurstBytes()); } if (!internalGetAlterAttributes().getMap().isEmpty()) { hash = (37 * hash) + ALTER_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAlterAttributes().hashCode(); } if (getAddConsumersCount() > 0) { hash = (37 * hash) + ADD_CONSUMERS_FIELD_NUMBER; hash = (53 * hash) + getAddConsumersList().hashCode(); } if (getDropConsumersCount() > 0) { hash = (37 * hash) + DROP_CONSUMERS_FIELD_NUMBER; hash = (53 * hash) + getDropConsumersList().hashCode(); } if (getAlterConsumersCount() > 0) { hash = (37 * hash) + ALTER_CONSUMERS_FIELD_NUMBER; hash = (53 * hash) + getAlterConsumersList().hashCode(); } hash = (37 * hash) + SET_METERING_MODE_FIELD_NUMBER; hash = (53 * hash) + setMeteringMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest 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 tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest 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 tech.ydb.proto.topic.YdbTopic.AlterTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest 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(tech.ydb.proto.topic.YdbTopic.AlterTopicRequest 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; } /** *
     * Update existing topic request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.AlterTopicRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.AlterTopicRequest) tech.ydb.proto.topic.YdbTopic.AlterTopicRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableAlterAttributes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.class, tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); getAlterPartitioningSettingsFieldBuilder(); getSetRetentionPeriodFieldBuilder(); getSetSupportedCodecsFieldBuilder(); getAddConsumersFieldBuilder(); getAlterConsumersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; alterPartitioningSettings_ = null; if (alterPartitioningSettingsBuilder_ != null) { alterPartitioningSettingsBuilder_.dispose(); alterPartitioningSettingsBuilder_ = null; } setRetentionPeriod_ = null; if (setRetentionPeriodBuilder_ != null) { setRetentionPeriodBuilder_.dispose(); setRetentionPeriodBuilder_ = null; } setRetentionStorageMb_ = 0L; setSupportedCodecs_ = null; if (setSupportedCodecsBuilder_ != null) { setSupportedCodecsBuilder_.dispose(); setSupportedCodecsBuilder_ = null; } setPartitionWriteSpeedBytesPerSecond_ = 0L; setPartitionWriteBurstBytes_ = 0L; internalGetMutableAlterAttributes().clear(); if (addConsumersBuilder_ == null) { addConsumers_ = java.util.Collections.emptyList(); } else { addConsumers_ = null; addConsumersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); dropConsumers_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (alterConsumersBuilder_ == null) { alterConsumers_ = java.util.Collections.emptyList(); } else { alterConsumers_ = null; alterConsumersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); setMeteringMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicRequest build() { tech.ydb.proto.topic.YdbTopic.AlterTopicRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.AlterTopicRequest result = new tech.ydb.proto.topic.YdbTopic.AlterTopicRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.topic.YdbTopic.AlterTopicRequest result) { if (addConsumersBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { addConsumers_ = java.util.Collections.unmodifiableList(addConsumers_); bitField0_ = (bitField0_ & ~0x00000200); } result.addConsumers_ = addConsumers_; } else { result.addConsumers_ = addConsumersBuilder_.build(); } if (alterConsumersBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { alterConsumers_ = java.util.Collections.unmodifiableList(alterConsumers_); bitField0_ = (bitField0_ & ~0x00000800); } result.alterConsumers_ = alterConsumers_; } else { result.alterConsumers_ = alterConsumersBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.AlterTopicRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.alterPartitioningSettings_ = alterPartitioningSettingsBuilder_ == null ? alterPartitioningSettings_ : alterPartitioningSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.setRetentionPeriod_ = setRetentionPeriodBuilder_ == null ? setRetentionPeriod_ : setRetentionPeriodBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.setRetentionStorageMb_ = setRetentionStorageMb_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.setSupportedCodecs_ = setSupportedCodecsBuilder_ == null ? setSupportedCodecs_ : setSupportedCodecsBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.setPartitionWriteSpeedBytesPerSecond_ = setPartitionWriteSpeedBytesPerSecond_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { result.setPartitionWriteBurstBytes_ = setPartitionWriteBurstBytes_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.alterAttributes_ = internalGetAlterAttributes(); result.alterAttributes_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { dropConsumers_.makeImmutable(); result.dropConsumers_ = dropConsumers_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.setMeteringMode_ = setMeteringMode_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.AlterTopicRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.AlterTopicRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.AlterTopicRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.AlterTopicRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAlterPartitioningSettings()) { mergeAlterPartitioningSettings(other.getAlterPartitioningSettings()); } if (other.hasSetRetentionPeriod()) { mergeSetRetentionPeriod(other.getSetRetentionPeriod()); } if (other.hasSetRetentionStorageMb()) { setSetRetentionStorageMb(other.getSetRetentionStorageMb()); } if (other.hasSetSupportedCodecs()) { mergeSetSupportedCodecs(other.getSetSupportedCodecs()); } if (other.hasSetPartitionWriteSpeedBytesPerSecond()) { setSetPartitionWriteSpeedBytesPerSecond(other.getSetPartitionWriteSpeedBytesPerSecond()); } if (other.hasSetPartitionWriteBurstBytes()) { setSetPartitionWriteBurstBytes(other.getSetPartitionWriteBurstBytes()); } internalGetMutableAlterAttributes().mergeFrom( other.internalGetAlterAttributes()); bitField0_ |= 0x00000100; if (addConsumersBuilder_ == null) { if (!other.addConsumers_.isEmpty()) { if (addConsumers_.isEmpty()) { addConsumers_ = other.addConsumers_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureAddConsumersIsMutable(); addConsumers_.addAll(other.addConsumers_); } onChanged(); } } else { if (!other.addConsumers_.isEmpty()) { if (addConsumersBuilder_.isEmpty()) { addConsumersBuilder_.dispose(); addConsumersBuilder_ = null; addConsumers_ = other.addConsumers_; bitField0_ = (bitField0_ & ~0x00000200); addConsumersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddConsumersFieldBuilder() : null; } else { addConsumersBuilder_.addAllMessages(other.addConsumers_); } } } if (!other.dropConsumers_.isEmpty()) { if (dropConsumers_.isEmpty()) { dropConsumers_ = other.dropConsumers_; bitField0_ |= 0x00000400; } else { ensureDropConsumersIsMutable(); dropConsumers_.addAll(other.dropConsumers_); } onChanged(); } if (alterConsumersBuilder_ == null) { if (!other.alterConsumers_.isEmpty()) { if (alterConsumers_.isEmpty()) { alterConsumers_ = other.alterConsumers_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureAlterConsumersIsMutable(); alterConsumers_.addAll(other.alterConsumers_); } onChanged(); } } else { if (!other.alterConsumers_.isEmpty()) { if (alterConsumersBuilder_.isEmpty()) { alterConsumersBuilder_.dispose(); alterConsumersBuilder_ = null; alterConsumers_ = other.alterConsumers_; bitField0_ = (bitField0_ & ~0x00000800); alterConsumersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAlterConsumersFieldBuilder() : null; } else { alterConsumersBuilder_.addAllMessages(other.alterConsumers_); } } } if (other.setMeteringMode_ != 0) { setSetMeteringModeValue(other.getSetMeteringModeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getAlterPartitioningSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSetRetentionPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { setRetentionStorageMb_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 58: { input.readMessage( getSetSupportedCodecsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 case 64: { setPartitionWriteSpeedBytesPerSecond_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 64 case 72: { setPartitionWriteBurstBytes_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 72 case 82: { com.google.protobuf.MapEntry alterAttributes__ = input.readMessage( AlterAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAlterAttributes().getMutableMap().put( alterAttributes__.getKey(), alterAttributes__.getValue()); bitField0_ |= 0x00000100; break; } // case 82 case 90: { tech.ydb.proto.topic.YdbTopic.Consumer m = input.readMessage( tech.ydb.proto.topic.YdbTopic.Consumer.parser(), extensionRegistry); if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); addConsumers_.add(m); } else { addConsumersBuilder_.addMessage(m); } break; } // case 90 case 98: { java.lang.String s = input.readStringRequireUtf8(); ensureDropConsumersIsMutable(); dropConsumers_.add(s); break; } // case 98 case 106: { tech.ydb.proto.topic.YdbTopic.AlterConsumer m = input.readMessage( tech.ydb.proto.topic.YdbTopic.AlterConsumer.parser(), extensionRegistry); if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); alterConsumers_.add(m); } else { alterConsumersBuilder_.addMessage(m); } break; } // case 106 case 112: { setMeteringMode_ = input.readEnum(); bitField0_ |= 0x00001000; break; } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings alterPartitioningSettings_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder> alterPartitioningSettingsBuilder_; /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return Whether the alterPartitioningSettings field is set. */ public boolean hasAlterPartitioningSettings() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; * @return The alterPartitioningSettings. */ public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings getAlterPartitioningSettings() { if (alterPartitioningSettingsBuilder_ == null) { return alterPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance() : alterPartitioningSettings_; } else { return alterPartitioningSettingsBuilder_.getMessage(); } } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public Builder setAlterPartitioningSettings(tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings value) { if (alterPartitioningSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } alterPartitioningSettings_ = value; } else { alterPartitioningSettingsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public Builder setAlterPartitioningSettings( tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder builderForValue) { if (alterPartitioningSettingsBuilder_ == null) { alterPartitioningSettings_ = builderForValue.build(); } else { alterPartitioningSettingsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public Builder mergeAlterPartitioningSettings(tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings value) { if (alterPartitioningSettingsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && alterPartitioningSettings_ != null && alterPartitioningSettings_ != tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance()) { getAlterPartitioningSettingsBuilder().mergeFrom(value); } else { alterPartitioningSettings_ = value; } } else { alterPartitioningSettingsBuilder_.mergeFrom(value); } if (alterPartitioningSettings_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public Builder clearAlterPartitioningSettings() { bitField0_ = (bitField0_ & ~0x00000004); alterPartitioningSettings_ = null; if (alterPartitioningSettingsBuilder_ != null) { alterPartitioningSettingsBuilder_.dispose(); alterPartitioningSettingsBuilder_ = null; } onChanged(); return this; } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder getAlterPartitioningSettingsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAlterPartitioningSettingsFieldBuilder().getBuilder(); } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ public tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder getAlterPartitioningSettingsOrBuilder() { if (alterPartitioningSettingsBuilder_ != null) { return alterPartitioningSettingsBuilder_.getMessageOrBuilder(); } else { return alterPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.getDefaultInstance() : alterPartitioningSettings_; } } /** *
       * partitioning_settings
       * 
* * .Ydb.Topic.AlterPartitioningSettings alter_partitioning_settings = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder> getAlterPartitioningSettingsFieldBuilder() { if (alterPartitioningSettingsBuilder_ == null) { alterPartitioningSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.AlterPartitioningSettingsOrBuilder>( getAlterPartitioningSettings(), getParentForChildren(), isClean()); alterPartitioningSettings_ = null; } return alterPartitioningSettingsBuilder_; } private com.google.protobuf.Duration setRetentionPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> setRetentionPeriodBuilder_; /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; * @return Whether the setRetentionPeriod field is set. */ public boolean hasSetRetentionPeriod() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; * @return The setRetentionPeriod. */ public com.google.protobuf.Duration getSetRetentionPeriod() { if (setRetentionPeriodBuilder_ == null) { return setRetentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : setRetentionPeriod_; } else { return setRetentionPeriodBuilder_.getMessage(); } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public Builder setSetRetentionPeriod(com.google.protobuf.Duration value) { if (setRetentionPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setRetentionPeriod_ = value; } else { setRetentionPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public Builder setSetRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (setRetentionPeriodBuilder_ == null) { setRetentionPeriod_ = builderForValue.build(); } else { setRetentionPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public Builder mergeSetRetentionPeriod(com.google.protobuf.Duration value) { if (setRetentionPeriodBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && setRetentionPeriod_ != null && setRetentionPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) { getSetRetentionPeriodBuilder().mergeFrom(value); } else { setRetentionPeriod_ = value; } } else { setRetentionPeriodBuilder_.mergeFrom(value); } if (setRetentionPeriod_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public Builder clearSetRetentionPeriod() { bitField0_ = (bitField0_ & ~0x00000008); setRetentionPeriod_ = null; if (setRetentionPeriodBuilder_ != null) { setRetentionPeriodBuilder_.dispose(); setRetentionPeriodBuilder_ = null; } onChanged(); return this; } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public com.google.protobuf.Duration.Builder getSetRetentionPeriodBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSetRetentionPeriodFieldBuilder().getBuilder(); } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ public com.google.protobuf.DurationOrBuilder getSetRetentionPeriodOrBuilder() { if (setRetentionPeriodBuilder_ != null) { return setRetentionPeriodBuilder_.getMessageOrBuilder(); } else { return setRetentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : setRetentionPeriod_; } } /** *
       * Retention settings.
       * Currently, only one limit may be set, so other should not be set.
       *
       * How long data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * Default limit - 36 hours.
       * 
* * .google.protobuf.Duration set_retention_period = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getSetRetentionPeriodFieldBuilder() { if (setRetentionPeriodBuilder_ == null) { setRetentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getSetRetentionPeriod(), getParentForChildren(), isClean()); setRetentionPeriod_ = null; } return setRetentionPeriodBuilder_; } private long setRetentionStorageMb_ ; /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return Whether the setRetentionStorageMb field is set. */ @java.lang.Override public boolean hasSetRetentionStorageMb() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return The setRetentionStorageMb. */ @java.lang.Override public long getSetRetentionStorageMb() { return setRetentionStorageMb_; } /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @param value The setRetentionStorageMb to set. * @return This builder for chaining. */ public Builder setSetRetentionStorageMb(long value) { setRetentionStorageMb_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * How much data in partition should be stored. Must be greater than 0 and less than limit for this database.
       * 
* * optional int64 set_retention_storage_mb = 5 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearSetRetentionStorageMb() { bitField0_ = (bitField0_ & ~0x00000010); setRetentionStorageMb_ = 0L; onChanged(); return this; } private tech.ydb.proto.topic.YdbTopic.SupportedCodecs setSupportedCodecs_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> setSupportedCodecsBuilder_; /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return Whether the setSupportedCodecs field is set. */ public boolean hasSetSupportedCodecs() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; * @return The setSupportedCodecs. */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs getSetSupportedCodecs() { if (setSupportedCodecsBuilder_ == null) { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } else { return setSupportedCodecsBuilder_.getMessage(); } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public Builder setSetSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (setSupportedCodecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setSupportedCodecs_ = value; } else { setSupportedCodecsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public Builder setSetSupportedCodecs( tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder builderForValue) { if (setSupportedCodecsBuilder_ == null) { setSupportedCodecs_ = builderForValue.build(); } else { setSupportedCodecsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public Builder mergeSetSupportedCodecs(tech.ydb.proto.topic.YdbTopic.SupportedCodecs value) { if (setSupportedCodecsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && setSupportedCodecs_ != null && setSupportedCodecs_ != tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance()) { getSetSupportedCodecsBuilder().mergeFrom(value); } else { setSupportedCodecs_ = value; } } else { setSupportedCodecsBuilder_.mergeFrom(value); } if (setSupportedCodecs_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public Builder clearSetSupportedCodecs() { bitField0_ = (bitField0_ & ~0x00000020); setSupportedCodecs_ = null; if (setSupportedCodecsBuilder_ != null) { setSupportedCodecsBuilder_.dispose(); setSupportedCodecsBuilder_ = null; } onChanged(); return this; } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder getSetSupportedCodecsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSetSupportedCodecsFieldBuilder().getBuilder(); } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ public tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder getSetSupportedCodecsOrBuilder() { if (setSupportedCodecsBuilder_ != null) { return setSupportedCodecsBuilder_.getMessageOrBuilder(); } else { return setSupportedCodecs_ == null ? tech.ydb.proto.topic.YdbTopic.SupportedCodecs.getDefaultInstance() : setSupportedCodecs_; } } /** *
       * List of allowed codecs for writers.
       * Writes with codec not from this list are forbidden.
       * If empty, codec compatibility check for the topic is disabled.
       * 
* * .Ydb.Topic.SupportedCodecs set_supported_codecs = 7; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder> getSetSupportedCodecsFieldBuilder() { if (setSupportedCodecsBuilder_ == null) { setSupportedCodecsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.SupportedCodecs, tech.ydb.proto.topic.YdbTopic.SupportedCodecs.Builder, tech.ydb.proto.topic.YdbTopic.SupportedCodecsOrBuilder>( getSetSupportedCodecs(), getParentForChildren(), isClean()); setSupportedCodecs_ = null; } return setSupportedCodecsBuilder_; } private long setPartitionWriteSpeedBytesPerSecond_ ; /** *
       * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
       * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteSpeedBytesPerSecond field is set. */ @java.lang.Override public boolean hasSetPartitionWriteSpeedBytesPerSecond() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
       * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteSpeedBytesPerSecond. */ @java.lang.Override public long getSetPartitionWriteSpeedBytesPerSecond() { return setPartitionWriteSpeedBytesPerSecond_; } /** *
       * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
       * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @param value The setPartitionWriteSpeedBytesPerSecond to set. * @return This builder for chaining. */ public Builder setSetPartitionWriteSpeedBytesPerSecond(long value) { setPartitionWriteSpeedBytesPerSecond_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * Partition write speed in bytes per second. Must be less than database limit. Default limit - 1 MB/s.
       * 
* * optional int64 set_partition_write_speed_bytes_per_second = 8 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearSetPartitionWriteSpeedBytesPerSecond() { bitField0_ = (bitField0_ & ~0x00000040); setPartitionWriteSpeedBytesPerSecond_ = 0L; onChanged(); return this; } private long setPartitionWriteBurstBytes_ ; /** *
       * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
       * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return Whether the setPartitionWriteBurstBytes field is set. */ @java.lang.Override public boolean hasSetPartitionWriteBurstBytes() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
       * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return The setPartitionWriteBurstBytes. */ @java.lang.Override public long getSetPartitionWriteBurstBytes() { return setPartitionWriteBurstBytes_; } /** *
       * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
       * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @param value The setPartitionWriteBurstBytes to set. * @return This builder for chaining. */ public Builder setSetPartitionWriteBurstBytes(long value) { setPartitionWriteBurstBytes_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Burst size for write in partition, in bytes. Must be less than database limit. Default limit - 1 MB.
       * 
* * optional int64 set_partition_write_burst_bytes = 9 [(.Ydb.value) = ">= 0"]; * @return This builder for chaining. */ public Builder clearSetPartitionWriteBurstBytes() { bitField0_ = (bitField0_ & ~0x00000080); setPartitionWriteBurstBytes_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> alterAttributes_; private com.google.protobuf.MapField internalGetAlterAttributes() { if (alterAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } return alterAttributes_; } private com.google.protobuf.MapField internalGetMutableAlterAttributes() { if (alterAttributes_ == null) { alterAttributes_ = com.google.protobuf.MapField.newMapField( AlterAttributesDefaultEntryHolder.defaultEntry); } if (!alterAttributes_.isMutable()) { alterAttributes_ = alterAttributes_.copy(); } bitField0_ |= 0x00000100; onChanged(); return alterAttributes_; } public int getAlterAttributesCount() { return internalGetAlterAttributes().getMap().size(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public boolean containsAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAlterAttributes().getMap().containsKey(key); } /** * Use {@link #getAlterAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAlterAttributes() { return getAlterAttributesMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public java.util.Map getAlterAttributesMap() { return internalGetAlterAttributes().getMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public /* nullable */ java.lang.String getAlterAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ @java.lang.Override public java.lang.String getAlterAttributesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAlterAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAlterAttributes() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableAlterAttributes().getMutableMap() .clear(); return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ public Builder removeAlterAttributes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAlterAttributes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAlterAttributes() { bitField0_ |= 0x00000100; return internalGetMutableAlterAttributes().getMutableMap(); } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ public Builder putAlterAttributes( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAlterAttributes().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** *
       * User and server attributes of topic. Server attributes starts from "_" and will be validated by server.
       * Leave the value blank to drop an attribute.
       * 
* * map<string, string> alter_attributes = 10; */ public Builder putAllAlterAttributes( java.util.Map values) { internalGetMutableAlterAttributes().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; return this; } private java.util.List addConsumers_ = java.util.Collections.emptyList(); private void ensureAddConsumersIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { addConsumers_ = new java.util.ArrayList(addConsumers_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> addConsumersBuilder_; /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getAddConsumersList() { if (addConsumersBuilder_ == null) { return java.util.Collections.unmodifiableList(addConsumers_); } else { return addConsumersBuilder_.getMessageList(); } } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public int getAddConsumersCount() { if (addConsumersBuilder_ == null) { return addConsumers_.size(); } else { return addConsumersBuilder_.getCount(); } } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer getAddConsumers(int index) { if (addConsumersBuilder_ == null) { return addConsumers_.get(index); } else { return addConsumersBuilder_.getMessage(index); } } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder setAddConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (addConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddConsumersIsMutable(); addConsumers_.set(index, value); onChanged(); } else { addConsumersBuilder_.setMessage(index, value); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder setAddConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); addConsumers_.set(index, builderForValue.build()); onChanged(); } else { addConsumersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAddConsumers(tech.ydb.proto.topic.YdbTopic.Consumer value) { if (addConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddConsumersIsMutable(); addConsumers_.add(value); onChanged(); } else { addConsumersBuilder_.addMessage(value); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAddConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer value) { if (addConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddConsumersIsMutable(); addConsumers_.add(index, value); onChanged(); } else { addConsumersBuilder_.addMessage(index, value); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAddConsumers( tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); addConsumers_.add(builderForValue.build()); onChanged(); } else { addConsumersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAddConsumers( int index, tech.ydb.proto.topic.YdbTopic.Consumer.Builder builderForValue) { if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); addConsumers_.add(index, builderForValue.build()); onChanged(); } else { addConsumersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder addAllAddConsumers( java.lang.Iterable values) { if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, addConsumers_); onChanged(); } else { addConsumersBuilder_.addAllMessages(values); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder clearAddConsumers() { if (addConsumersBuilder_ == null) { addConsumers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { addConsumersBuilder_.clear(); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public Builder removeAddConsumers(int index) { if (addConsumersBuilder_ == null) { ensureAddConsumersIsMutable(); addConsumers_.remove(index); onChanged(); } else { addConsumersBuilder_.remove(index); } return this; } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder getAddConsumersBuilder( int index) { return getAddConsumersFieldBuilder().getBuilder(index); } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder getAddConsumersOrBuilder( int index) { if (addConsumersBuilder_ == null) { return addConsumers_.get(index); } else { return addConsumersBuilder_.getMessageOrBuilder(index); } } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getAddConsumersOrBuilderList() { if (addConsumersBuilder_ != null) { return addConsumersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addConsumers_); } } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addAddConsumersBuilder() { return getAddConsumersFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.Consumer.Builder addAddConsumersBuilder( int index) { return getAddConsumersFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.Consumer.getDefaultInstance()); } /** *
       * Add consumers.
       * 
* * repeated .Ydb.Topic.Consumer add_consumers = 11 [(.Ydb.size) = { ... } */ public java.util.List getAddConsumersBuilderList() { return getAddConsumersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder> getAddConsumersFieldBuilder() { if (addConsumersBuilder_ == null) { addConsumersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.Consumer, tech.ydb.proto.topic.YdbTopic.Consumer.Builder, tech.ydb.proto.topic.YdbTopic.ConsumerOrBuilder>( addConsumers_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); addConsumers_ = null; } return addConsumersBuilder_; } private com.google.protobuf.LazyStringArrayList dropConsumers_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDropConsumersIsMutable() { if (!dropConsumers_.isModifiable()) { dropConsumers_ = new com.google.protobuf.LazyStringArrayList(dropConsumers_); } bitField0_ |= 0x00000400; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return A list containing the dropConsumers. */ public com.google.protobuf.ProtocolStringList getDropConsumersList() { dropConsumers_.makeImmutable(); return dropConsumers_; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return The count of dropConsumers. */ public int getDropConsumersCount() { return dropConsumers_.size(); } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the element to return. * @return The dropConsumers at the given index. */ public java.lang.String getDropConsumers(int index) { return dropConsumers_.get(index); } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index of the value to return. * @return The bytes of the dropConsumers at the given index. */ public com.google.protobuf.ByteString getDropConsumersBytes(int index) { return dropConsumers_.getByteString(index); } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param index The index to set the value at. * @param value The dropConsumers to set. * @return This builder for chaining. */ public Builder setDropConsumers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDropConsumersIsMutable(); dropConsumers_.set(index, value); bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param value The dropConsumers to add. * @return This builder for chaining. */ public Builder addDropConsumers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDropConsumersIsMutable(); dropConsumers_.add(value); bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param values The dropConsumers to add. * @return This builder for chaining. */ public Builder addAllDropConsumers( java.lang.Iterable values) { ensureDropConsumersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dropConsumers_); bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @return This builder for chaining. */ public Builder clearDropConsumers() { dropConsumers_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** *
       * Remove consumers (by their names)
       * 
* * repeated string drop_consumers = 12 [(.Ydb.size) = { ... } * @param value The bytes of the dropConsumers to add. * @return This builder for chaining. */ public Builder addDropConsumersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDropConsumersIsMutable(); dropConsumers_.add(value); bitField0_ |= 0x00000400; onChanged(); return this; } private java.util.List alterConsumers_ = java.util.Collections.emptyList(); private void ensureAlterConsumersIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { alterConsumers_ = new java.util.ArrayList(alterConsumers_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterConsumer, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder, tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder> alterConsumersBuilder_; /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public java.util.List getAlterConsumersList() { if (alterConsumersBuilder_ == null) { return java.util.Collections.unmodifiableList(alterConsumers_); } else { return alterConsumersBuilder_.getMessageList(); } } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public int getAlterConsumersCount() { if (alterConsumersBuilder_ == null) { return alterConsumers_.size(); } else { return alterConsumersBuilder_.getCount(); } } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.AlterConsumer getAlterConsumers(int index) { if (alterConsumersBuilder_ == null) { return alterConsumers_.get(index); } else { return alterConsumersBuilder_.getMessage(index); } } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder setAlterConsumers( int index, tech.ydb.proto.topic.YdbTopic.AlterConsumer value) { if (alterConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlterConsumersIsMutable(); alterConsumers_.set(index, value); onChanged(); } else { alterConsumersBuilder_.setMessage(index, value); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder setAlterConsumers( int index, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder builderForValue) { if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); alterConsumers_.set(index, builderForValue.build()); onChanged(); } else { alterConsumersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder addAlterConsumers(tech.ydb.proto.topic.YdbTopic.AlterConsumer value) { if (alterConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlterConsumersIsMutable(); alterConsumers_.add(value); onChanged(); } else { alterConsumersBuilder_.addMessage(value); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder addAlterConsumers( int index, tech.ydb.proto.topic.YdbTopic.AlterConsumer value) { if (alterConsumersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAlterConsumersIsMutable(); alterConsumers_.add(index, value); onChanged(); } else { alterConsumersBuilder_.addMessage(index, value); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder addAlterConsumers( tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder builderForValue) { if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); alterConsumers_.add(builderForValue.build()); onChanged(); } else { alterConsumersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder addAlterConsumers( int index, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder builderForValue) { if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); alterConsumers_.add(index, builderForValue.build()); onChanged(); } else { alterConsumersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder addAllAlterConsumers( java.lang.Iterable values) { if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alterConsumers_); onChanged(); } else { alterConsumersBuilder_.addAllMessages(values); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder clearAlterConsumers() { if (alterConsumersBuilder_ == null) { alterConsumers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { alterConsumersBuilder_.clear(); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public Builder removeAlterConsumers(int index) { if (alterConsumersBuilder_ == null) { ensureAlterConsumersIsMutable(); alterConsumers_.remove(index); onChanged(); } else { alterConsumersBuilder_.remove(index); } return this; } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder getAlterConsumersBuilder( int index) { return getAlterConsumersFieldBuilder().getBuilder(index); } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder getAlterConsumersOrBuilder( int index) { if (alterConsumersBuilder_ == null) { return alterConsumers_.get(index); } else { return alterConsumersBuilder_.getMessageOrBuilder(index); } } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public java.util.List getAlterConsumersOrBuilderList() { if (alterConsumersBuilder_ != null) { return alterConsumersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alterConsumers_); } } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder addAlterConsumersBuilder() { return getAlterConsumersFieldBuilder().addBuilder( tech.ydb.proto.topic.YdbTopic.AlterConsumer.getDefaultInstance()); } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder addAlterConsumersBuilder( int index) { return getAlterConsumersFieldBuilder().addBuilder( index, tech.ydb.proto.topic.YdbTopic.AlterConsumer.getDefaultInstance()); } /** *
       * Alter consumers
       * 
* * repeated .Ydb.Topic.AlterConsumer alter_consumers = 13 [(.Ydb.size) = { ... } */ public java.util.List getAlterConsumersBuilderList() { return getAlterConsumersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterConsumer, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder, tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder> getAlterConsumersFieldBuilder() { if (alterConsumersBuilder_ == null) { alterConsumersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.topic.YdbTopic.AlterConsumer, tech.ydb.proto.topic.YdbTopic.AlterConsumer.Builder, tech.ydb.proto.topic.YdbTopic.AlterConsumerOrBuilder>( alterConsumers_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); alterConsumers_ = null; } return alterConsumersBuilder_; } private int setMeteringMode_ = 0; /** *
       * Set metering mode for topic in serverless database.
       * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The enum numeric value on the wire for setMeteringMode. */ @java.lang.Override public int getSetMeteringModeValue() { return setMeteringMode_; } /** *
       * Set metering mode for topic in serverless database.
       * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @param value The enum numeric value on the wire for setMeteringMode to set. * @return This builder for chaining. */ public Builder setSetMeteringModeValue(int value) { setMeteringMode_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Set metering mode for topic in serverless database.
       * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return The setMeteringMode. */ @java.lang.Override public tech.ydb.proto.topic.YdbTopic.MeteringMode getSetMeteringMode() { tech.ydb.proto.topic.YdbTopic.MeteringMode result = tech.ydb.proto.topic.YdbTopic.MeteringMode.forNumber(setMeteringMode_); return result == null ? tech.ydb.proto.topic.YdbTopic.MeteringMode.UNRECOGNIZED : result; } /** *
       * Set metering mode for topic in serverless database.
       * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @param value The setMeteringMode to set. * @return This builder for chaining. */ public Builder setSetMeteringMode(tech.ydb.proto.topic.YdbTopic.MeteringMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; setMeteringMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Set metering mode for topic in serverless database.
       * 
* * .Ydb.Topic.MeteringMode set_metering_mode = 14; * @return This builder for chaining. */ public Builder clearSetMeteringMode() { bitField0_ = (bitField0_ & ~0x00001000); setMeteringMode_ = 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.Topic.AlterTopicRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.AlterTopicRequest) private static final tech.ydb.proto.topic.YdbTopic.AlterTopicRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.AlterTopicRequest(); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlterTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlterTopicResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.AlterTopicResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Update topic response sent from server to client.
   * 
* * Protobuf type {@code Ydb.Topic.AlterTopicResponse} */ public static final class AlterTopicResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.AlterTopicResponse) AlterTopicResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AlterTopicResponse.newBuilder() to construct. private AlterTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlterTopicResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlterTopicResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.class, tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.AlterTopicResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.AlterTopicResponse other = (tech.ydb.proto.topic.YdbTopic.AlterTopicResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse 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 tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse 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 tech.ydb.proto.topic.YdbTopic.AlterTopicResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse 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(tech.ydb.proto.topic.YdbTopic.AlterTopicResponse 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; } /** *
     * Update topic response sent from server to client.
     * 
* * Protobuf type {@code Ydb.Topic.AlterTopicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.AlterTopicResponse) tech.ydb.proto.topic.YdbTopic.AlterTopicResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.class, tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResponse build() { tech.ydb.proto.topic.YdbTopic.AlterTopicResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.AlterTopicResponse result = new tech.ydb.proto.topic.YdbTopic.AlterTopicResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.AlterTopicResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.AlterTopicResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.AlterTopicResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.AlterTopicResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.AlterTopicResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.AlterTopicResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.AlterTopicResponse) private static final tech.ydb.proto.topic.YdbTopic.AlterTopicResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.AlterTopicResponse(); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlterTopicResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlterTopicResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.AlterTopicResult) com.google.protobuf.MessageOrBuilder { } /** *
   * Update topic result message that will be inside UpdateTopicResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.AlterTopicResult} */ public static final class AlterTopicResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.AlterTopicResult) AlterTopicResultOrBuilder { private static final long serialVersionUID = 0L; // Use AlterTopicResult.newBuilder() to construct. private AlterTopicResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlterTopicResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlterTopicResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicResult.class, tech.ydb.proto.topic.YdbTopic.AlterTopicResult.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.AlterTopicResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.AlterTopicResult other = (tech.ydb.proto.topic.YdbTopic.AlterTopicResult) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult 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 tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult 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 tech.ydb.proto.topic.YdbTopic.AlterTopicResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult 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(tech.ydb.proto.topic.YdbTopic.AlterTopicResult 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; } /** *
     * Update topic result message that will be inside UpdateTopicResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.AlterTopicResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.AlterTopicResult) tech.ydb.proto.topic.YdbTopic.AlterTopicResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.AlterTopicResult.class, tech.ydb.proto.topic.YdbTopic.AlterTopicResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.AlterTopicResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_AlterTopicResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.AlterTopicResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResult build() { tech.ydb.proto.topic.YdbTopic.AlterTopicResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResult buildPartial() { tech.ydb.proto.topic.YdbTopic.AlterTopicResult result = new tech.ydb.proto.topic.YdbTopic.AlterTopicResult(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.AlterTopicResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.AlterTopicResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.AlterTopicResult other) { if (other == tech.ydb.proto.topic.YdbTopic.AlterTopicResult.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.AlterTopicResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.AlterTopicResult) private static final tech.ydb.proto.topic.YdbTopic.AlterTopicResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.AlterTopicResult(); } public static tech.ydb.proto.topic.YdbTopic.AlterTopicResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlterTopicResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.AlterTopicResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DropTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DropTopicRequest) 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. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); } /** *
   * Drop topic request sent from client to server.
   * 
* * Protobuf type {@code Ydb.Topic.DropTopicRequest} */ public static final class DropTopicRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DropTopicRequest) DropTopicRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DropTopicRequest.newBuilder() to construct. private DropTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DropTopicRequest() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DropTopicRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicRequest.class, tech.ydb.proto.topic.YdbTopic.DropTopicRequest.Builder.class); } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int PATH_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** *
     * Topic path.
     * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
     * Topic path.
     * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DropTopicRequest)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DropTopicRequest other = (tech.ydb.proto.topic.YdbTopic.DropTopicRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getPath() .equals(other.getPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest 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 tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest 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 tech.ydb.proto.topic.YdbTopic.DropTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest 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(tech.ydb.proto.topic.YdbTopic.DropTopicRequest 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; } /** *
     * Drop topic request sent from client to server.
     * 
* * Protobuf type {@code Ydb.Topic.DropTopicRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DropTopicRequest) tech.ydb.proto.topic.YdbTopic.DropTopicRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicRequest.class, tech.ydb.proto.topic.YdbTopic.DropTopicRequest.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DropTopicRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } path_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicRequest_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicRequest getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DropTopicRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicRequest build() { tech.ydb.proto.topic.YdbTopic.DropTopicRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicRequest buildPartial() { tech.ydb.proto.topic.YdbTopic.DropTopicRequest result = new tech.ydb.proto.topic.YdbTopic.DropTopicRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DropTopicRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.path_ = path_; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DropTopicRequest) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DropTopicRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DropTopicRequest other) { if (other == tech.ydb.proto.topic.YdbTopic.DropTopicRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private java.lang.Object path_ = ""; /** *
       * Topic path.
       * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Topic path.
       * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000002; 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.Topic.DropTopicRequest) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DropTopicRequest) private static final tech.ydb.proto.topic.YdbTopic.DropTopicRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DropTopicRequest(); } public static tech.ydb.proto.topic.YdbTopic.DropTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DropTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DropTopicResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DropTopicResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ boolean hasOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** *
   * Drop topic response sent from server to client.
   * If topic not exists then response status will be "SCHEME_ERROR".
   * 
* * Protobuf type {@code Ydb.Topic.DropTopicResponse} */ public static final class DropTopicResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DropTopicResponse) DropTopicResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DropTopicResponse.newBuilder() to construct. private DropTopicResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DropTopicResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DropTopicResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicResponse.class, tech.ydb.proto.topic.YdbTopic.DropTopicResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** *
     * Result of request will be inside operation.
     * 
* * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DropTopicResponse)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DropTopicResponse other = (tech.ydb.proto.topic.YdbTopic.DropTopicResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse 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 tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse 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 tech.ydb.proto.topic.YdbTopic.DropTopicResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse 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(tech.ydb.proto.topic.YdbTopic.DropTopicResponse 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; } /** *
     * Drop topic response sent from server to client.
     * If topic not exists then response status will be "SCHEME_ERROR".
     * 
* * Protobuf type {@code Ydb.Topic.DropTopicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DropTopicResponse) tech.ydb.proto.topic.YdbTopic.DropTopicResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicResponse.class, tech.ydb.proto.topic.YdbTopic.DropTopicResponse.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DropTopicResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResponse_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResponse getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DropTopicResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResponse build() { tech.ydb.proto.topic.YdbTopic.DropTopicResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResponse buildPartial() { tech.ydb.proto.topic.YdbTopic.DropTopicResponse result = new tech.ydb.proto.topic.YdbTopic.DropTopicResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.topic.YdbTopic.DropTopicResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 tech.ydb.proto.topic.YdbTopic.DropTopicResponse) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DropTopicResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DropTopicResponse other) { if (other == tech.ydb.proto.topic.YdbTopic.DropTopicResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** *
       * Result of request will be inside operation.
       * 
* * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Topic.DropTopicResponse) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DropTopicResponse) private static final tech.ydb.proto.topic.YdbTopic.DropTopicResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DropTopicResponse(); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DropTopicResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DropTopicResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Topic.DropTopicResult) com.google.protobuf.MessageOrBuilder { } /** *
   * Drop topic result message that will be inside DropTopicResponse.operation.
   * 
* * Protobuf type {@code Ydb.Topic.DropTopicResult} */ public static final class DropTopicResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Topic.DropTopicResult) DropTopicResultOrBuilder { private static final long serialVersionUID = 0L; // Use DropTopicResult.newBuilder() to construct. private DropTopicResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DropTopicResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DropTopicResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicResult.class, tech.ydb.proto.topic.YdbTopic.DropTopicResult.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.topic.YdbTopic.DropTopicResult)) { return super.equals(obj); } tech.ydb.proto.topic.YdbTopic.DropTopicResult other = (tech.ydb.proto.topic.YdbTopic.DropTopicResult) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult 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 tech.ydb.proto.topic.YdbTopic.DropTopicResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult 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 tech.ydb.proto.topic.YdbTopic.DropTopicResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult 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(tech.ydb.proto.topic.YdbTopic.DropTopicResult 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; } /** *
     * Drop topic result message that will be inside DropTopicResponse.operation.
     * 
* * Protobuf type {@code Ydb.Topic.DropTopicResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Topic.DropTopicResult) tech.ydb.proto.topic.YdbTopic.DropTopicResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.topic.YdbTopic.DropTopicResult.class, tech.ydb.proto.topic.YdbTopic.DropTopicResult.Builder.class); } // Construct using tech.ydb.proto.topic.YdbTopic.DropTopicResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.topic.YdbTopic.internal_static_Ydb_Topic_DropTopicResult_descriptor; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResult getDefaultInstanceForType() { return tech.ydb.proto.topic.YdbTopic.DropTopicResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResult build() { tech.ydb.proto.topic.YdbTopic.DropTopicResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResult buildPartial() { tech.ydb.proto.topic.YdbTopic.DropTopicResult result = new tech.ydb.proto.topic.YdbTopic.DropTopicResult(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.topic.YdbTopic.DropTopicResult) { return mergeFrom((tech.ydb.proto.topic.YdbTopic.DropTopicResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.topic.YdbTopic.DropTopicResult other) { if (other == tech.ydb.proto.topic.YdbTopic.DropTopicResult.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Topic.DropTopicResult) } // @@protoc_insertion_point(class_scope:Ydb.Topic.DropTopicResult) private static final tech.ydb.proto.topic.YdbTopic.DropTopicResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.topic.YdbTopic.DropTopicResult(); } public static tech.ydb.proto.topic.YdbTopic.DropTopicResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DropTopicResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.topic.YdbTopic.DropTopicResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_SupportedCodecs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_SupportedCodecs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_OffsetsRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_OffsetsRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateTokenRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateTokenRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateTokenResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateTokenResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_PartitionWithGeneration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_PartitionWithGeneration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_MetadataItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_MetadataItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_FromClient_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_FromServer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_FromClient_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_FromServer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_InitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_InitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_TransactionIdentity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_TransactionIdentity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CommitOffsetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CommitOffsetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CommitOffsetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CommitOffsetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CommitOffsetResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CommitOffsetResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_MultipleWindowsStat_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_MultipleWindowsStat_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_Consumer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_Consumer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_Consumer_AttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_Consumer_AttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_Consumer_ConsumerStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterConsumer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterConsumer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_PartitioningSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_PartitioningSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterPartitioningSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CreateTopicRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CreateTopicRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CreateTopicResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CreateTopicResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_CreateTopicResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_CreateTopicResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_PartitionLocation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_PartitionLocation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribePartitionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribePartitionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribePartitionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribePartitionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribePartitionResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribePartitionResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeConsumerRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeConsumerResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeConsumerResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeConsumerResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_PartitionStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_PartitionStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterTopicRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterTopicRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterTopicResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterTopicResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_AlterTopicResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_AlterTopicResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DropTopicRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DropTopicRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DropTopicResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DropTopicResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Topic_DropTopicResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Topic_DropTopicResult_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\026protos/ydb_topic.proto\022\tYdb.Topic\032\032pro" + "tos/ydb_operation.proto\032\027protos/ydb_sche" + "me.proto\032\035protos/ydb_status_codes.proto\032" + "\036protos/ydb_issue_message.proto\032\"protos/" + "annotations/sensitive.proto\032#protos/anno" + "tations/validation.proto\032\036google/protobu" + "f/duration.proto\032\037google/protobuf/timest" + "amp.proto\"7\n\017SupportedCodecs\022$\n\006codecs\030\001" + " \003(\005B\024\232\346*\002\030d\262\346*\n[1; 19999]\"*\n\014OffsetsRan" + "ge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\")\n\022Update" + "TokenRequest\022\023\n\005token\030\001 \001(\tB\004\270\346*\001\"\025\n\023Upd" + "ateTokenResponse\"C\n\027PartitionWithGenerat" + "ion\022\024\n\014partition_id\030\001 \001(\003\022\022\n\ngeneration\030" + "\002 \001(\003\"*\n\014MetadataItem\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\014\"\264\023\n\022StreamWriteMessage\032\345\001\n\nFro" + "mClient\022A\n\014init_request\030\001 \001(\0132).Ydb.Topi" + "c.StreamWriteMessage.InitRequestH\000\022C\n\rwr" + "ite_request\030\002 \001(\0132*.Ydb.Topic.StreamWrit" + "eMessage.WriteRequestH\000\022=\n\024update_token_" + "request\030\003 \001(\0132\035.Ydb.Topic.UpdateTokenReq" + "uestH\000B\020\n\016client_message\032\277\002\n\nFromServer\022" + ")\n\006status\030\001 \001(\0162\031.Ydb.StatusIds.StatusCo" + "de\022\'\n\006issues\030\002 \003(\0132\027.Ydb.Issue.IssueMess" + "age\022C\n\rinit_response\030\003 \001(\0132*.Ydb.Topic.S" + "treamWriteMessage.InitResponseH\000\022E\n\016writ" + "e_response\030\004 \001(\0132+.Ydb.Topic.StreamWrite" + "Message.WriteResponseH\000\022?\n\025update_token_" + "response\030\005 \001(\0132\036.Ydb.Topic.UpdateTokenRe" + "sponseH\000B\020\n\016server_message\032\376\002\n\013InitReque" + "st\022\014\n\004path\030\001 \001(\t\022\034\n\013producer_id\030\002 \001(\tB\007\242" + "\346*\003\030\200\020\022[\n\022write_session_meta\030\003 \003(\0132?.Ydb" + ".Topic.StreamWriteMessage.InitRequest.Wr" + "iteSessionMetaEntry\022#\n\020message_group_id\030" + "\004 \001(\tB\007\242\346*\003\030\200\020H\000\022\026\n\014partition_id\030\005 \001(\003H\000" + "\022G\n\031partition_with_generation\030\007 \001(\0132\".Yd" + "b.Topic.PartitionWithGenerationH\000\022\027\n\017get" + "_last_seq_no\030\006 \001(\010\0327\n\025WriteSessionMetaEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014p" + "artitioning\032\203\001\n\014InitResponse\022\023\n\013last_seq" + "_no\030\001 \001(\003\022\022\n\nsession_id\030\002 \001(\t\022\024\n\014partiti" + "on_id\030\003 \001(\003\0224\n\020supported_codecs\030\004 \001(\0132\032." + "Ydb.Topic.SupportedCodecs\032\350\003\n\014WriteReque" + "st\022H\n\010messages\030\001 \003(\01326.Ydb.Topic.StreamW" + "riteMessage.WriteRequest.MessageData\022\r\n\005" + "codec\030\002 \001(\005\022/\n\002tx\030\003 \001(\0132\036.Ydb.Topic.Tran" + "sactionIdentityH\000\210\001\001\032\306\002\n\013MessageData\022\016\n\006" + "seq_no\030\001 \001(\003\022.\n\ncreated_at\030\002 \001(\0132\032.googl" + "e.protobuf.Timestamp\022\014\n\004data\030\003 \001(\014\022\031\n\021un" + "compressed_size\030\004 \001(\003\022#\n\020message_group_i" + "d\030\005 \001(\tB\007\242\346*\003\030\200\020H\000\022\026\n\014partition_id\030\006 \001(\003" + "H\000\022G\n\031partition_with_generation\030\010 \001(\0132\"." + "Ydb.Topic.PartitionWithGenerationH\000\0228\n\016m" + "etadata_items\030\007 \003(\0132\027.Ydb.Topic.Metadata" + "ItemB\007\232\346*\003\030\350\007B\016\n\014partitioningB\005\n\003_tx\032\201\007\n" + "\rWriteResponse\022B\n\004acks\030\001 \003(\01324.Ydb.Topic" + ".StreamWriteMessage.WriteResponse.WriteA" + "ck\022\024\n\014partition_id\030\002 \001(\003\022U\n\020write_statis" + "tics\030\003 \001(\0132;.Ydb.Topic.StreamWriteMessag" + "e.WriteResponse.WriteStatistics\032\216\003\n\010Writ" + "eAck\022\016\n\006seq_no\030\001 \001(\003\022O\n\007written\030\002 \001(\0132<." + "Ydb.Topic.StreamWriteMessage.WriteRespon" + "se.WriteAck.WrittenH\000\022O\n\007skipped\030\003 \001(\0132<" + ".Ydb.Topic.StreamWriteMessage.WriteRespo" + "nse.WriteAck.SkippedH\000\032\031\n\007Written\022\016\n\006off" + "set\030\001 \001(\003\032\234\001\n\007Skipped\022S\n\006reason\030\001 \001(\0162C." + "Ydb.Topic.StreamWriteMessage.WriteRespon" + "se.WriteAck.Skipped.Reason\"<\n\006Reason\022\026\n\022" + "REASON_UNSPECIFIED\020\000\022\032\n\026REASON_ALREADY_W" + "RITTEN\020\001B\026\n\024message_write_status\032\255\002\n\017Wri" + "teStatistics\0222\n\017persisting_time\030\001 \001(\0132\031." + "google.protobuf.Duration\0226\n\023min_queue_wa" + "it_time\030\002 \001(\0132\031.google.protobuf.Duration" + "\0226\n\023max_queue_wait_time\030\003 \001(\0132\031.google.p" + "rotobuf.Duration\022<\n\031partition_quota_wait" + "_time\030\004 \001(\0132\031.google.protobuf.Duration\0228" + "\n\025topic_quota_wait_time\030\005 \001(\0132\031.google.p" + "rotobuf.Duration\"\264!\n\021StreamReadMessage\032T" + "\n\020PartitionSession\022\034\n\024partition_session_" + "id\030\001 \001(\003\022\014\n\004path\030\002 \001(\t\022\024\n\014partition_id\030\003" + " \001(\003\032\261\005\n\nFromClient\022@\n\014init_request\030\001 \001(" + "\0132(.Ydb.Topic.StreamReadMessage.InitRequ" + "estH\000\022@\n\014read_request\030\002 \001(\0132(.Ydb.Topic." + "StreamReadMessage.ReadRequestH\000\022Q\n\025commi" + "t_offset_request\030\003 \001(\01320.Ydb.Topic.Strea" + "mReadMessage.CommitOffsetRequestH\000\022f\n pa" + "rtition_session_status_request\030\004 \001(\0132:.Y" + "db.Topic.StreamReadMessage.PartitionSess" + "ionStatusRequestH\000\022=\n\024update_token_reque" + "st\030\005 \001(\0132\035.Ydb.Topic.UpdateTokenRequestH" + "\000\022E\n\017direct_read_ack\030\010 \001(\0132*.Ydb.Topic.S" + "treamReadMessage.DirectReadAckH\000\022f\n star" + "t_partition_session_response\030\006 \001(\0132:.Ydb" + ".Topic.StreamReadMessage.StartPartitionS" + "essionResponseH\000\022d\n\037stop_partition_sessi" + "on_response\030\007 \001(\01329.Ydb.Topic.StreamRead" + "Message.StopPartitionSessionResponseH\000B\020" + "\n\016client_message\032\235\006\n\nFromServer\022)\n\006statu" + "s\030\001 \001(\0162\031.Ydb.StatusIds.StatusCode\022\'\n\006is" + "sues\030\002 \003(\0132\027.Ydb.Issue.IssueMessage\022B\n\ri" + "nit_response\030\003 \001(\0132).Ydb.Topic.StreamRea" + "dMessage.InitResponseH\000\022B\n\rread_response" + "\030\004 \001(\0132).Ydb.Topic.StreamReadMessage.Rea" + "dResponseH\000\022S\n\026commit_offset_response\030\005 " + "\001(\01321.Ydb.Topic.StreamReadMessage.Commit" + "OffsetResponseH\000\022h\n!partition_session_st" + "atus_response\030\006 \001(\0132;.Ydb.Topic.StreamRe" + "adMessage.PartitionSessionStatusResponse" + "H\000\022?\n\025update_token_response\030\007 \001(\0132\036.Ydb." + "Topic.UpdateTokenResponseH\000\022d\n\037start_par" + "tition_session_request\030\010 \001(\01329.Ydb.Topic" + ".StreamReadMessage.StartPartitionSession" + "RequestH\000\022b\n\036stop_partition_session_requ" + "est\030\t \001(\01328.Ydb.Topic.StreamReadMessage." + "StopPartitionSessionRequestH\000\022W\n\030update_" + "partition_session\030\n \001(\01323.Ydb.Topic.Stre" + "amReadMessage.UpdatePartitionSessionH\000B\020" + "\n\016server_message\032\271\002\n\013InitRequest\022X\n\024topi" + "cs_read_settings\030\001 \003(\0132:.Ydb.Topic.Strea" + "mReadMessage.InitRequest.TopicReadSettin" + "gs\022\020\n\010consumer\030\002 \001(\t\022\023\n\013reader_name\030\003 \001(" + "\t\022\023\n\013direct_read\030\004 \001(\010\032\223\001\n\021TopicReadSett" + "ings\022\014\n\004path\030\001 \001(\t\022\025\n\rpartition_ids\030\002 \003(" + "\003\022*\n\007max_lag\030\003 \001(\0132\031.google.protobuf.Dur" + "ation\022-\n\tread_from\030\004 \001(\0132\032.google.protob" + "uf.Timestamp\032\"\n\014InitResponse\022\022\n\nsession_" + "id\030\001 \001(\t\032!\n\013ReadRequest\022\022\n\nbytes_size\030\001 " + "\001(\003\032\221\006\n\014ReadResponse\022O\n\016partition_data\030\001" + " \003(\01327.Ydb.Topic.StreamReadMessage.ReadR" + "esponse.PartitionData\022\022\n\nbytes_size\030\002 \001(" + "\003\032\332\001\n\013MessageData\022\016\n\006offset\030\001 \001(\003\022\016\n\006seq" + "_no\030\002 \001(\003\022.\n\ncreated_at\030\003 \001(\0132\032.google.p" + "rotobuf.Timestamp\022\014\n\004data\030\005 \001(\014\022\031\n\021uncom" + "pressed_size\030\006 \001(\003\022!\n\020message_group_id\030\007" + " \001(\tB\007\242\346*\003\030\200\020\022/\n\016metadata_items\030\010 \003(\0132\027." + "Ydb.Topic.MetadataItem\032\315\002\n\005Batch\022K\n\014mess" + "age_data\030\001 \003(\01325.Ydb.Topic.StreamReadMes" + "sage.ReadResponse.MessageData\022\034\n\013produce" + "r_id\030\002 \001(\tB\007\242\346*\003\030\200\020\022a\n\022write_session_met" + "a\030\003 \003(\0132E.Ydb.Topic.StreamReadMessage.Re" + "adResponse.Batch.WriteSessionMetaEntry\022\r" + "\n\005codec\030\004 \001(\005\022.\n\nwritten_at\030\005 \001(\0132\032.goog" + "le.protobuf.Timestamp\0327\n\025WriteSessionMet" + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032o" + "\n\rPartitionData\022\034\n\024partition_session_id\030" + "\001 \001(\003\022@\n\007batches\030\002 \003(\0132/.Ydb.Topic.Strea" + "mReadMessage.ReadResponse.Batch\032\326\001\n\023Comm" + "itOffsetRequest\022^\n\016commit_offsets\030\001 \003(\0132" + "F.Ydb.Topic.StreamReadMessage.CommitOffs" + "etRequest.PartitionCommitOffset\032_\n\025Parti" + "tionCommitOffset\022\034\n\024partition_session_id" + "\030\001 \001(\003\022(\n\007offsets\030\002 \003(\0132\027.Ydb.Topic.Offs" + "etsRange\032\334\001\n\024CommitOffsetResponse\022p\n\034par" + "titions_committed_offsets\030\001 \003(\0132J.Ydb.To" + "pic.StreamReadMessage.CommitOffsetRespon" + "se.PartitionCommittedOffset\032R\n\030Partition" + "CommittedOffset\022\034\n\024partition_session_id\030" + "\001 \001(\003\022\030\n\020committed_offset\030\002 \001(\003\032=\n\035Parti" + "tionSessionStatusRequest\022\034\n\024partition_se" + "ssion_id\030\001 \001(\003\032\313\001\n\036PartitionSessionStatu" + "sResponse\022\034\n\024partition_session_id\030\001 \001(\003\022" + "2\n\021partition_offsets\030\002 \001(\0132\027.Ydb.Topic.O" + "ffsetsRange\022\030\n\020committed_offset\030\003 \001(\003\022=\n" + "\031write_time_high_watermark\030\004 \001(\0132\032.googl" + "e.protobuf.Timestamp\032\360\001\n\034StartPartitionS" + "essionRequest\022H\n\021partition_session\030\001 \001(\013" + "2-.Ydb.Topic.StreamReadMessage.Partition" + "Session\022\030\n\020committed_offset\030\002 \001(\003\0222\n\021par" + "tition_offsets\030\003 \001(\0132\027.Ydb.Topic.Offsets" + "Range\0228\n\022partition_location\030\004 \001(\0132\034.Ydb." + "Topic.PartitionLocation\032\225\001\n\035StartPartiti" + "onSessionResponse\022\034\n\024partition_session_i" + "d\030\001 \001(\003\022\030\n\013read_offset\030\002 \001(\003H\000\210\001\001\022\032\n\rcom" + "mit_offset\030\003 \001(\003H\001\210\001\001B\016\n\014_read_offsetB\020\n" + "\016_commit_offset\032\204\001\n\033StopPartitionSession" + "Request\022\034\n\024partition_session_id\030\001 \001(\003\022\020\n" + "\010graceful\030\002 \001(\010\022\030\n\020committed_offset\030\003 \001(" + "\003\022\033\n\023last_direct_read_id\030\004 \001(\003\032N\n\034StopPa" + "rtitionSessionResponse\022\034\n\024partition_sess" + "ion_id\030\001 \001(\003\022\020\n\010graceful\030\002 \001(\010\032p\n\026Update" + "PartitionSession\022\034\n\024partition_session_id" + "\030\001 \001(\003\0228\n\022partition_location\030\002 \001(\0132\034.Ydb" + ".Topic.PartitionLocation\032E\n\rDirectReadAc" + "k\022\034\n\024partition_session_id\030\001 \001(\003\022\026\n\016direc" + "t_read_id\030\002 \001(\003\"\235\n\n\027StreamDirectReadMess" + "age\032\237\002\n\nFromClient\022M\n\020init_direct_read\030\001" + " \001(\01321.Ydb.Topic.StreamDirectReadMessage" + ".InitDirectReadH\000\022q\n#start_direct_read_p" + "artition_session\030\002 \001(\0132B.Ydb.Topic.Strea" + "mDirectReadMessage.StartDirectReadPartit" + "ionSessionH\000\022=\n\024update_token_request\030\003 \001" + "(\0132\035.Ydb.Topic.UpdateTokenRequestH\000B\020\n\016c" + "lient_message\032\373\002\n\nFromServer\022)\n\006status\030\001" + " \001(\0162\031.Ydb.StatusIds.StatusCode\022\'\n\006issue" + "s\030\002 \003(\0132\027.Ydb.Issue.IssueMessage\022o\n\"stop" + "_direct_read_partition_session\030\003 \001(\0132A.Y" + "db.Topic.StreamDirectReadMessage.StopDir" + "ectReadPartitionSessionH\000\022U\n\024direct_read" + "_response\030\004 \001(\01325.Ydb.Topic.StreamDirect" + "ReadMessage.DirectReadResponseH\000\022?\n\025upda" + "te_token_response\030\005 \001(\0132\036.Ydb.Topic.Upda" + "teTokenResponseH\000B\020\n\016server_message\032\274\001\n\016" + "InitDirectRead\022\022\n\nsession_id\030\001 \001(\t\022a\n\024to" + "pics_read_settings\030\002 \003(\0132C.Ydb.Topic.Str" + "eamDirectReadMessage.InitDirectRead.Topi" + "cReadSettings\022\020\n\010consumer\030\003 \001(\t\032!\n\021Topic" + "ReadSettings\022\014\n\004path\030\001 \001(\t\032p\n\037StartDirec" + "tReadPartitionSession\022\034\n\024partition_sessi" + "on_id\030\001 \001(\003\022\033\n\023last_direct_read_id\030\002 \001(\003" + "\022\022\n\ngeneration\030\003 \001(\003\032\222\001\n\036StopDirectReadP" + "artitionSession\022)\n\006status\030\001 \001(\0162\031.Ydb.St" + "atusIds.StatusCode\022\'\n\006issues\030\002 \003(\0132\027.Ydb" + ".Issue.IssueMessage\022\034\n\024partition_session" + "_id\030\003 \001(\003\032\233\001\n\022DirectReadResponse\022\034\n\024part" + "ition_session_id\030\001 \001(\003\022\026\n\016direct_read_id" + "\030\002 \001(\003\022O\n\016partition_data\030\003 \001(\01327.Ydb.Top" + "ic.StreamReadMessage.ReadResponse.Partit" + "ionData\"2\n\023TransactionIdentity\022\n\n\002id\030\001 \001" + "(\t\022\017\n\007session\030\002 \001(\t\"\304\003\n!UpdateOffsetsInT" + "ransactionRequest\0229\n\020operation_params\030\001 " + "\001(\0132\037.Ydb.Operations.OperationParams\022*\n\002" + "tx\030\002 \001(\0132\036.Ydb.Topic.TransactionIdentity" + "\022I\n\006topics\030\003 \003(\01329.Ydb.Topic.UpdateOffse" + "tsInTransactionRequest.TopicOffsets\022\020\n\010c" + "onsumer\030\004 \001(\t\032\332\001\n\014TopicOffsets\022\014\n\004path\030\001" + " \001(\t\022^\n\npartitions\030\002 \003(\0132J.Ydb.Topic.Upd" + "ateOffsetsInTransactionRequest.TopicOffs" + "ets.PartitionOffsets\032\\\n\020PartitionOffsets" + "\022\024\n\014partition_id\030\001 \001(\003\0222\n\021partition_offs" + "ets\030\002 \003(\0132\027.Ydb.Topic.OffsetsRange\"R\n\"Up" + "dateOffsetsInTransactionResponse\022,\n\toper" + "ation\030\001 \001(\0132\031.Ydb.Operations.Operation\"\"" + "\n UpdateOffsetsInTransactionResult\"\226\001\n\023C" + "ommitOffsetRequest\0229\n\020operation_params\030\001" + " \001(\0132\037.Ydb.Operations.OperationParams\022\014\n" + "\004path\030\002 \001(\t\022\024\n\014partition_id\030\003 \001(\003\022\020\n\010con" + "sumer\030\004 \001(\t\022\016\n\006offset\030\005 \001(\003\"D\n\024CommitOff" + "setResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Ope" + "rations.Operation\"\024\n\022CommitOffsetResult\"" + "L\n\023MultipleWindowsStat\022\022\n\nper_minute\030\001 \001" + "(\003\022\020\n\010per_hour\030\002 \001(\003\022\017\n\007per_day\030\003 \001(\003\"\263\004" + "\n\010Consumer\022\014\n\004name\030\001 \001(\t\022\021\n\timportant\030\002 " + "\001(\010\022-\n\tread_from\030\003 \001(\0132\032.google.protobuf" + ".Timestamp\0224\n\020supported_codecs\030\005 \001(\0132\032.Y" + "db.Topic.SupportedCodecs\0227\n\nattributes\030\006" + " \003(\0132#.Ydb.Topic.Consumer.AttributesEntr" + "y\0229\n\016consumer_stats\030\007 \001(\0132!.Ydb.Topic.Co" + "nsumer.ConsumerStats\0321\n\017AttributesEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\363\001\n\rCons" + "umerStats\022A\n\035min_partitions_last_read_ti" + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\0224\n\021" + "max_read_time_lag\030\002 \001(\0132\031.google.protobu" + "f.Duration\0225\n\022max_write_time_lag\030\003 \001(\0132\031" + ".google.protobuf.Duration\0222\n\nbytes_read\030" + "\004 \001(\0132\036.Ydb.Topic.MultipleWindowsStatJ\004\010" + "\004\020\005\"\277\002\n\rAlterConsumer\022\014\n\004name\030\001 \001(\t\022\032\n\rs" + "et_important\030\002 \001(\010H\000\210\001\001\0221\n\rset_read_from" + "\030\003 \001(\0132\032.google.protobuf.Timestamp\0228\n\024se" + "t_supported_codecs\030\005 \001(\0132\032.Ydb.Topic.Sup" + "portedCodecs\022G\n\020alter_attributes\030\006 \003(\0132-" + ".Ydb.Topic.AlterConsumer.AlterAttributes" + "Entry\0326\n\024AlterAttributesEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\020\n\016_set_importantJ" + "\004\010\004\020\005\"h\n\024PartitioningSettings\022\'\n\025min_act" + "ive_partitions\030\001 \001(\003B\010\262\346*\004>= 0\022\'\n\025partit" + "ion_count_limit\030\002 \001(\003B\010\262\346*\004>= 0\"\273\001\n\031Alte" + "rPartitioningSettings\0220\n\031set_min_active_" + "partitions\030\001 \001(\003B\010\262\346*\004>= 0H\000\210\001\001\0220\n\031set_p" + "artition_count_limit\030\002 \001(\003B\010\262\346*\004>= 0H\001\210\001" + "\001B\034\n\032_set_min_active_partitionsB\034\n\032_set_" + "partition_count_limit\"\366\004\n\022CreateTopicReq" + "uest\0229\n\020operation_params\030\001 \001(\0132\037.Ydb.Ope" + "rations.OperationParams\022\014\n\004path\030\002 \001(\t\022>\n" + "\025partitioning_settings\030\003 \001(\0132\037.Ydb.Topic" + ".PartitioningSettings\0223\n\020retention_perio" + "d\030\004 \001(\0132\031.google.protobuf.Duration\022&\n\024re" + "tention_storage_mb\030\005 \001(\003B\010\262\346*\004>= 0\0224\n\020su" + "pported_codecs\030\007 \001(\0132\032.Ydb.Topic.Support" + "edCodecs\0228\n&partition_write_speed_bytes_" + "per_second\030\010 \001(\003B\010\262\346*\004>= 0\022-\n\033partition_" + "write_burst_bytes\030\t \001(\003B\010\262\346*\004>= 0\022A\n\natt" + "ributes\030\n \003(\0132-.Ydb.Topic.CreateTopicReq" + "uest.AttributesEntry\022/\n\tconsumers\030\013 \003(\0132" + "\023.Ydb.Topic.ConsumerB\007\232\346*\003\030\270\027\022.\n\rmeterin" + "g_mode\030\014 \001(\0162\027.Ydb.Topic.MeteringMode\0321\n" + "\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + " \001(\t:\0028\001J\004\010\006\020\007\"C\n\023CreateTopicResponse\022,\n" + "\toperation\030\001 \001(\0132\031.Ydb.Operations.Operat" + "ion\"\023\n\021CreateTopicResult\"8\n\021PartitionLoc" + "ation\022\017\n\007node_id\030\001 \001(\005\022\022\n\ngeneration\030\002 \001" + "(\003\"\220\001\n\024DescribeTopicRequest\0229\n\020operation" + "_params\030\001 \001(\0132\037.Ydb.Operations.Operation" + "Params\022\014\n\004path\030\002 \001(\t\022\025\n\rinclude_stats\030\003 " + "\001(\010\022\030\n\020include_location\030\004 \001(\010\"E\n\025Describ" + "eTopicResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb." + "Operations.Operation\"\311\t\n\023DescribeTopicRe" + "sult\022\037\n\004self\030\001 \001(\0132\021.Ydb.Scheme.Entry\022>\n" + "\025partitioning_settings\030\002 \001(\0132\037.Ydb.Topic" + ".PartitioningSettings\022@\n\npartitions\030\003 \003(" + "\0132,.Ydb.Topic.DescribeTopicResult.Partit" + "ionInfo\0223\n\020retention_period\030\004 \001(\0132\031.goog" + "le.protobuf.Duration\022\034\n\024retention_storag" + "e_mb\030\005 \001(\003\0224\n\020supported_codecs\030\007 \001(\0132\032.Y" + "db.Topic.SupportedCodecs\022.\n&partition_wr" + "ite_speed_bytes_per_second\030\010 \001(\003\0223\n+part" + "ition_total_read_speed_bytes_per_second\030" + "\016 \001(\003\0226\n.partition_consumer_read_speed_b" + "ytes_per_second\030\017 \001(\003\022#\n\033partition_write" + "_burst_bytes\030\t \001(\003\022B\n\nattributes\030\n \003(\0132." + ".Ydb.Topic.DescribeTopicResult.Attribute" + "sEntry\022&\n\tconsumers\030\013 \003(\0132\023.Ydb.Topic.Co" + "nsumer\022.\n\rmetering_mode\030\014 \001(\0162\027.Ydb.Topi" + "c.MeteringMode\022>\n\013topic_stats\030\r \001(\0132).Yd" + "b.Topic.DescribeTopicResult.TopicStats\0321" + "\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\032\336\001\n\rPartitionInfo\022\024\n\014partition" + "_id\030\001 \001(\003\022\016\n\006active\030\002 \001(\010\022\033\n\023child_parti" + "tion_ids\030\003 \003(\003\022\034\n\024parent_partition_ids\030\004" + " \003(\003\0222\n\017partition_stats\030\005 \001(\0132\031.Ydb.Topi" + "c.PartitionStats\0228\n\022partition_location\030\006" + " \001(\0132\034.Ydb.Topic.PartitionLocation\032\315\001\n\nT" + "opicStats\022\030\n\020store_size_bytes\030\001 \001(\003\0227\n\023m" + "in_last_write_time\030\002 \001(\0132\032.google.protob" + "uf.Timestamp\0225\n\022max_write_time_lag\030\003 \001(\013" + "2\031.google.protobuf.Duration\0225\n\rbytes_wri" + "tten\030\004 \001(\0132\036.Ydb.Topic.MultipleWindowsSt" + "atJ\004\010\006\020\007\"\252\001\n\030DescribePartitionRequest\0229\n" + "\020operation_params\030\001 \001(\0132\037.Ydb.Operations" + ".OperationParams\022\014\n\004path\030\002 \001(\t\022\024\n\014partit" + "ion_id\030\003 \001(\003\022\025\n\rinclude_stats\030\004 \001(\010\022\030\n\020i" + "nclude_location\030\005 \001(\010\"I\n\031DescribePartiti" + "onResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Oper" + "ations.Operation\"Z\n\027DescribePartitionRes" + "ult\022?\n\tpartition\030\001 \001(\0132,.Ydb.Topic.Descr" + "ibeTopicResult.PartitionInfo\"\245\001\n\027Describ" + "eConsumerRequest\0229\n\020operation_params\030\001 \001" + "(\0132\037.Ydb.Operations.OperationParams\022\014\n\004p" + "ath\030\002 \001(\t\022\020\n\010consumer\030\003 \001(\t\022\025\n\rinclude_s" + "tats\030\004 \001(\010\022\030\n\020include_location\030\005 \001(\010\"H\n\030" + "DescribeConsumerResponse\022,\n\toperation\030\001 " + "\001(\0132\031.Ydb.Operations.Operation\"\230\007\n\026Descr" + "ibeConsumerResult\022\037\n\004self\030\001 \001(\0132\021.Ydb.Sc" + "heme.Entry\022%\n\010consumer\030\002 \001(\0132\023.Ydb.Topic" + ".Consumer\022C\n\npartitions\030\003 \003(\0132/.Ydb.Topi" + "c.DescribeConsumerResult.PartitionInfo\032\272" + "\002\n\rPartitionInfo\022\024\n\014partition_id\030\001 \001(\003\022\016" + "\n\006active\030\002 \001(\010\022\033\n\023child_partition_ids\030\003 " + "\003(\003\022\034\n\024parent_partition_ids\030\004 \003(\003\0222\n\017par" + "tition_stats\030\005 \001(\0132\031.Ydb.Topic.Partition" + "Stats\022Z\n\030partition_consumer_stats\030\006 \001(\0132" + "8.Ydb.Topic.DescribeConsumerResult.Parti" + "tionConsumerStats\0228\n\022partition_location\030" + "\007 \001(\0132\034.Ydb.Topic.PartitionLocation\032\263\003\n\026" + "PartitionConsumerStats\022\030\n\020last_read_offs" + "et\030\001 \001(\003\022\030\n\020committed_offset\030\002 \001(\003\022\027\n\017re" + "ad_session_id\030\003 \001(\t\022F\n\"partition_read_se" + "ssion_create_time\030\004 \001(\0132\032.google.protobu" + "f.Timestamp\0222\n\016last_read_time\030\005 \001(\0132\032.go" + "ogle.protobuf.Timestamp\0224\n\021max_read_time" + "_lag\030\006 \001(\0132\031.google.protobuf.Duration\0225\n" + "\022max_write_time_lag\030\007 \001(\0132\031.google.proto" + "buf.Duration\0222\n\nbytes_read\030\010 \001(\0132\036.Ydb.T" + "opic.MultipleWindowsStat\022\023\n\013reader_name\030" + "\013 \001(\t\022\032\n\022connection_node_id\030\014 \001(\005\"\240\002\n\016Pa" + "rtitionStats\0222\n\021partition_offsets\030\001 \001(\0132" + "\027.Ydb.Topic.OffsetsRange\022\030\n\020store_size_b" + "ytes\030\002 \001(\003\0223\n\017last_write_time\030\003 \001(\0132\032.go" + "ogle.protobuf.Timestamp\0225\n\022max_write_tim" + "e_lag\030\004 \001(\0132\031.google.protobuf.Duration\0225" + "\n\rbytes_written\030\005 \001(\0132\036.Ydb.Topic.Multip" + "leWindowsStat\022\035\n\021partition_node_id\030\010 \001(\005" + "B\002\030\001\"\207\007\n\021AlterTopicRequest\0229\n\020operation_" + "params\030\001 \001(\0132\037.Ydb.Operations.OperationP" + "arams\022\014\n\004path\030\002 \001(\t\022I\n\033alter_partitionin" + "g_settings\030\003 \001(\0132$.Ydb.Topic.AlterPartit" + "ioningSettings\0227\n\024set_retention_period\030\004" + " \001(\0132\031.google.protobuf.Duration\022/\n\030set_r" + "etention_storage_mb\030\005 \001(\003B\010\262\346*\004>= 0H\000\210\001\001" + "\0228\n\024set_supported_codecs\030\007 \001(\0132\032.Ydb.Top" + "ic.SupportedCodecs\022A\n*set_partition_writ" + "e_speed_bytes_per_second\030\010 \001(\003B\010\262\346*\004>= 0" + "H\001\210\001\001\0226\n\037set_partition_write_burst_bytes" + "\030\t \001(\003B\010\262\346*\004>= 0H\002\210\001\001\022K\n\020alter_attribute" + "s\030\n \003(\01321.Ydb.Topic.AlterTopicRequest.Al" + "terAttributesEntry\0223\n\radd_consumers\030\013 \003(" + "\0132\023.Ydb.Topic.ConsumerB\007\232\346*\003\030\270\027\022\037\n\016drop_" + "consumers\030\014 \003(\tB\007\232\346*\003\030\270\027\022:\n\017alter_consum" + "ers\030\r \003(\0132\030.Ydb.Topic.AlterConsumerB\007\232\346*" + "\003\030\270\027\0222\n\021set_metering_mode\030\016 \001(\0162\027.Ydb.To" + "pic.MeteringMode\0326\n\024AlterAttributesEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\033\n\031_set" + "_retention_storage_mbB-\n+_set_partition_" + "write_speed_bytes_per_secondB\"\n _set_par" + "tition_write_burst_bytesJ\004\010\006\020\007\"B\n\022AlterT" + "opicResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Op" + "erations.Operation\"\022\n\020AlterTopicResult\"[" + "\n\020DropTopicRequest\0229\n\020operation_params\030\001" + " \001(\0132\037.Ydb.Operations.OperationParams\022\014\n" + "\004path\030\002 \001(\t\"A\n\021DropTopicResponse\022,\n\toper" + "ation\030\001 \001(\0132\031.Ydb.Operations.Operation\"\021" + "\n\017DropTopicResult*\203\001\n\005Codec\022\025\n\021CODEC_UNS", "PECIFIED\020\000\022\r\n\tCODEC_RAW\020\001\022\016\n\nCODEC_GZIP\020" + "\002\022\016\n\nCODEC_LZOP\020\003\022\016\n\nCODEC_ZSTD\020\004\022\021\n\014COD" + "EC_CUSTOM\020\220N\"\005\010\005\020\217N\"\n\010\240\234\001\020\377\377\377\377\007*s\n\014Meter" + "ingMode\022\035\n\031METERING_MODE_UNSPECIFIED\020\000\022#" + "\n\037METERING_MODE_RESERVED_CAPACITY\020\001\022\037\n\033M" + "ETERING_MODE_REQUEST_UNITS\020\002BS\n\024tech.ydb" + ".proto.topicZ8github.com/ydb-platform/yd" + "b-go-genproto/protos/Ydb_Topic\370\001\001b\006proto" + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { tech.ydb.proto.OperationProtos.getDescriptor(), tech.ydb.proto.scheme.SchemeOperationProtos.getDescriptor(), tech.ydb.proto.StatusCodesProtos.getDescriptor(), tech.ydb.proto.YdbIssueMessage.getDescriptor(), tech.ydb.proto.Sensitive.getDescriptor(), tech.ydb.proto.Validation.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_Ydb_Topic_SupportedCodecs_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Ydb_Topic_SupportedCodecs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_SupportedCodecs_descriptor, new java.lang.String[] { "Codecs", }); internal_static_Ydb_Topic_OffsetsRange_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Ydb_Topic_OffsetsRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_OffsetsRange_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_Ydb_Topic_UpdateTokenRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Ydb_Topic_UpdateTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateTokenRequest_descriptor, new java.lang.String[] { "Token", }); internal_static_Ydb_Topic_UpdateTokenResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Ydb_Topic_UpdateTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateTokenResponse_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_PartitionWithGeneration_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Ydb_Topic_PartitionWithGeneration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_PartitionWithGeneration_descriptor, new java.lang.String[] { "PartitionId", "Generation", }); internal_static_Ydb_Topic_MetadataItem_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_Ydb_Topic_MetadataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_MetadataItem_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_StreamWriteMessage_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Ydb_Topic_StreamWriteMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamWriteMessage_FromClient_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_FromClient_descriptor, new java.lang.String[] { "InitRequest", "WriteRequest", "UpdateTokenRequest", "ClientMessage", }); internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamWriteMessage_FromServer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_FromServer_descriptor, new java.lang.String[] { "Status", "Issues", "InitResponse", "WriteResponse", "UpdateTokenResponse", "ServerMessage", }); internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(2); internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor, new java.lang.String[] { "Path", "ProducerId", "WriteSessionMeta", "MessageGroupId", "PartitionId", "PartitionWithGeneration", "GetLastSeqNo", "Partitioning", }); internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_InitRequest_WriteSessionMetaEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(3); internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_InitResponse_descriptor, new java.lang.String[] { "LastSeqNo", "SessionId", "PartitionId", "SupportedCodecs", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(4); internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor, new java.lang.String[] { "Messages", "Codec", "Tx", "Tx", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteRequest_MessageData_descriptor, new java.lang.String[] { "SeqNo", "CreatedAt", "Data", "UncompressedSize", "MessageGroupId", "PartitionId", "PartitionWithGeneration", "MetadataItems", "Partitioning", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_descriptor.getNestedTypes().get(5); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor, new java.lang.String[] { "Acks", "PartitionId", "WriteStatistics", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor, new java.lang.String[] { "SeqNo", "Written", "Skipped", "MessageWriteStatus", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Written_descriptor, new java.lang.String[] { "Offset", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteAck_Skipped_descriptor, new java.lang.String[] { "Reason", }); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor = internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamWriteMessage_WriteResponse_WriteStatistics_descriptor, new java.lang.String[] { "PersistingTime", "MinQueueWaitTime", "MaxQueueWaitTime", "PartitionQuotaWaitTime", "TopicQuotaWaitTime", }); internal_static_Ydb_Topic_StreamReadMessage_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_Ydb_Topic_StreamReadMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_PartitionSession_descriptor, new java.lang.String[] { "PartitionSessionId", "Path", "PartitionId", }); internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamReadMessage_FromClient_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_FromClient_descriptor, new java.lang.String[] { "InitRequest", "ReadRequest", "CommitOffsetRequest", "PartitionSessionStatusRequest", "UpdateTokenRequest", "DirectReadAck", "StartPartitionSessionResponse", "StopPartitionSessionResponse", "ClientMessage", }); internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(2); internal_static_Ydb_Topic_StreamReadMessage_FromServer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_FromServer_descriptor, new java.lang.String[] { "Status", "Issues", "InitResponse", "ReadResponse", "CommitOffsetResponse", "PartitionSessionStatusResponse", "UpdateTokenResponse", "StartPartitionSessionRequest", "StopPartitionSessionRequest", "UpdatePartitionSession", "ServerMessage", }); internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(3); internal_static_Ydb_Topic_StreamReadMessage_InitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor, new java.lang.String[] { "TopicsReadSettings", "Consumer", "ReaderName", "DirectRead", }); internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor = internal_static_Ydb_Topic_StreamReadMessage_InitRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_InitRequest_TopicReadSettings_descriptor, new java.lang.String[] { "Path", "PartitionIds", "MaxLag", "ReadFrom", }); internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(4); internal_static_Ydb_Topic_StreamReadMessage_InitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_InitResponse_descriptor, new java.lang.String[] { "SessionId", }); internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(5); internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadRequest_descriptor, new java.lang.String[] { "BytesSize", }); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(6); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor, new java.lang.String[] { "PartitionData", "BytesSize", }); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor = internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_MessageData_descriptor, new java.lang.String[] { "Offset", "SeqNo", "CreatedAt", "Data", "UncompressedSize", "MessageGroupId", "MetadataItems", }); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor = internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor, new java.lang.String[] { "MessageData", "ProducerId", "WriteSessionMeta", "Codec", "WrittenAt", }); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_descriptor = internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_Batch_WriteSessionMetaEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor = internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_descriptor.getNestedTypes().get(2); internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_ReadResponse_PartitionData_descriptor, new java.lang.String[] { "PartitionSessionId", "Batches", }); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(7); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor, new java.lang.String[] { "CommitOffsets", }); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor = internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetRequest_PartitionCommitOffset_descriptor, new java.lang.String[] { "PartitionSessionId", "Offsets", }); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(8); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor, new java.lang.String[] { "PartitionsCommittedOffsets", }); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor = internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset_descriptor, new java.lang.String[] { "PartitionSessionId", "CommittedOffset", }); internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(9); internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusRequest_descriptor, new java.lang.String[] { "PartitionSessionId", }); internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(10); internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_PartitionSessionStatusResponse_descriptor, new java.lang.String[] { "PartitionSessionId", "PartitionOffsets", "CommittedOffset", "WriteTimeHighWatermark", }); internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(11); internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionRequest_descriptor, new java.lang.String[] { "PartitionSession", "CommittedOffset", "PartitionOffsets", "PartitionLocation", }); internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(12); internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_StartPartitionSessionResponse_descriptor, new java.lang.String[] { "PartitionSessionId", "ReadOffset", "CommitOffset", "ReadOffset", "CommitOffset", }); internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(13); internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionRequest_descriptor, new java.lang.String[] { "PartitionSessionId", "Graceful", "CommittedOffset", "LastDirectReadId", }); internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(14); internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_StopPartitionSessionResponse_descriptor, new java.lang.String[] { "PartitionSessionId", "Graceful", }); internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(15); internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_UpdatePartitionSession_descriptor, new java.lang.String[] { "PartitionSessionId", "PartitionLocation", }); internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor = internal_static_Ydb_Topic_StreamReadMessage_descriptor.getNestedTypes().get(16); internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamReadMessage_DirectReadAck_descriptor, new java.lang.String[] { "PartitionSessionId", "DirectReadId", }); internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Ydb_Topic_StreamDirectReadMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_FromClient_descriptor, new java.lang.String[] { "InitDirectRead", "StartDirectReadPartitionSession", "UpdateTokenRequest", "ClientMessage", }); internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_FromServer_descriptor, new java.lang.String[] { "Status", "Issues", "StopDirectReadPartitionSession", "DirectReadResponse", "UpdateTokenResponse", "ServerMessage", }); internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(2); internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor, new java.lang.String[] { "SessionId", "TopicsReadSettings", "Consumer", }); internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_InitDirectRead_TopicReadSettings_descriptor, new java.lang.String[] { "Path", }); internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(3); internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_StartDirectReadPartitionSession_descriptor, new java.lang.String[] { "PartitionSessionId", "LastDirectReadId", "Generation", }); internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(4); internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_StopDirectReadPartitionSession_descriptor, new java.lang.String[] { "Status", "Issues", "PartitionSessionId", }); internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor = internal_static_Ydb_Topic_StreamDirectReadMessage_descriptor.getNestedTypes().get(5); internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_StreamDirectReadMessage_DirectReadResponse_descriptor, new java.lang.String[] { "PartitionSessionId", "DirectReadId", "PartitionData", }); internal_static_Ydb_Topic_TransactionIdentity_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_Ydb_Topic_TransactionIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_TransactionIdentity_descriptor, new java.lang.String[] { "Id", "Session", }); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor, new java.lang.String[] { "OperationParams", "Tx", "Topics", "Consumer", }); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor = internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor, new java.lang.String[] { "Path", "Partitions", }); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor = internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateOffsetsInTransactionRequest_TopicOffsets_PartitionOffsets_descriptor, new java.lang.String[] { "PartitionId", "PartitionOffsets", }); internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateOffsetsInTransactionResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_UpdateOffsetsInTransactionResult_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_CommitOffsetRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_Ydb_Topic_CommitOffsetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CommitOffsetRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "PartitionId", "Consumer", "Offset", }); internal_static_Ydb_Topic_CommitOffsetResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_Ydb_Topic_CommitOffsetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CommitOffsetResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_CommitOffsetResult_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_Ydb_Topic_CommitOffsetResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CommitOffsetResult_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_MultipleWindowsStat_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_Ydb_Topic_MultipleWindowsStat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_MultipleWindowsStat_descriptor, new java.lang.String[] { "PerMinute", "PerHour", "PerDay", }); internal_static_Ydb_Topic_Consumer_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_Ydb_Topic_Consumer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_Consumer_descriptor, new java.lang.String[] { "Name", "Important", "ReadFrom", "SupportedCodecs", "Attributes", "ConsumerStats", }); internal_static_Ydb_Topic_Consumer_AttributesEntry_descriptor = internal_static_Ydb_Topic_Consumer_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_Consumer_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_Consumer_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor = internal_static_Ydb_Topic_Consumer_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_Consumer_ConsumerStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_Consumer_ConsumerStats_descriptor, new java.lang.String[] { "MinPartitionsLastReadTime", "MaxReadTimeLag", "MaxWriteTimeLag", "BytesRead", }); internal_static_Ydb_Topic_AlterConsumer_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_Ydb_Topic_AlterConsumer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterConsumer_descriptor, new java.lang.String[] { "Name", "SetImportant", "SetReadFrom", "SetSupportedCodecs", "AlterAttributes", "SetImportant", }); internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_descriptor = internal_static_Ydb_Topic_AlterConsumer_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterConsumer_AlterAttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_PartitioningSettings_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_Ydb_Topic_PartitioningSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_PartitioningSettings_descriptor, new java.lang.String[] { "MinActivePartitions", "PartitionCountLimit", }); internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_Ydb_Topic_AlterPartitioningSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterPartitioningSettings_descriptor, new java.lang.String[] { "SetMinActivePartitions", "SetPartitionCountLimit", "SetMinActivePartitions", "SetPartitionCountLimit", }); internal_static_Ydb_Topic_CreateTopicRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_Ydb_Topic_CreateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CreateTopicRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "PartitioningSettings", "RetentionPeriod", "RetentionStorageMb", "SupportedCodecs", "PartitionWriteSpeedBytesPerSecond", "PartitionWriteBurstBytes", "Attributes", "Consumers", "MeteringMode", }); internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_descriptor = internal_static_Ydb_Topic_CreateTopicRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CreateTopicRequest_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_CreateTopicResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_Ydb_Topic_CreateTopicResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CreateTopicResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_CreateTopicResult_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_Ydb_Topic_CreateTopicResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_CreateTopicResult_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_PartitionLocation_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_Ydb_Topic_PartitionLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_PartitionLocation_descriptor, new java.lang.String[] { "NodeId", "Generation", }); internal_static_Ydb_Topic_DescribeTopicRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_Ydb_Topic_DescribeTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "IncludeStats", "IncludeLocation", }); internal_static_Ydb_Topic_DescribeTopicResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_Ydb_Topic_DescribeTopicResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_DescribeTopicResult_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_Ydb_Topic_DescribeTopicResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicResult_descriptor, new java.lang.String[] { "Self", "PartitioningSettings", "Partitions", "RetentionPeriod", "RetentionStorageMb", "SupportedCodecs", "PartitionWriteSpeedBytesPerSecond", "PartitionTotalReadSpeedBytesPerSecond", "PartitionConsumerReadSpeedBytesPerSecond", "PartitionWriteBurstBytes", "Attributes", "Consumers", "MeteringMode", "TopicStats", }); internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_descriptor = internal_static_Ydb_Topic_DescribeTopicResult_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicResult_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor = internal_static_Ydb_Topic_DescribeTopicResult_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicResult_PartitionInfo_descriptor, new java.lang.String[] { "PartitionId", "Active", "ChildPartitionIds", "ParentPartitionIds", "PartitionStats", "PartitionLocation", }); internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor = internal_static_Ydb_Topic_DescribeTopicResult_descriptor.getNestedTypes().get(2); internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeTopicResult_TopicStats_descriptor, new java.lang.String[] { "StoreSizeBytes", "MinLastWriteTime", "MaxWriteTimeLag", "BytesWritten", }); internal_static_Ydb_Topic_DescribePartitionRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_Ydb_Topic_DescribePartitionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribePartitionRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "PartitionId", "IncludeStats", "IncludeLocation", }); internal_static_Ydb_Topic_DescribePartitionResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_Ydb_Topic_DescribePartitionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribePartitionResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_DescribePartitionResult_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_Ydb_Topic_DescribePartitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribePartitionResult_descriptor, new java.lang.String[] { "Partition", }); internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_Ydb_Topic_DescribeConsumerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeConsumerRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "Consumer", "IncludeStats", "IncludeLocation", }); internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_Ydb_Topic_DescribeConsumerResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeConsumerResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_DescribeConsumerResult_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_Ydb_Topic_DescribeConsumerResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeConsumerResult_descriptor, new java.lang.String[] { "Self", "Consumer", "Partitions", }); internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor = internal_static_Ydb_Topic_DescribeConsumerResult_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeConsumerResult_PartitionInfo_descriptor, new java.lang.String[] { "PartitionId", "Active", "ChildPartitionIds", "ParentPartitionIds", "PartitionStats", "PartitionConsumerStats", "PartitionLocation", }); internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor = internal_static_Ydb_Topic_DescribeConsumerResult_descriptor.getNestedTypes().get(1); internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DescribeConsumerResult_PartitionConsumerStats_descriptor, new java.lang.String[] { "LastReadOffset", "CommittedOffset", "ReadSessionId", "PartitionReadSessionCreateTime", "LastReadTime", "MaxReadTimeLag", "MaxWriteTimeLag", "BytesRead", "ReaderName", "ConnectionNodeId", }); internal_static_Ydb_Topic_PartitionStats_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_Ydb_Topic_PartitionStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_PartitionStats_descriptor, new java.lang.String[] { "PartitionOffsets", "StoreSizeBytes", "LastWriteTime", "MaxWriteTimeLag", "BytesWritten", "PartitionNodeId", }); internal_static_Ydb_Topic_AlterTopicRequest_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_Ydb_Topic_AlterTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterTopicRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", "AlterPartitioningSettings", "SetRetentionPeriod", "SetRetentionStorageMb", "SetSupportedCodecs", "SetPartitionWriteSpeedBytesPerSecond", "SetPartitionWriteBurstBytes", "AlterAttributes", "AddConsumers", "DropConsumers", "AlterConsumers", "SetMeteringMode", "SetRetentionStorageMb", "SetPartitionWriteSpeedBytesPerSecond", "SetPartitionWriteBurstBytes", }); internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_descriptor = internal_static_Ydb_Topic_AlterTopicRequest_descriptor.getNestedTypes().get(0); internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterTopicRequest_AlterAttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_Ydb_Topic_AlterTopicResponse_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_Ydb_Topic_AlterTopicResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterTopicResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_AlterTopicResult_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_Ydb_Topic_AlterTopicResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_AlterTopicResult_descriptor, new java.lang.String[] { }); internal_static_Ydb_Topic_DropTopicRequest_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_Ydb_Topic_DropTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DropTopicRequest_descriptor, new java.lang.String[] { "OperationParams", "Path", }); internal_static_Ydb_Topic_DropTopicResponse_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_Ydb_Topic_DropTopicResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DropTopicResponse_descriptor, new java.lang.String[] { "Operation", }); internal_static_Ydb_Topic_DropTopicResult_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_Ydb_Topic_DropTopicResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Ydb_Topic_DropTopicResult_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(tech.ydb.proto.Validation.length); registry.add(tech.ydb.proto.Sensitive.sensitive); registry.add(tech.ydb.proto.Validation.size); registry.add(tech.ydb.proto.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); tech.ydb.proto.OperationProtos.getDescriptor(); tech.ydb.proto.scheme.SchemeOperationProtos.getDescriptor(); tech.ydb.proto.StatusCodesProtos.getDescriptor(); tech.ydb.proto.YdbIssueMessage.getDescriptor(); tech.ydb.proto.Sensitive.getDescriptor(); tech.ydb.proto.Validation.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy