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

yandex.cloud.api.mdb.kafka.v1.TopicOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/mdb/kafka/v1/topic.proto

package yandex.cloud.api.mdb.kafka.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TopicOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.Topic)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Name of the topic.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the topic.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ID of an Apache Kafka® cluster that the topic belongs to.
     * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
     * 
* * string cluster_id = 2; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * ID of an Apache Kafka® cluster that the topic belongs to.
     * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; * @return Whether the partitions field is set. */ boolean hasPartitions(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; * @return The partitions. */ com.google.protobuf.Int64Value getPartitions(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; */ com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder(); /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return Whether the replicationFactor field is set. */ boolean hasReplicationFactor(); /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return The replicationFactor. */ com.google.protobuf.Int64Value getReplicationFactor(); /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; */ com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Deprecated boolean hasTopicConfig21(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Deprecated boolean hasTopicConfig26(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ boolean hasTopicConfig28(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ boolean hasTopicConfig3(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder(); public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.TopicConfigCase getTopicConfigCase(); } /** *
   * An Kafka topic.
   * For more information, see the [Concepts -> Topics and partitions](/docs/managed-kafka/concepts/topics) section of the documentation.
   * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.Topic} */ public static final class Topic extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.Topic) TopicOrBuilder { private static final long serialVersionUID = 0L; // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Topic() { name_ = ""; clusterId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Topic(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Topic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); clusterId_ = s; break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (partitions_ != null) { subBuilder = partitions_.toBuilder(); } partitions_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(partitions_); partitions_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (replicationFactor_ != null) { subBuilder = replicationFactor_.toBuilder(); } replicationFactor_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationFactor_); replicationFactor_ = subBuilder.buildPartial(); } break; } case 42: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder subBuilder = null; if (topicConfigCase_ == 5) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 5; break; } case 50: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder subBuilder = null; if (topicConfigCase_ == 6) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 6; break; } case 58: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder subBuilder = null; if (topicConfigCase_ == 7) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 7; break; } case 66: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder subBuilder = null; if (topicConfigCase_ == 8) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 8; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.Builder.class); } private int topicConfigCase_ = 0; private java.lang.Object topicConfig_; public enum TopicConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { @java.lang.Deprecated TOPIC_CONFIG_2_1(5), @java.lang.Deprecated TOPIC_CONFIG_2_6(6), TOPIC_CONFIG_2_8(7), TOPIC_CONFIG_3(8), TOPICCONFIG_NOT_SET(0); private final int value; private TopicConfigCase(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 TopicConfigCase valueOf(int value) { return forNumber(value); } public static TopicConfigCase forNumber(int value) { switch (value) { case 5: return TOPIC_CONFIG_2_1; case 6: return TOPIC_CONFIG_2_6; case 7: return TOPIC_CONFIG_2_8; case 8: return TOPIC_CONFIG_3; case 0: return TOPICCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TopicConfigCase getTopicConfigCase() { return TopicConfigCase.forNumber( topicConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the topic.
     * 
* * 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; } } /** *
     * Name of the topic.
     * 
* * 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 CLUSTER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterId_; /** *
     * ID of an Apache Kafka® cluster that the topic belongs to.
     * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
     * 
* * string cluster_id = 2; * @return The clusterId. */ @java.lang.Override public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; 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(); clusterId_ = s; return s; } } /** *
     * ID of an Apache Kafka® cluster that the topic belongs to.
     * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ @java.lang.Override public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITIONS_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value partitions_; /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; * @return Whether the partitions field is set. */ @java.lang.Override public boolean hasPartitions() { return partitions_ != null; } /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; * @return The partitions. */ @java.lang.Override public com.google.protobuf.Int64Value getPartitions() { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder() { return getPartitions(); } public static final int REPLICATION_FACTOR_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value replicationFactor_; /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return Whether the replicationFactor field is set. */ @java.lang.Override public boolean hasReplicationFactor() { return replicationFactor_ != null; } /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return The replicationFactor. */ @java.lang.Override public com.google.protobuf.Int64Value getReplicationFactor() { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } /** *
     * Amount of data copies (replicas) for the topic in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 4; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder() { return getReplicationFactor(); } public static final int TOPIC_CONFIG_2_1_FIELD_NUMBER = 5; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig21() { return topicConfigCase_ == 5; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21() { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder() { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } public static final int TOPIC_CONFIG_2_6_FIELD_NUMBER = 6; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig26() { return topicConfigCase_ == 6; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26() { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder() { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } public static final int TOPIC_CONFIG_2_8_FIELD_NUMBER = 7; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ @java.lang.Override public boolean hasTopicConfig28() { return topicConfigCase_ == 7; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28() { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder() { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } public static final int TOPIC_CONFIG_3_FIELD_NUMBER = 8; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ @java.lang.Override public boolean hasTopicConfig3() { return topicConfigCase_ == 8; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3() { if (topicConfigCase_ == 8) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder() { if (topicConfigCase_ == 8) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); } if (partitions_ != null) { output.writeMessage(3, getPartitions()); } if (replicationFactor_ != null) { output.writeMessage(4, getReplicationFactor()); } if (topicConfigCase_ == 5) { output.writeMessage(5, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); } if (topicConfigCase_ == 6) { output.writeMessage(6, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); } if (topicConfigCase_ == 7) { output.writeMessage(7, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); } if (topicConfigCase_ == 8) { output.writeMessage(8, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); } if (partitions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPartitions()); } if (replicationFactor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getReplicationFactor()); } if (topicConfigCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); } if (topicConfigCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); } if (topicConfigCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); } if (topicConfigCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic) obj; if (!getName() .equals(other.getName())) return false; if (!getClusterId() .equals(other.getClusterId())) return false; if (hasPartitions() != other.hasPartitions()) return false; if (hasPartitions()) { if (!getPartitions() .equals(other.getPartitions())) return false; } if (hasReplicationFactor() != other.hasReplicationFactor()) return false; if (hasReplicationFactor()) { if (!getReplicationFactor() .equals(other.getReplicationFactor())) return false; } if (!getTopicConfigCase().equals(other.getTopicConfigCase())) return false; switch (topicConfigCase_) { case 5: if (!getTopicConfig21() .equals(other.getTopicConfig21())) return false; break; case 6: if (!getTopicConfig26() .equals(other.getTopicConfig26())) return false; break; case 7: if (!getTopicConfig28() .equals(other.getTopicConfig28())) return false; break; case 8: if (!getTopicConfig3() .equals(other.getTopicConfig3())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); if (hasPartitions()) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitions().hashCode(); } if (hasReplicationFactor()) { hash = (37 * hash) + REPLICATION_FACTOR_FIELD_NUMBER; hash = (53 * hash) + getReplicationFactor().hashCode(); } switch (topicConfigCase_) { case 5: hash = (37 * hash) + TOPIC_CONFIG_2_1_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig21().hashCode(); break; case 6: hash = (37 * hash) + TOPIC_CONFIG_2_6_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig26().hashCode(); break; case 7: hash = (37 * hash) + TOPIC_CONFIG_2_8_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig28().hashCode(); break; case 8: hash = (37 * hash) + TOPIC_CONFIG_3_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig3().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic 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; } /** *
     * An Kafka topic.
     * For more information, see the [Concepts -> Topics and partitions](/docs/managed-kafka/concepts/topics) section of the documentation.
     * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.Topic} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.Topic) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; clusterId_ = ""; if (partitionsBuilder_ == null) { partitions_ = null; } else { partitions_ = null; partitionsBuilder_ = null; } if (replicationFactorBuilder_ == null) { replicationFactor_ = null; } else { replicationFactor_ = null; replicationFactorBuilder_ = null; } topicConfigCase_ = 0; topicConfig_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic(this); result.name_ = name_; result.clusterId_ = clusterId_; if (partitionsBuilder_ == null) { result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } if (replicationFactorBuilder_ == null) { result.replicationFactor_ = replicationFactor_; } else { result.replicationFactor_ = replicationFactorBuilder_.build(); } if (topicConfigCase_ == 5) { if (topicConfig21Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig21Builder_.build(); } } if (topicConfigCase_ == 6) { if (topicConfig26Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig26Builder_.build(); } } if (topicConfigCase_ == 7) { if (topicConfig28Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig28Builder_.build(); } } if (topicConfigCase_ == 8) { if (topicConfig3Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig3Builder_.build(); } } result.topicConfigCase_ = topicConfigCase_; 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (other.hasPartitions()) { mergePartitions(other.getPartitions()); } if (other.hasReplicationFactor()) { mergeReplicationFactor(other.getReplicationFactor()); } switch (other.getTopicConfigCase()) { case TOPIC_CONFIG_2_1: { mergeTopicConfig21(other.getTopicConfig21()); break; } case TOPIC_CONFIG_2_6: { mergeTopicConfig26(other.getTopicConfig26()); break; } case TOPIC_CONFIG_2_8: { mergeTopicConfig28(other.getTopicConfig28()); break; } case TOPIC_CONFIG_3: { mergeTopicConfig3(other.getTopicConfig3()); break; } case TOPICCONFIG_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int topicConfigCase_ = 0; private java.lang.Object topicConfig_; public TopicConfigCase getTopicConfigCase() { return TopicConfigCase.forNumber( topicConfigCase_); } public Builder clearTopicConfig() { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the topic.
       * 
* * 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; } } /** *
       * Name of the topic.
       * 
* * 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; } } /** *
       * Name of the topic.
       * 
* * 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; onChanged(); return this; } /** *
       * Name of the topic.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the topic.
       * 
* * 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; onChanged(); return this; } private java.lang.Object clusterId_ = ""; /** *
       * ID of an Apache Kafka® cluster that the topic belongs to.
       * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
       * 
* * string cluster_id = 2; * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of an Apache Kafka® cluster that the topic belongs to.
       * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
       * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of an Apache Kafka® cluster that the topic belongs to.
       * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
       * 
* * string cluster_id = 2; * @param value The clusterId to set. * @return This builder for chaining. */ public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterId_ = value; onChanged(); return this; } /** *
       * ID of an Apache Kafka® cluster that the topic belongs to.
       * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
       * 
* * string cluster_id = 2; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * ID of an Apache Kafka® cluster that the topic belongs to.
       * To get the Apache Kafka® cluster ID, make a [ClusterService.List] request.
       * 
* * string cluster_id = 2; * @param value The bytes for clusterId to set. * @return This builder for chaining. */ public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterId_ = value; onChanged(); return this; } private com.google.protobuf.Int64Value partitions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> partitionsBuilder_; /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; * @return Whether the partitions field is set. */ public boolean hasPartitions() { return partitionsBuilder_ != null || partitions_ != null; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; * @return The partitions. */ public com.google.protobuf.Int64Value getPartitions() { if (partitionsBuilder_ == null) { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } else { return partitionsBuilder_.getMessage(); } } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public Builder setPartitions(com.google.protobuf.Int64Value value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitions_ = value; onChanged(); } else { partitionsBuilder_.setMessage(value); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public Builder setPartitions( com.google.protobuf.Int64Value.Builder builderForValue) { if (partitionsBuilder_ == null) { partitions_ = builderForValue.build(); onChanged(); } else { partitionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public Builder mergePartitions(com.google.protobuf.Int64Value value) { if (partitionsBuilder_ == null) { if (partitions_ != null) { partitions_ = com.google.protobuf.Int64Value.newBuilder(partitions_).mergeFrom(value).buildPartial(); } else { partitions_ = value; } onChanged(); } else { partitionsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = null; onChanged(); } else { partitions_ = null; partitionsBuilder_ = null; } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public com.google.protobuf.Int64Value.Builder getPartitionsBuilder() { onChanged(); return getPartitionsFieldBuilder().getBuilder(); } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ public com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilder(); } else { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getPartitions(), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } private com.google.protobuf.Int64Value replicationFactor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> replicationFactorBuilder_; /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return Whether the replicationFactor field is set. */ public boolean hasReplicationFactor() { return replicationFactorBuilder_ != null || replicationFactor_ != null; } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; * @return The replicationFactor. */ public com.google.protobuf.Int64Value getReplicationFactor() { if (replicationFactorBuilder_ == null) { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } else { return replicationFactorBuilder_.getMessage(); } } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public Builder setReplicationFactor(com.google.protobuf.Int64Value value) { if (replicationFactorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationFactor_ = value; onChanged(); } else { replicationFactorBuilder_.setMessage(value); } return this; } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public Builder setReplicationFactor( com.google.protobuf.Int64Value.Builder builderForValue) { if (replicationFactorBuilder_ == null) { replicationFactor_ = builderForValue.build(); onChanged(); } else { replicationFactorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public Builder mergeReplicationFactor(com.google.protobuf.Int64Value value) { if (replicationFactorBuilder_ == null) { if (replicationFactor_ != null) { replicationFactor_ = com.google.protobuf.Int64Value.newBuilder(replicationFactor_).mergeFrom(value).buildPartial(); } else { replicationFactor_ = value; } onChanged(); } else { replicationFactorBuilder_.mergeFrom(value); } return this; } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public Builder clearReplicationFactor() { if (replicationFactorBuilder_ == null) { replicationFactor_ = null; onChanged(); } else { replicationFactor_ = null; replicationFactorBuilder_ = null; } return this; } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public com.google.protobuf.Int64Value.Builder getReplicationFactorBuilder() { onChanged(); return getReplicationFactorFieldBuilder().getBuilder(); } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ public com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder() { if (replicationFactorBuilder_ != null) { return replicationFactorBuilder_.getMessageOrBuilder(); } else { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } } /** *
       * Amount of data copies (replicas) for the topic in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getReplicationFactorFieldBuilder() { if (replicationFactorBuilder_ == null) { replicationFactorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getReplicationFactor(), getParentForChildren(), isClean()); replicationFactor_ = null; } return replicationFactorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder> topicConfig21Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig21() { return topicConfigCase_ == 5; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21() { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } else { if (topicConfigCase_ == 5) { return topicConfig21Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig21(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 value) { if (topicConfig21Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig21Builder_.setMessage(value); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig21( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder builderForValue) { if (topicConfig21Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig21Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder mergeTopicConfig21(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 value) { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 5 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 5) { topicConfig21Builder_.mergeFrom(value); } topicConfig21Builder_.setMessage(value); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder clearTopicConfig21() { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 5) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 5) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig21Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder getTopicConfig21Builder() { return getTopicConfig21FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder() { if ((topicConfigCase_ == 5) && (topicConfig21Builder_ != null)) { return topicConfig21Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 5 [json_name = "topicConfig_2_1", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder> getTopicConfig21FieldBuilder() { if (topicConfig21Builder_ == null) { if (!(topicConfigCase_ == 5)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } topicConfig21Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 5; onChanged();; return topicConfig21Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder> topicConfig26Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig26() { return topicConfigCase_ == 6; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26() { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } else { if (topicConfigCase_ == 6) { return topicConfig26Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig26(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 value) { if (topicConfig26Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig26Builder_.setMessage(value); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig26( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder builderForValue) { if (topicConfig26Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig26Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder mergeTopicConfig26(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 value) { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 6 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 6) { topicConfig26Builder_.mergeFrom(value); } topicConfig26Builder_.setMessage(value); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder clearTopicConfig26() { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 6) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 6) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig26Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder getTopicConfig26Builder() { return getTopicConfig26FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder() { if ((topicConfigCase_ == 6) && (topicConfig26Builder_ != null)) { return topicConfig26Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 6 [json_name = "topicConfig_2_6", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder> getTopicConfig26FieldBuilder() { if (topicConfig26Builder_ == null) { if (!(topicConfigCase_ == 6)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } topicConfig26Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 6; onChanged();; return topicConfig26Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder> topicConfig28Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ @java.lang.Override public boolean hasTopicConfig28() { return topicConfigCase_ == 7; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28() { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } else { if (topicConfigCase_ == 7) { return topicConfig28Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ public Builder setTopicConfig28(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 value) { if (topicConfig28Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig28Builder_.setMessage(value); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ public Builder setTopicConfig28( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder builderForValue) { if (topicConfig28Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig28Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ public Builder mergeTopicConfig28(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 value) { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 7 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 7) { topicConfig28Builder_.mergeFrom(value); } topicConfig28Builder_.setMessage(value); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ public Builder clearTopicConfig28() { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 7) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 7) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig28Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder getTopicConfig28Builder() { return getTopicConfig28FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder() { if ((topicConfigCase_ == 7) && (topicConfig28Builder_ != null)) { return topicConfig28Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 7 [json_name = "topicConfig_2_8"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder> getTopicConfig28FieldBuilder() { if (topicConfig28Builder_ == null) { if (!(topicConfigCase_ == 7)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } topicConfig28Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 7; onChanged();; return topicConfig28Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder> topicConfig3Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ @java.lang.Override public boolean hasTopicConfig3() { return topicConfigCase_ == 8; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3() { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 8) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } else { if (topicConfigCase_ == 8) { return topicConfig3Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ public Builder setTopicConfig3(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 value) { if (topicConfig3Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig3Builder_.setMessage(value); } topicConfigCase_ = 8; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ public Builder setTopicConfig3( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder builderForValue) { if (topicConfig3Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig3Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 8; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ public Builder mergeTopicConfig3(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 value) { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 8 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 8) { topicConfig3Builder_.mergeFrom(value); } topicConfig3Builder_.setMessage(value); } topicConfigCase_ = 8; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ public Builder clearTopicConfig3() { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 8) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 8) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig3Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder getTopicConfig3Builder() { return getTopicConfig3FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder() { if ((topicConfigCase_ == 8) && (topicConfig3Builder_ != null)) { return topicConfig3Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 8) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 8 [json_name = "topicConfig_3"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder> getTopicConfig3FieldBuilder() { if (topicConfig3Builder_ == null) { if (!(topicConfigCase_ == 8)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } topicConfig3Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 8; onChanged();; return topicConfig3Builder_; } @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:yandex.cloud.mdb.kafka.v1.Topic) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.Topic) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Topic(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopicSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.TopicSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the topic.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the topic.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; * @return Whether the partitions field is set. */ boolean hasPartitions(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; * @return The partitions. */ com.google.protobuf.Int64Value getPartitions(); /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; */ com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder(); /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return Whether the replicationFactor field is set. */ boolean hasReplicationFactor(); /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return The replicationFactor. */ com.google.protobuf.Int64Value getReplicationFactor(); /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; */ com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Deprecated boolean hasTopicConfig21(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Deprecated boolean hasTopicConfig26(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ boolean hasTopicConfig28(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ boolean hasTopicConfig3(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3(); /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder(); public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.TopicConfigCase getTopicConfigCase(); } /** * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicSpec} */ public static final class TopicSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.TopicSpec) TopicSpecOrBuilder { private static final long serialVersionUID = 0L; // Use TopicSpec.newBuilder() to construct. private TopicSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicSpec() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopicSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (partitions_ != null) { subBuilder = partitions_.toBuilder(); } partitions_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(partitions_); partitions_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (replicationFactor_ != null) { subBuilder = replicationFactor_.toBuilder(); } replicationFactor_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(replicationFactor_); replicationFactor_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder subBuilder = null; if (topicConfigCase_ == 4) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 4; break; } case 42: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder subBuilder = null; if (topicConfigCase_ == 5) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 5; break; } case 50: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder subBuilder = null; if (topicConfigCase_ == 6) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 6; break; } case 58: { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder subBuilder = null; if (topicConfigCase_ == 7) { subBuilder = ((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_).toBuilder(); } topicConfig_ = input.readMessage(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); topicConfig_ = subBuilder.buildPartial(); } topicConfigCase_ = 7; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.Builder.class); } private int topicConfigCase_ = 0; private java.lang.Object topicConfig_; public enum TopicConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { @java.lang.Deprecated TOPIC_CONFIG_2_1(4), @java.lang.Deprecated TOPIC_CONFIG_2_6(5), TOPIC_CONFIG_2_8(6), TOPIC_CONFIG_3(7), TOPICCONFIG_NOT_SET(0); private final int value; private TopicConfigCase(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 TopicConfigCase valueOf(int value) { return forNumber(value); } public static TopicConfigCase forNumber(int value) { switch (value) { case 4: return TOPIC_CONFIG_2_1; case 5: return TOPIC_CONFIG_2_6; case 6: return TOPIC_CONFIG_2_8; case 7: return TOPIC_CONFIG_3; case 0: return TOPICCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TopicConfigCase getTopicConfigCase() { return TopicConfigCase.forNumber( topicConfigCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the topic.
     * 
* * 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; } } /** *
     * Name of the topic.
     * 
* * 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 PARTITIONS_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value partitions_; /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; * @return Whether the partitions field is set. */ @java.lang.Override public boolean hasPartitions() { return partitions_ != null; } /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; * @return The partitions. */ @java.lang.Override public com.google.protobuf.Int64Value getPartitions() { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } /** *
     * The number of the topic's partitions.
     * 
* * .google.protobuf.Int64Value partitions = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder() { return getPartitions(); } public static final int REPLICATION_FACTOR_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value replicationFactor_; /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return Whether the replicationFactor field is set. */ @java.lang.Override public boolean hasReplicationFactor() { return replicationFactor_ != null; } /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return The replicationFactor. */ @java.lang.Override public com.google.protobuf.Int64Value getReplicationFactor() { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } /** *
     * Amount of copies of a topic data kept in the cluster.
     * 
* * .google.protobuf.Int64Value replication_factor = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder() { return getReplicationFactor(); } public static final int TOPIC_CONFIG_2_1_FIELD_NUMBER = 4; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig21() { return topicConfigCase_ == 4; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21() { if (topicConfigCase_ == 4) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder() { if (topicConfigCase_ == 4) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } public static final int TOPIC_CONFIG_2_6_FIELD_NUMBER = 5; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig26() { return topicConfigCase_ == 5; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26() { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder() { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } public static final int TOPIC_CONFIG_2_8_FIELD_NUMBER = 6; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ @java.lang.Override public boolean hasTopicConfig28() { return topicConfigCase_ == 6; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28() { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder() { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } public static final int TOPIC_CONFIG_3_FIELD_NUMBER = 7; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ @java.lang.Override public boolean hasTopicConfig3() { return topicConfigCase_ == 7; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3() { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder() { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (partitions_ != null) { output.writeMessage(2, getPartitions()); } if (replicationFactor_ != null) { output.writeMessage(3, getReplicationFactor()); } if (topicConfigCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); } if (topicConfigCase_ == 5) { output.writeMessage(5, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); } if (topicConfigCase_ == 6) { output.writeMessage(6, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); } if (topicConfigCase_ == 7) { output.writeMessage(7, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (partitions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPartitions()); } if (replicationFactor_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReplicationFactor()); } if (topicConfigCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_); } if (topicConfigCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_); } if (topicConfigCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_); } if (topicConfigCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec) obj; if (!getName() .equals(other.getName())) return false; if (hasPartitions() != other.hasPartitions()) return false; if (hasPartitions()) { if (!getPartitions() .equals(other.getPartitions())) return false; } if (hasReplicationFactor() != other.hasReplicationFactor()) return false; if (hasReplicationFactor()) { if (!getReplicationFactor() .equals(other.getReplicationFactor())) return false; } if (!getTopicConfigCase().equals(other.getTopicConfigCase())) return false; switch (topicConfigCase_) { case 4: if (!getTopicConfig21() .equals(other.getTopicConfig21())) return false; break; case 5: if (!getTopicConfig26() .equals(other.getTopicConfig26())) return false; break; case 6: if (!getTopicConfig28() .equals(other.getTopicConfig28())) return false; break; case 7: if (!getTopicConfig3() .equals(other.getTopicConfig3())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasPartitions()) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitions().hashCode(); } if (hasReplicationFactor()) { hash = (37 * hash) + REPLICATION_FACTOR_FIELD_NUMBER; hash = (53 * hash) + getReplicationFactor().hashCode(); } switch (topicConfigCase_) { case 4: hash = (37 * hash) + TOPIC_CONFIG_2_1_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig21().hashCode(); break; case 5: hash = (37 * hash) + TOPIC_CONFIG_2_6_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig26().hashCode(); break; case 6: hash = (37 * hash) + TOPIC_CONFIG_2_8_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig28().hashCode(); break; case 7: hash = (37 * hash) + TOPIC_CONFIG_3_FIELD_NUMBER; hash = (53 * hash) + getTopicConfig3().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec 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 yandex.cloud.mdb.kafka.v1.TopicSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.TopicSpec) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (partitionsBuilder_ == null) { partitions_ = null; } else { partitions_ = null; partitionsBuilder_ = null; } if (replicationFactorBuilder_ == null) { replicationFactor_ = null; } else { replicationFactor_ = null; replicationFactorBuilder_ = null; } topicConfigCase_ = 0; topicConfig_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec(this); result.name_ = name_; if (partitionsBuilder_ == null) { result.partitions_ = partitions_; } else { result.partitions_ = partitionsBuilder_.build(); } if (replicationFactorBuilder_ == null) { result.replicationFactor_ = replicationFactor_; } else { result.replicationFactor_ = replicationFactorBuilder_.build(); } if (topicConfigCase_ == 4) { if (topicConfig21Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig21Builder_.build(); } } if (topicConfigCase_ == 5) { if (topicConfig26Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig26Builder_.build(); } } if (topicConfigCase_ == 6) { if (topicConfig28Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig28Builder_.build(); } } if (topicConfigCase_ == 7) { if (topicConfig3Builder_ == null) { result.topicConfig_ = topicConfig_; } else { result.topicConfig_ = topicConfig3Builder_.build(); } } result.topicConfigCase_ = topicConfigCase_; 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasPartitions()) { mergePartitions(other.getPartitions()); } if (other.hasReplicationFactor()) { mergeReplicationFactor(other.getReplicationFactor()); } switch (other.getTopicConfigCase()) { case TOPIC_CONFIG_2_1: { mergeTopicConfig21(other.getTopicConfig21()); break; } case TOPIC_CONFIG_2_6: { mergeTopicConfig26(other.getTopicConfig26()); break; } case TOPIC_CONFIG_2_8: { mergeTopicConfig28(other.getTopicConfig28()); break; } case TOPIC_CONFIG_3: { mergeTopicConfig3(other.getTopicConfig3()); break; } case TOPICCONFIG_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int topicConfigCase_ = 0; private java.lang.Object topicConfig_; public TopicConfigCase getTopicConfigCase() { return TopicConfigCase.forNumber( topicConfigCase_); } public Builder clearTopicConfig() { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the topic.
       * 
* * 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; } } /** *
       * Name of the topic.
       * 
* * 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; } } /** *
       * Name of the topic.
       * 
* * 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; onChanged(); return this; } /** *
       * Name of the topic.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the topic.
       * 
* * 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; onChanged(); return this; } private com.google.protobuf.Int64Value partitions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> partitionsBuilder_; /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; * @return Whether the partitions field is set. */ public boolean hasPartitions() { return partitionsBuilder_ != null || partitions_ != null; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; * @return The partitions. */ public com.google.protobuf.Int64Value getPartitions() { if (partitionsBuilder_ == null) { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } else { return partitionsBuilder_.getMessage(); } } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public Builder setPartitions(com.google.protobuf.Int64Value value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partitions_ = value; onChanged(); } else { partitionsBuilder_.setMessage(value); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public Builder setPartitions( com.google.protobuf.Int64Value.Builder builderForValue) { if (partitionsBuilder_ == null) { partitions_ = builderForValue.build(); onChanged(); } else { partitionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public Builder mergePartitions(com.google.protobuf.Int64Value value) { if (partitionsBuilder_ == null) { if (partitions_ != null) { partitions_ = com.google.protobuf.Int64Value.newBuilder(partitions_).mergeFrom(value).buildPartial(); } else { partitions_ = value; } onChanged(); } else { partitionsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public Builder clearPartitions() { if (partitionsBuilder_ == null) { partitions_ = null; onChanged(); } else { partitions_ = null; partitionsBuilder_ = null; } return this; } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public com.google.protobuf.Int64Value.Builder getPartitionsBuilder() { onChanged(); return getPartitionsFieldBuilder().getBuilder(); } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ public com.google.protobuf.Int64ValueOrBuilder getPartitionsOrBuilder() { if (partitionsBuilder_ != null) { return partitionsBuilder_.getMessageOrBuilder(); } else { return partitions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : partitions_; } } /** *
       * The number of the topic's partitions.
       * 
* * .google.protobuf.Int64Value partitions = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getPartitionsFieldBuilder() { if (partitionsBuilder_ == null) { partitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getPartitions(), getParentForChildren(), isClean()); partitions_ = null; } return partitionsBuilder_; } private com.google.protobuf.Int64Value replicationFactor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> replicationFactorBuilder_; /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return Whether the replicationFactor field is set. */ public boolean hasReplicationFactor() { return replicationFactorBuilder_ != null || replicationFactor_ != null; } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; * @return The replicationFactor. */ public com.google.protobuf.Int64Value getReplicationFactor() { if (replicationFactorBuilder_ == null) { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } else { return replicationFactorBuilder_.getMessage(); } } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public Builder setReplicationFactor(com.google.protobuf.Int64Value value) { if (replicationFactorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } replicationFactor_ = value; onChanged(); } else { replicationFactorBuilder_.setMessage(value); } return this; } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public Builder setReplicationFactor( com.google.protobuf.Int64Value.Builder builderForValue) { if (replicationFactorBuilder_ == null) { replicationFactor_ = builderForValue.build(); onChanged(); } else { replicationFactorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public Builder mergeReplicationFactor(com.google.protobuf.Int64Value value) { if (replicationFactorBuilder_ == null) { if (replicationFactor_ != null) { replicationFactor_ = com.google.protobuf.Int64Value.newBuilder(replicationFactor_).mergeFrom(value).buildPartial(); } else { replicationFactor_ = value; } onChanged(); } else { replicationFactorBuilder_.mergeFrom(value); } return this; } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public Builder clearReplicationFactor() { if (replicationFactorBuilder_ == null) { replicationFactor_ = null; onChanged(); } else { replicationFactor_ = null; replicationFactorBuilder_ = null; } return this; } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public com.google.protobuf.Int64Value.Builder getReplicationFactorBuilder() { onChanged(); return getReplicationFactorFieldBuilder().getBuilder(); } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ public com.google.protobuf.Int64ValueOrBuilder getReplicationFactorOrBuilder() { if (replicationFactorBuilder_ != null) { return replicationFactorBuilder_.getMessageOrBuilder(); } else { return replicationFactor_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replicationFactor_; } } /** *
       * Amount of copies of a topic data kept in the cluster.
       * 
* * .google.protobuf.Int64Value replication_factor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getReplicationFactorFieldBuilder() { if (replicationFactorBuilder_ == null) { replicationFactorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getReplicationFactor(), getParentForChildren(), isClean()); replicationFactor_ = null; } return replicationFactorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder> topicConfig21Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return Whether the topicConfig21 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig21() { return topicConfigCase_ == 4; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; * @deprecated * @return The topicConfig21. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getTopicConfig21() { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 4) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } else { if (topicConfigCase_ == 4) { return topicConfig21Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig21(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 value) { if (topicConfig21Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig21Builder_.setMessage(value); } topicConfigCase_ = 4; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig21( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder builderForValue) { if (topicConfig21Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig21Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 4; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder mergeTopicConfig21(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 value) { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 4 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 4) { topicConfig21Builder_.mergeFrom(value); } topicConfig21Builder_.setMessage(value); } topicConfigCase_ = 4; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public Builder clearTopicConfig21() { if (topicConfig21Builder_ == null) { if (topicConfigCase_ == 4) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 4) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig21Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder getTopicConfig21Builder() { return getTopicConfig21FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder getTopicConfig21OrBuilder() { if ((topicConfigCase_ == 4) && (topicConfig21Builder_ != null)) { return topicConfig21Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 4) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1 topic_config_2_1 = 4 [json_name = "topicConfig_2_1", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder> getTopicConfig21FieldBuilder() { if (topicConfig21Builder_ == null) { if (!(topicConfigCase_ == 4)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } topicConfig21Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 4; onChanged();; return topicConfig21Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder> topicConfig26Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return Whether the topicConfig26 field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasTopicConfig26() { return topicConfigCase_ == 5; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; * @deprecated * @return The topicConfig26. */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getTopicConfig26() { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } else { if (topicConfigCase_ == 5) { return topicConfig26Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig26(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 value) { if (topicConfig26Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig26Builder_.setMessage(value); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder setTopicConfig26( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder builderForValue) { if (topicConfig26Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig26Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder mergeTopicConfig26(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 value) { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 5 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 5) { topicConfig26Builder_.mergeFrom(value); } topicConfig26Builder_.setMessage(value); } topicConfigCase_ = 5; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public Builder clearTopicConfig26() { if (topicConfig26Builder_ == null) { if (topicConfigCase_ == 5) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 5) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig26Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder getTopicConfig26Builder() { return getTopicConfig26FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder getTopicConfig26OrBuilder() { if ((topicConfigCase_ == 5) && (topicConfig26Builder_ != null)) { return topicConfig26Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 5) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6 topic_config_2_6 = 5 [json_name = "topicConfig_2_6", deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder> getTopicConfig26FieldBuilder() { if (topicConfig26Builder_ == null) { if (!(topicConfigCase_ == 5)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } topicConfig26Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 5; onChanged();; return topicConfig26Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder> topicConfig28Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return Whether the topicConfig28 field is set. */ @java.lang.Override public boolean hasTopicConfig28() { return topicConfigCase_ == 6; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; * @return The topicConfig28. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getTopicConfig28() { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } else { if (topicConfigCase_ == 6) { return topicConfig28Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ public Builder setTopicConfig28(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 value) { if (topicConfig28Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig28Builder_.setMessage(value); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ public Builder setTopicConfig28( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder builderForValue) { if (topicConfig28Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig28Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ public Builder mergeTopicConfig28(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 value) { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 6 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 6) { topicConfig28Builder_.mergeFrom(value); } topicConfig28Builder_.setMessage(value); } topicConfigCase_ = 6; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ public Builder clearTopicConfig28() { if (topicConfig28Builder_ == null) { if (topicConfigCase_ == 6) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 6) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig28Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder getTopicConfig28Builder() { return getTopicConfig28FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder getTopicConfig28OrBuilder() { if ((topicConfigCase_ == 6) && (topicConfig28Builder_ != null)) { return topicConfig28Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 6) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8 topic_config_2_8 = 6 [json_name = "topicConfig_2_8"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder> getTopicConfig28FieldBuilder() { if (topicConfig28Builder_ == null) { if (!(topicConfigCase_ == 6)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } topicConfig28Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 6; onChanged();; return topicConfig28Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder> topicConfig3Builder_; /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return Whether the topicConfig3 field is set. */ @java.lang.Override public boolean hasTopicConfig3() { return topicConfigCase_ == 7; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; * @return The topicConfig3. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getTopicConfig3() { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } else { if (topicConfigCase_ == 7) { return topicConfig3Builder_.getMessage(); } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ public Builder setTopicConfig3(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 value) { if (topicConfig3Builder_ == null) { if (value == null) { throw new NullPointerException(); } topicConfig_ = value; onChanged(); } else { topicConfig3Builder_.setMessage(value); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ public Builder setTopicConfig3( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder builderForValue) { if (topicConfig3Builder_ == null) { topicConfig_ = builderForValue.build(); onChanged(); } else { topicConfig3Builder_.setMessage(builderForValue.build()); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ public Builder mergeTopicConfig3(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 value) { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 7 && topicConfig_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance()) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.newBuilder((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_) .mergeFrom(value).buildPartial(); } else { topicConfig_ = value; } onChanged(); } else { if (topicConfigCase_ == 7) { topicConfig3Builder_.mergeFrom(value); } topicConfig3Builder_.setMessage(value); } topicConfigCase_ = 7; return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ public Builder clearTopicConfig3() { if (topicConfig3Builder_ == null) { if (topicConfigCase_ == 7) { topicConfigCase_ = 0; topicConfig_ = null; onChanged(); } } else { if (topicConfigCase_ == 7) { topicConfigCase_ = 0; topicConfig_ = null; } topicConfig3Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder getTopicConfig3Builder() { return getTopicConfig3FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder getTopicConfig3OrBuilder() { if ((topicConfigCase_ == 7) && (topicConfig3Builder_ != null)) { return topicConfig3Builder_.getMessageOrBuilder(); } else { if (topicConfigCase_ == 7) { return (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_; } return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } } /** * .yandex.cloud.mdb.kafka.v1.TopicConfig3 topic_config_3 = 7 [json_name = "topicConfig_3"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder> getTopicConfig3FieldBuilder() { if (topicConfig3Builder_ == null) { if (!(topicConfigCase_ == 7)) { topicConfig_ = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } topicConfig3Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder>( (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) topicConfig_, getParentForChildren(), isClean()); topicConfig_ = null; } topicConfigCase_ = 7; onChanged();; return topicConfig3Builder_; } @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:yandex.cloud.mdb.kafka.v1.TopicSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.TopicSpec) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopicSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @java.lang.Deprecated public interface TopicConfig2_1OrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.TopicConfig2_1) com.google.protobuf.MessageOrBuilder { /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ int getCleanupPolicyValue(); /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy getCleanupPolicy(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ int getCompressionTypeValue(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ boolean hasDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ com.google.protobuf.Int64Value getDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ boolean hasFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ com.google.protobuf.Int64Value getFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ boolean hasFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ com.google.protobuf.Int64Value getFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ boolean hasFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ com.google.protobuf.Int64Value getFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ boolean hasMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ com.google.protobuf.Int64Value getMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ boolean hasRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ com.google.protobuf.Int64Value getRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ boolean hasRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ com.google.protobuf.Int64Value getRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ boolean hasMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ com.google.protobuf.Int64Value getMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ boolean hasMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ com.google.protobuf.Int64Value getMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ boolean hasSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ com.google.protobuf.Int64Value getSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ boolean hasPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ com.google.protobuf.BoolValue getPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder(); } /** *
   * Deprecated. Version `2.1` of Kafka not supported in Yandex Cloud.
   * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_1} */ @java.lang.Deprecated public static final class TopicConfig2_1 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_1) TopicConfig2_1OrBuilder { private static final long serialVersionUID = 0L; // Use TopicConfig2_1.newBuilder() to construct. private TopicConfig2_1(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicConfig2_1() { cleanupPolicy_ = 0; compressionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicConfig2_1(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopicConfig2_1( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); cleanupPolicy_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); compressionType_ = rawValue; break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (deleteRetentionMs_ != null) { subBuilder = deleteRetentionMs_.toBuilder(); } deleteRetentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteRetentionMs_); deleteRetentionMs_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (fileDeleteDelayMs_ != null) { subBuilder = fileDeleteDelayMs_.toBuilder(); } fileDeleteDelayMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileDeleteDelayMs_); fileDeleteDelayMs_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMessages_ != null) { subBuilder = flushMessages_.toBuilder(); } flushMessages_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMessages_); flushMessages_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMs_ != null) { subBuilder = flushMs_.toBuilder(); } flushMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMs_); flushMs_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minCompactionLagMs_ != null) { subBuilder = minCompactionLagMs_.toBuilder(); } minCompactionLagMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minCompactionLagMs_); minCompactionLagMs_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionBytes_ != null) { subBuilder = retentionBytes_.toBuilder(); } retentionBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionBytes_); retentionBytes_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionMs_ != null) { subBuilder = retentionMs_.toBuilder(); } retentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionMs_); retentionMs_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxMessageBytes_ != null) { subBuilder = maxMessageBytes_.toBuilder(); } maxMessageBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxMessageBytes_); maxMessageBytes_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minInsyncReplicas_ != null) { subBuilder = minInsyncReplicas_.toBuilder(); } minInsyncReplicas_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minInsyncReplicas_); minInsyncReplicas_ = subBuilder.buildPartial(); } break; } case 98: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (segmentBytes_ != null) { subBuilder = segmentBytes_.toBuilder(); } segmentBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(segmentBytes_); segmentBytes_ = subBuilder.buildPartial(); } break; } case 106: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (preallocate_ != null) { subBuilder = preallocate_.toBuilder(); } preallocate_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preallocate_); preallocate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy} */ public enum CleanupPolicy implements com.google.protobuf.ProtocolMessageEnum { /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ CLEANUP_POLICY_UNSPECIFIED(0), /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ CLEANUP_POLICY_DELETE(1), /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ CLEANUP_POLICY_COMPACT(2), /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ CLEANUP_POLICY_COMPACT_AND_DELETE(3), UNRECOGNIZED(-1), ; /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ public static final int CLEANUP_POLICY_UNSPECIFIED_VALUE = 0; /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ public static final int CLEANUP_POLICY_DELETE_VALUE = 1; /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ public static final int CLEANUP_POLICY_COMPACT_VALUE = 2; /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ public static final int CLEANUP_POLICY_COMPACT_AND_DELETE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CleanupPolicy 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 CleanupPolicy forNumber(int value) { switch (value) { case 0: return CLEANUP_POLICY_UNSPECIFIED; case 1: return CLEANUP_POLICY_DELETE; case 2: return CLEANUP_POLICY_COMPACT; case 3: return CLEANUP_POLICY_COMPACT_AND_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CleanupPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CleanupPolicy findValueByNumber(int number) { return CleanupPolicy.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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDescriptor().getEnumTypes().get(0); } private static final CleanupPolicy[] VALUES = values(); public static CleanupPolicy 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 CleanupPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy) } public static final int CLEANUP_POLICY_FIELD_NUMBER = 1; private int cleanupPolicy_; /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.UNRECOGNIZED : result; } public static final int COMPRESSION_TYPE_FIELD_NUMBER = 2; private int compressionType_; /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } public static final int DELETE_RETENTION_MS_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value deleteRetentionMs_; /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ @java.lang.Override public boolean hasDeleteRetentionMs() { return deleteRetentionMs_ != null; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getDeleteRetentionMs() { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { return getDeleteRetentionMs(); } public static final int FILE_DELETE_DELAY_MS_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value fileDeleteDelayMs_; /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ @java.lang.Override public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMs_ != null; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFileDeleteDelayMs() { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { return getFileDeleteDelayMs(); } public static final int FLUSH_MESSAGES_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value flushMessages_; /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ @java.lang.Override public boolean hasFlushMessages() { return flushMessages_ != null; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMessages() { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { return getFlushMessages(); } public static final int FLUSH_MS_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value flushMs_; /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ @java.lang.Override public boolean hasFlushMs() { return flushMs_ != null; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMs() { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { return getFlushMs(); } public static final int MIN_COMPACTION_LAG_MS_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value minCompactionLagMs_; /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ @java.lang.Override public boolean hasMinCompactionLagMs() { return minCompactionLagMs_ != null; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ @java.lang.Override public com.google.protobuf.Int64Value getMinCompactionLagMs() { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { return getMinCompactionLagMs(); } public static final int RETENTION_BYTES_FIELD_NUMBER = 8; private com.google.protobuf.Int64Value retentionBytes_; /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ @java.lang.Override public boolean hasRetentionBytes() { return retentionBytes_ != null; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionBytes() { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { return getRetentionBytes(); } public static final int RETENTION_MS_FIELD_NUMBER = 9; private com.google.protobuf.Int64Value retentionMs_; /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ @java.lang.Override public boolean hasRetentionMs() { return retentionMs_ != null; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionMs() { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { return getRetentionMs(); } public static final int MAX_MESSAGE_BYTES_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value maxMessageBytes_; /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ @java.lang.Override public boolean hasMaxMessageBytes() { return maxMessageBytes_ != null; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxMessageBytes() { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { return getMaxMessageBytes(); } public static final int MIN_INSYNC_REPLICAS_FIELD_NUMBER = 11; private com.google.protobuf.Int64Value minInsyncReplicas_; /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ @java.lang.Override public boolean hasMinInsyncReplicas() { return minInsyncReplicas_ != null; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ @java.lang.Override public com.google.protobuf.Int64Value getMinInsyncReplicas() { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { return getMinInsyncReplicas(); } public static final int SEGMENT_BYTES_FIELD_NUMBER = 12; private com.google.protobuf.Int64Value segmentBytes_; /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ @java.lang.Override public boolean hasSegmentBytes() { return segmentBytes_ != null; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getSegmentBytes() { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { return getSegmentBytes(); } public static final int PREALLOCATE_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue preallocate_; /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ @java.lang.Override public boolean hasPreallocate() { return preallocate_ != null; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ @java.lang.Override public com.google.protobuf.BoolValue getPreallocate() { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { return getPreallocate(); } 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 (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, compressionType_); } if (deleteRetentionMs_ != null) { output.writeMessage(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { output.writeMessage(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { output.writeMessage(5, getFlushMessages()); } if (flushMs_ != null) { output.writeMessage(6, getFlushMs()); } if (minCompactionLagMs_ != null) { output.writeMessage(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { output.writeMessage(8, getRetentionBytes()); } if (retentionMs_ != null) { output.writeMessage(9, getRetentionMs()); } if (maxMessageBytes_ != null) { output.writeMessage(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { output.writeMessage(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { output.writeMessage(12, getSegmentBytes()); } if (preallocate_ != null) { output.writeMessage(13, getPreallocate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, compressionType_); } if (deleteRetentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFlushMessages()); } if (flushMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFlushMs()); } if (minCompactionLagMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetentionBytes()); } if (retentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRetentionMs()); } if (maxMessageBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSegmentBytes()); } if (preallocate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPreallocate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) obj; if (cleanupPolicy_ != other.cleanupPolicy_) return false; if (compressionType_ != other.compressionType_) return false; if (hasDeleteRetentionMs() != other.hasDeleteRetentionMs()) return false; if (hasDeleteRetentionMs()) { if (!getDeleteRetentionMs() .equals(other.getDeleteRetentionMs())) return false; } if (hasFileDeleteDelayMs() != other.hasFileDeleteDelayMs()) return false; if (hasFileDeleteDelayMs()) { if (!getFileDeleteDelayMs() .equals(other.getFileDeleteDelayMs())) return false; } if (hasFlushMessages() != other.hasFlushMessages()) return false; if (hasFlushMessages()) { if (!getFlushMessages() .equals(other.getFlushMessages())) return false; } if (hasFlushMs() != other.hasFlushMs()) return false; if (hasFlushMs()) { if (!getFlushMs() .equals(other.getFlushMs())) return false; } if (hasMinCompactionLagMs() != other.hasMinCompactionLagMs()) return false; if (hasMinCompactionLagMs()) { if (!getMinCompactionLagMs() .equals(other.getMinCompactionLagMs())) return false; } if (hasRetentionBytes() != other.hasRetentionBytes()) return false; if (hasRetentionBytes()) { if (!getRetentionBytes() .equals(other.getRetentionBytes())) return false; } if (hasRetentionMs() != other.hasRetentionMs()) return false; if (hasRetentionMs()) { if (!getRetentionMs() .equals(other.getRetentionMs())) return false; } if (hasMaxMessageBytes() != other.hasMaxMessageBytes()) return false; if (hasMaxMessageBytes()) { if (!getMaxMessageBytes() .equals(other.getMaxMessageBytes())) return false; } if (hasMinInsyncReplicas() != other.hasMinInsyncReplicas()) return false; if (hasMinInsyncReplicas()) { if (!getMinInsyncReplicas() .equals(other.getMinInsyncReplicas())) return false; } if (hasSegmentBytes() != other.hasSegmentBytes()) return false; if (hasSegmentBytes()) { if (!getSegmentBytes() .equals(other.getSegmentBytes())) return false; } if (hasPreallocate() != other.hasPreallocate()) return false; if (hasPreallocate()) { if (!getPreallocate() .equals(other.getPreallocate())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLEANUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + cleanupPolicy_; hash = (37 * hash) + COMPRESSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; if (hasDeleteRetentionMs()) { hash = (37 * hash) + DELETE_RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getDeleteRetentionMs().hashCode(); } if (hasFileDeleteDelayMs()) { hash = (37 * hash) + FILE_DELETE_DELAY_MS_FIELD_NUMBER; hash = (53 * hash) + getFileDeleteDelayMs().hashCode(); } if (hasFlushMessages()) { hash = (37 * hash) + FLUSH_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getFlushMessages().hashCode(); } if (hasFlushMs()) { hash = (37 * hash) + FLUSH_MS_FIELD_NUMBER; hash = (53 * hash) + getFlushMs().hashCode(); } if (hasMinCompactionLagMs()) { hash = (37 * hash) + MIN_COMPACTION_LAG_MS_FIELD_NUMBER; hash = (53 * hash) + getMinCompactionLagMs().hashCode(); } if (hasRetentionBytes()) { hash = (37 * hash) + RETENTION_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRetentionBytes().hashCode(); } if (hasRetentionMs()) { hash = (37 * hash) + RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getRetentionMs().hashCode(); } if (hasMaxMessageBytes()) { hash = (37 * hash) + MAX_MESSAGE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageBytes().hashCode(); } if (hasMinInsyncReplicas()) { hash = (37 * hash) + MIN_INSYNC_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinInsyncReplicas().hashCode(); } if (hasSegmentBytes()) { hash = (37 * hash) + SEGMENT_BYTES_FIELD_NUMBER; hash = (53 * hash) + getSegmentBytes().hashCode(); } if (hasPreallocate()) { hash = (37 * hash) + PREALLOCATE_FIELD_NUMBER; hash = (53 * hash) + getPreallocate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 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; } /** *
     * Deprecated. Version `2.1` of Kafka not supported in Yandex Cloud.
     * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_1} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_1) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); cleanupPolicy_ = 0; compressionType_ = 0; if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } if (flushMessagesBuilder_ == null) { flushMessages_ = null; } else { flushMessages_ = null; flushMessagesBuilder_ = null; } if (flushMsBuilder_ == null) { flushMs_ = null; } else { flushMs_ = null; flushMsBuilder_ = null; } if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } if (retentionBytesBuilder_ == null) { retentionBytes_ = null; } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } if (retentionMsBuilder_ == null) { retentionMs_ = null; } else { retentionMs_ = null; retentionMsBuilder_ = null; } if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } if (segmentBytesBuilder_ == null) { segmentBytes_ = null; } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } if (preallocateBuilder_ == null) { preallocate_ = null; } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1(this); result.cleanupPolicy_ = cleanupPolicy_; result.compressionType_ = compressionType_; if (deleteRetentionMsBuilder_ == null) { result.deleteRetentionMs_ = deleteRetentionMs_; } else { result.deleteRetentionMs_ = deleteRetentionMsBuilder_.build(); } if (fileDeleteDelayMsBuilder_ == null) { result.fileDeleteDelayMs_ = fileDeleteDelayMs_; } else { result.fileDeleteDelayMs_ = fileDeleteDelayMsBuilder_.build(); } if (flushMessagesBuilder_ == null) { result.flushMessages_ = flushMessages_; } else { result.flushMessages_ = flushMessagesBuilder_.build(); } if (flushMsBuilder_ == null) { result.flushMs_ = flushMs_; } else { result.flushMs_ = flushMsBuilder_.build(); } if (minCompactionLagMsBuilder_ == null) { result.minCompactionLagMs_ = minCompactionLagMs_; } else { result.minCompactionLagMs_ = minCompactionLagMsBuilder_.build(); } if (retentionBytesBuilder_ == null) { result.retentionBytes_ = retentionBytes_; } else { result.retentionBytes_ = retentionBytesBuilder_.build(); } if (retentionMsBuilder_ == null) { result.retentionMs_ = retentionMs_; } else { result.retentionMs_ = retentionMsBuilder_.build(); } if (maxMessageBytesBuilder_ == null) { result.maxMessageBytes_ = maxMessageBytes_; } else { result.maxMessageBytes_ = maxMessageBytesBuilder_.build(); } if (minInsyncReplicasBuilder_ == null) { result.minInsyncReplicas_ = minInsyncReplicas_; } else { result.minInsyncReplicas_ = minInsyncReplicasBuilder_.build(); } if (segmentBytesBuilder_ == null) { result.segmentBytes_ = segmentBytes_; } else { result.segmentBytes_ = segmentBytesBuilder_.build(); } if (preallocateBuilder_ == null) { result.preallocate_ = preallocate_; } else { result.preallocate_ = preallocateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.getDefaultInstance()) return this; if (other.cleanupPolicy_ != 0) { setCleanupPolicyValue(other.getCleanupPolicyValue()); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } if (other.hasDeleteRetentionMs()) { mergeDeleteRetentionMs(other.getDeleteRetentionMs()); } if (other.hasFileDeleteDelayMs()) { mergeFileDeleteDelayMs(other.getFileDeleteDelayMs()); } if (other.hasFlushMessages()) { mergeFlushMessages(other.getFlushMessages()); } if (other.hasFlushMs()) { mergeFlushMs(other.getFlushMs()); } if (other.hasMinCompactionLagMs()) { mergeMinCompactionLagMs(other.getMinCompactionLagMs()); } if (other.hasRetentionBytes()) { mergeRetentionBytes(other.getRetentionBytes()); } if (other.hasRetentionMs()) { mergeRetentionMs(other.getRetentionMs()); } if (other.hasMaxMessageBytes()) { mergeMaxMessageBytes(other.getMaxMessageBytes()); } if (other.hasMinInsyncReplicas()) { mergeMinInsyncReplicas(other.getMinInsyncReplicas()); } if (other.hasSegmentBytes()) { mergeSegmentBytes(other.getSegmentBytes()); } if (other.hasPreallocate()) { mergePreallocate(other.getPreallocate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cleanupPolicy_ = 0; /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @param value The enum numeric value on the wire for cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicyValue(int value) { cleanupPolicy_ = value; onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy.UNRECOGNIZED : result; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @param value The cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicy(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1.CleanupPolicy value) { if (value == null) { throw new NullPointerException(); } cleanupPolicy_ = value.getNumber(); onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_1.CleanupPolicy cleanup_policy = 1; * @return This builder for chaining. */ public Builder clearCleanupPolicy() { cleanupPolicy_ = 0; onChanged(); return this; } private int compressionType_ = 0; /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The enum numeric value on the wire for compressionType to set. * @return This builder for chaining. */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The compressionType to set. * @return This builder for chaining. */ public Builder setCompressionType(yandex.cloud.api.mdb.kafka.v1.Common.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return This builder for chaining. */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } private com.google.protobuf.Int64Value deleteRetentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> deleteRetentionMsBuilder_; /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ public boolean hasDeleteRetentionMs() { return deleteRetentionMsBuilder_ != null || deleteRetentionMs_ != null; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ public com.google.protobuf.Int64Value getDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } else { return deleteRetentionMsBuilder_.getMessage(); } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteRetentionMs_ = value; onChanged(); } else { deleteRetentionMsBuilder_.setMessage(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = builderForValue.build(); onChanged(); } else { deleteRetentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder mergeDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (deleteRetentionMs_ != null) { deleteRetentionMs_ = com.google.protobuf.Int64Value.newBuilder(deleteRetentionMs_).mergeFrom(value).buildPartial(); } else { deleteRetentionMs_ = value; } onChanged(); } else { deleteRetentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder clearDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; onChanged(); } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64Value.Builder getDeleteRetentionMsBuilder() { onChanged(); return getDeleteRetentionMsFieldBuilder().getBuilder(); } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { if (deleteRetentionMsBuilder_ != null) { return deleteRetentionMsBuilder_.getMessageOrBuilder(); } else { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDeleteRetentionMsFieldBuilder() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDeleteRetentionMs(), getParentForChildren(), isClean()); deleteRetentionMs_ = null; } return deleteRetentionMsBuilder_; } private com.google.protobuf.Int64Value fileDeleteDelayMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> fileDeleteDelayMsBuilder_; /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMsBuilder_ != null || fileDeleteDelayMs_ != null; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ public com.google.protobuf.Int64Value getFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } else { return fileDeleteDelayMsBuilder_.getMessage(); } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileDeleteDelayMs_ = value; onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = builderForValue.build(); onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder mergeFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (fileDeleteDelayMs_ != null) { fileDeleteDelayMs_ = com.google.protobuf.Int64Value.newBuilder(fileDeleteDelayMs_).mergeFrom(value).buildPartial(); } else { fileDeleteDelayMs_ = value; } onChanged(); } else { fileDeleteDelayMsBuilder_.mergeFrom(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder clearFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; onChanged(); } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64Value.Builder getFileDeleteDelayMsBuilder() { onChanged(); return getFileDeleteDelayMsFieldBuilder().getBuilder(); } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { if (fileDeleteDelayMsBuilder_ != null) { return fileDeleteDelayMsBuilder_.getMessageOrBuilder(); } else { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFileDeleteDelayMsFieldBuilder() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFileDeleteDelayMs(), getParentForChildren(), isClean()); fileDeleteDelayMs_ = null; } return fileDeleteDelayMsBuilder_; } private com.google.protobuf.Int64Value flushMessages_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMessagesBuilder_; /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ public boolean hasFlushMessages() { return flushMessagesBuilder_ != null || flushMessages_ != null; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ public com.google.protobuf.Int64Value getFlushMessages() { if (flushMessagesBuilder_ == null) { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } else { return flushMessagesBuilder_.getMessage(); } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMessages_ = value; onChanged(); } else { flushMessagesBuilder_.setMessage(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMessagesBuilder_ == null) { flushMessages_ = builderForValue.build(); onChanged(); } else { flushMessagesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder mergeFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (flushMessages_ != null) { flushMessages_ = com.google.protobuf.Int64Value.newBuilder(flushMessages_).mergeFrom(value).buildPartial(); } else { flushMessages_ = value; } onChanged(); } else { flushMessagesBuilder_.mergeFrom(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder clearFlushMessages() { if (flushMessagesBuilder_ == null) { flushMessages_ = null; onChanged(); } else { flushMessages_ = null; flushMessagesBuilder_ = null; } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64Value.Builder getFlushMessagesBuilder() { onChanged(); return getFlushMessagesFieldBuilder().getBuilder(); } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { if (flushMessagesBuilder_ != null) { return flushMessagesBuilder_.getMessageOrBuilder(); } else { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMessagesFieldBuilder() { if (flushMessagesBuilder_ == null) { flushMessagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMessages(), getParentForChildren(), isClean()); flushMessages_ = null; } return flushMessagesBuilder_; } private com.google.protobuf.Int64Value flushMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMsBuilder_; /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ public boolean hasFlushMs() { return flushMsBuilder_ != null || flushMs_ != null; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ public com.google.protobuf.Int64Value getFlushMs() { if (flushMsBuilder_ == null) { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } else { return flushMsBuilder_.getMessage(); } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMs_ = value; onChanged(); } else { flushMsBuilder_.setMessage(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMsBuilder_ == null) { flushMs_ = builderForValue.build(); onChanged(); } else { flushMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder mergeFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (flushMs_ != null) { flushMs_ = com.google.protobuf.Int64Value.newBuilder(flushMs_).mergeFrom(value).buildPartial(); } else { flushMs_ = value; } onChanged(); } else { flushMsBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder clearFlushMs() { if (flushMsBuilder_ == null) { flushMs_ = null; onChanged(); } else { flushMs_ = null; flushMsBuilder_ = null; } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64Value.Builder getFlushMsBuilder() { onChanged(); return getFlushMsFieldBuilder().getBuilder(); } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { if (flushMsBuilder_ != null) { return flushMsBuilder_.getMessageOrBuilder(); } else { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMsFieldBuilder() { if (flushMsBuilder_ == null) { flushMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMs(), getParentForChildren(), isClean()); flushMs_ = null; } return flushMsBuilder_; } private com.google.protobuf.Int64Value minCompactionLagMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minCompactionLagMsBuilder_; /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ public boolean hasMinCompactionLagMs() { return minCompactionLagMsBuilder_ != null || minCompactionLagMs_ != null; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ public com.google.protobuf.Int64Value getMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } else { return minCompactionLagMsBuilder_.getMessage(); } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minCompactionLagMs_ = value; onChanged(); } else { minCompactionLagMsBuilder_.setMessage(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = builderForValue.build(); onChanged(); } else { minCompactionLagMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder mergeMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (minCompactionLagMs_ != null) { minCompactionLagMs_ = com.google.protobuf.Int64Value.newBuilder(minCompactionLagMs_).mergeFrom(value).buildPartial(); } else { minCompactionLagMs_ = value; } onChanged(); } else { minCompactionLagMsBuilder_.mergeFrom(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder clearMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; onChanged(); } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64Value.Builder getMinCompactionLagMsBuilder() { onChanged(); return getMinCompactionLagMsFieldBuilder().getBuilder(); } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { if (minCompactionLagMsBuilder_ != null) { return minCompactionLagMsBuilder_.getMessageOrBuilder(); } else { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinCompactionLagMsFieldBuilder() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinCompactionLagMs(), getParentForChildren(), isClean()); minCompactionLagMs_ = null; } return minCompactionLagMsBuilder_; } private com.google.protobuf.Int64Value retentionBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionBytesBuilder_; /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ public boolean hasRetentionBytes() { return retentionBytesBuilder_ != null || retentionBytes_ != null; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ public com.google.protobuf.Int64Value getRetentionBytes() { if (retentionBytesBuilder_ == null) { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } else { return retentionBytesBuilder_.getMessage(); } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionBytes_ = value; onChanged(); } else { retentionBytesBuilder_.setMessage(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionBytesBuilder_ == null) { retentionBytes_ = builderForValue.build(); onChanged(); } else { retentionBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder mergeRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (retentionBytes_ != null) { retentionBytes_ = com.google.protobuf.Int64Value.newBuilder(retentionBytes_).mergeFrom(value).buildPartial(); } else { retentionBytes_ = value; } onChanged(); } else { retentionBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder clearRetentionBytes() { if (retentionBytesBuilder_ == null) { retentionBytes_ = null; onChanged(); } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64Value.Builder getRetentionBytesBuilder() { onChanged(); return getRetentionBytesFieldBuilder().getBuilder(); } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { if (retentionBytesBuilder_ != null) { return retentionBytesBuilder_.getMessageOrBuilder(); } else { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionBytesFieldBuilder() { if (retentionBytesBuilder_ == null) { retentionBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionBytes(), getParentForChildren(), isClean()); retentionBytes_ = null; } return retentionBytesBuilder_; } private com.google.protobuf.Int64Value retentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionMsBuilder_; /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ public boolean hasRetentionMs() { return retentionMsBuilder_ != null || retentionMs_ != null; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ public com.google.protobuf.Int64Value getRetentionMs() { if (retentionMsBuilder_ == null) { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } else { return retentionMsBuilder_.getMessage(); } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionMs_ = value; onChanged(); } else { retentionMsBuilder_.setMessage(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionMsBuilder_ == null) { retentionMs_ = builderForValue.build(); onChanged(); } else { retentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder mergeRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (retentionMs_ != null) { retentionMs_ = com.google.protobuf.Int64Value.newBuilder(retentionMs_).mergeFrom(value).buildPartial(); } else { retentionMs_ = value; } onChanged(); } else { retentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder clearRetentionMs() { if (retentionMsBuilder_ == null) { retentionMs_ = null; onChanged(); } else { retentionMs_ = null; retentionMsBuilder_ = null; } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64Value.Builder getRetentionMsBuilder() { onChanged(); return getRetentionMsFieldBuilder().getBuilder(); } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { if (retentionMsBuilder_ != null) { return retentionMsBuilder_.getMessageOrBuilder(); } else { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionMsFieldBuilder() { if (retentionMsBuilder_ == null) { retentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionMs(), getParentForChildren(), isClean()); retentionMs_ = null; } return retentionMsBuilder_; } private com.google.protobuf.Int64Value maxMessageBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxMessageBytesBuilder_; /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ public boolean hasMaxMessageBytes() { return maxMessageBytesBuilder_ != null || maxMessageBytes_ != null; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ public com.google.protobuf.Int64Value getMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } else { return maxMessageBytesBuilder_.getMessage(); } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxMessageBytes_ = value; onChanged(); } else { maxMessageBytesBuilder_.setMessage(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = builderForValue.build(); onChanged(); } else { maxMessageBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder mergeMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (maxMessageBytes_ != null) { maxMessageBytes_ = com.google.protobuf.Int64Value.newBuilder(maxMessageBytes_).mergeFrom(value).buildPartial(); } else { maxMessageBytes_ = value; } onChanged(); } else { maxMessageBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder clearMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; onChanged(); } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64Value.Builder getMaxMessageBytesBuilder() { onChanged(); return getMaxMessageBytesFieldBuilder().getBuilder(); } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { if (maxMessageBytesBuilder_ != null) { return maxMessageBytesBuilder_.getMessageOrBuilder(); } else { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxMessageBytesFieldBuilder() { if (maxMessageBytesBuilder_ == null) { maxMessageBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxMessageBytes(), getParentForChildren(), isClean()); maxMessageBytes_ = null; } return maxMessageBytesBuilder_; } private com.google.protobuf.Int64Value minInsyncReplicas_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minInsyncReplicasBuilder_; /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ public boolean hasMinInsyncReplicas() { return minInsyncReplicasBuilder_ != null || minInsyncReplicas_ != null; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ public com.google.protobuf.Int64Value getMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } else { return minInsyncReplicasBuilder_.getMessage(); } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minInsyncReplicas_ = value; onChanged(); } else { minInsyncReplicasBuilder_.setMessage(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas( com.google.protobuf.Int64Value.Builder builderForValue) { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = builderForValue.build(); onChanged(); } else { minInsyncReplicasBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder mergeMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (minInsyncReplicas_ != null) { minInsyncReplicas_ = com.google.protobuf.Int64Value.newBuilder(minInsyncReplicas_).mergeFrom(value).buildPartial(); } else { minInsyncReplicas_ = value; } onChanged(); } else { minInsyncReplicasBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder clearMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; onChanged(); } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64Value.Builder getMinInsyncReplicasBuilder() { onChanged(); return getMinInsyncReplicasFieldBuilder().getBuilder(); } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { if (minInsyncReplicasBuilder_ != null) { return minInsyncReplicasBuilder_.getMessageOrBuilder(); } else { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinInsyncReplicasFieldBuilder() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinInsyncReplicas(), getParentForChildren(), isClean()); minInsyncReplicas_ = null; } return minInsyncReplicasBuilder_; } private com.google.protobuf.Int64Value segmentBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> segmentBytesBuilder_; /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ public boolean hasSegmentBytes() { return segmentBytesBuilder_ != null || segmentBytes_ != null; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ public com.google.protobuf.Int64Value getSegmentBytes() { if (segmentBytesBuilder_ == null) { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } else { return segmentBytesBuilder_.getMessage(); } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentBytes_ = value; onChanged(); } else { segmentBytesBuilder_.setMessage(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (segmentBytesBuilder_ == null) { segmentBytes_ = builderForValue.build(); onChanged(); } else { segmentBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder mergeSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (segmentBytes_ != null) { segmentBytes_ = com.google.protobuf.Int64Value.newBuilder(segmentBytes_).mergeFrom(value).buildPartial(); } else { segmentBytes_ = value; } onChanged(); } else { segmentBytesBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder clearSegmentBytes() { if (segmentBytesBuilder_ == null) { segmentBytes_ = null; onChanged(); } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64Value.Builder getSegmentBytesBuilder() { onChanged(); return getSegmentBytesFieldBuilder().getBuilder(); } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { if (segmentBytesBuilder_ != null) { return segmentBytesBuilder_.getMessageOrBuilder(); } else { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getSegmentBytesFieldBuilder() { if (segmentBytesBuilder_ == null) { segmentBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getSegmentBytes(), getParentForChildren(), isClean()); segmentBytes_ = null; } return segmentBytesBuilder_; } private com.google.protobuf.BoolValue preallocate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> preallocateBuilder_; /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ public boolean hasPreallocate() { return preallocateBuilder_ != null || preallocate_ != null; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ public com.google.protobuf.BoolValue getPreallocate() { if (preallocateBuilder_ == null) { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } else { return preallocateBuilder_.getMessage(); } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preallocate_ = value; onChanged(); } else { preallocateBuilder_.setMessage(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate( com.google.protobuf.BoolValue.Builder builderForValue) { if (preallocateBuilder_ == null) { preallocate_ = builderForValue.build(); onChanged(); } else { preallocateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder mergePreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (preallocate_ != null) { preallocate_ = com.google.protobuf.BoolValue.newBuilder(preallocate_).mergeFrom(value).buildPartial(); } else { preallocate_ = value; } onChanged(); } else { preallocateBuilder_.mergeFrom(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder clearPreallocate() { if (preallocateBuilder_ == null) { preallocate_ = null; onChanged(); } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValue.Builder getPreallocateBuilder() { onChanged(); return getPreallocateFieldBuilder().getBuilder(); } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { if (preallocateBuilder_ != null) { return preallocateBuilder_.getMessageOrBuilder(); } else { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_1.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getPreallocateFieldBuilder() { if (preallocateBuilder_ == null) { preallocateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getPreallocate(), getParentForChildren(), isClean()); preallocate_ = null; } return preallocateBuilder_; } @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:yandex.cloud.mdb.kafka.v1.TopicConfig2_1) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_1) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicConfig2_1 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopicConfig2_1(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_1 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @java.lang.Deprecated public interface TopicConfig2_6OrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.TopicConfig2_6) com.google.protobuf.MessageOrBuilder { /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ int getCleanupPolicyValue(); /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy getCleanupPolicy(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ int getCompressionTypeValue(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ boolean hasDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ com.google.protobuf.Int64Value getDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ boolean hasFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ com.google.protobuf.Int64Value getFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ boolean hasFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ com.google.protobuf.Int64Value getFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ boolean hasFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ com.google.protobuf.Int64Value getFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ boolean hasMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ com.google.protobuf.Int64Value getMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ boolean hasRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ com.google.protobuf.Int64Value getRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ boolean hasRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ com.google.protobuf.Int64Value getRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ boolean hasMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ com.google.protobuf.Int64Value getMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ boolean hasMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ com.google.protobuf.Int64Value getMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ boolean hasSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ com.google.protobuf.Int64Value getSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ boolean hasPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ com.google.protobuf.BoolValue getPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder(); } /** *
   * Deprecated. Version `2.6` of Kafka not supported in Yandex Cloud.
   * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_6} */ @java.lang.Deprecated public static final class TopicConfig2_6 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_6) TopicConfig2_6OrBuilder { private static final long serialVersionUID = 0L; // Use TopicConfig2_6.newBuilder() to construct. private TopicConfig2_6(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicConfig2_6() { cleanupPolicy_ = 0; compressionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicConfig2_6(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopicConfig2_6( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); cleanupPolicy_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); compressionType_ = rawValue; break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (deleteRetentionMs_ != null) { subBuilder = deleteRetentionMs_.toBuilder(); } deleteRetentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteRetentionMs_); deleteRetentionMs_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (fileDeleteDelayMs_ != null) { subBuilder = fileDeleteDelayMs_.toBuilder(); } fileDeleteDelayMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileDeleteDelayMs_); fileDeleteDelayMs_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMessages_ != null) { subBuilder = flushMessages_.toBuilder(); } flushMessages_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMessages_); flushMessages_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMs_ != null) { subBuilder = flushMs_.toBuilder(); } flushMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMs_); flushMs_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minCompactionLagMs_ != null) { subBuilder = minCompactionLagMs_.toBuilder(); } minCompactionLagMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minCompactionLagMs_); minCompactionLagMs_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionBytes_ != null) { subBuilder = retentionBytes_.toBuilder(); } retentionBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionBytes_); retentionBytes_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionMs_ != null) { subBuilder = retentionMs_.toBuilder(); } retentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionMs_); retentionMs_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxMessageBytes_ != null) { subBuilder = maxMessageBytes_.toBuilder(); } maxMessageBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxMessageBytes_); maxMessageBytes_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minInsyncReplicas_ != null) { subBuilder = minInsyncReplicas_.toBuilder(); } minInsyncReplicas_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minInsyncReplicas_); minInsyncReplicas_ = subBuilder.buildPartial(); } break; } case 98: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (segmentBytes_ != null) { subBuilder = segmentBytes_.toBuilder(); } segmentBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(segmentBytes_); segmentBytes_ = subBuilder.buildPartial(); } break; } case 106: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (preallocate_ != null) { subBuilder = preallocate_.toBuilder(); } preallocate_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preallocate_); preallocate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy} */ public enum CleanupPolicy implements com.google.protobuf.ProtocolMessageEnum { /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ CLEANUP_POLICY_UNSPECIFIED(0), /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ CLEANUP_POLICY_DELETE(1), /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ CLEANUP_POLICY_COMPACT(2), /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ CLEANUP_POLICY_COMPACT_AND_DELETE(3), UNRECOGNIZED(-1), ; /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ public static final int CLEANUP_POLICY_UNSPECIFIED_VALUE = 0; /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ public static final int CLEANUP_POLICY_DELETE_VALUE = 1; /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ public static final int CLEANUP_POLICY_COMPACT_VALUE = 2; /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ public static final int CLEANUP_POLICY_COMPACT_AND_DELETE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CleanupPolicy 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 CleanupPolicy forNumber(int value) { switch (value) { case 0: return CLEANUP_POLICY_UNSPECIFIED; case 1: return CLEANUP_POLICY_DELETE; case 2: return CLEANUP_POLICY_COMPACT; case 3: return CLEANUP_POLICY_COMPACT_AND_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CleanupPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CleanupPolicy findValueByNumber(int number) { return CleanupPolicy.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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDescriptor().getEnumTypes().get(0); } private static final CleanupPolicy[] VALUES = values(); public static CleanupPolicy 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 CleanupPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy) } public static final int CLEANUP_POLICY_FIELD_NUMBER = 1; private int cleanupPolicy_; /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.UNRECOGNIZED : result; } public static final int COMPRESSION_TYPE_FIELD_NUMBER = 2; private int compressionType_; /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } public static final int DELETE_RETENTION_MS_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value deleteRetentionMs_; /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ @java.lang.Override public boolean hasDeleteRetentionMs() { return deleteRetentionMs_ != null; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getDeleteRetentionMs() { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { return getDeleteRetentionMs(); } public static final int FILE_DELETE_DELAY_MS_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value fileDeleteDelayMs_; /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ @java.lang.Override public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMs_ != null; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFileDeleteDelayMs() { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { return getFileDeleteDelayMs(); } public static final int FLUSH_MESSAGES_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value flushMessages_; /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ @java.lang.Override public boolean hasFlushMessages() { return flushMessages_ != null; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMessages() { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { return getFlushMessages(); } public static final int FLUSH_MS_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value flushMs_; /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ @java.lang.Override public boolean hasFlushMs() { return flushMs_ != null; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMs() { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { return getFlushMs(); } public static final int MIN_COMPACTION_LAG_MS_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value minCompactionLagMs_; /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ @java.lang.Override public boolean hasMinCompactionLagMs() { return minCompactionLagMs_ != null; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ @java.lang.Override public com.google.protobuf.Int64Value getMinCompactionLagMs() { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { return getMinCompactionLagMs(); } public static final int RETENTION_BYTES_FIELD_NUMBER = 8; private com.google.protobuf.Int64Value retentionBytes_; /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ @java.lang.Override public boolean hasRetentionBytes() { return retentionBytes_ != null; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionBytes() { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { return getRetentionBytes(); } public static final int RETENTION_MS_FIELD_NUMBER = 9; private com.google.protobuf.Int64Value retentionMs_; /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ @java.lang.Override public boolean hasRetentionMs() { return retentionMs_ != null; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionMs() { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { return getRetentionMs(); } public static final int MAX_MESSAGE_BYTES_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value maxMessageBytes_; /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ @java.lang.Override public boolean hasMaxMessageBytes() { return maxMessageBytes_ != null; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxMessageBytes() { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { return getMaxMessageBytes(); } public static final int MIN_INSYNC_REPLICAS_FIELD_NUMBER = 11; private com.google.protobuf.Int64Value minInsyncReplicas_; /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ @java.lang.Override public boolean hasMinInsyncReplicas() { return minInsyncReplicas_ != null; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ @java.lang.Override public com.google.protobuf.Int64Value getMinInsyncReplicas() { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { return getMinInsyncReplicas(); } public static final int SEGMENT_BYTES_FIELD_NUMBER = 12; private com.google.protobuf.Int64Value segmentBytes_; /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ @java.lang.Override public boolean hasSegmentBytes() { return segmentBytes_ != null; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getSegmentBytes() { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { return getSegmentBytes(); } public static final int PREALLOCATE_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue preallocate_; /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ @java.lang.Override public boolean hasPreallocate() { return preallocate_ != null; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ @java.lang.Override public com.google.protobuf.BoolValue getPreallocate() { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { return getPreallocate(); } 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 (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, compressionType_); } if (deleteRetentionMs_ != null) { output.writeMessage(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { output.writeMessage(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { output.writeMessage(5, getFlushMessages()); } if (flushMs_ != null) { output.writeMessage(6, getFlushMs()); } if (minCompactionLagMs_ != null) { output.writeMessage(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { output.writeMessage(8, getRetentionBytes()); } if (retentionMs_ != null) { output.writeMessage(9, getRetentionMs()); } if (maxMessageBytes_ != null) { output.writeMessage(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { output.writeMessage(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { output.writeMessage(12, getSegmentBytes()); } if (preallocate_ != null) { output.writeMessage(13, getPreallocate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, compressionType_); } if (deleteRetentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFlushMessages()); } if (flushMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFlushMs()); } if (minCompactionLagMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetentionBytes()); } if (retentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRetentionMs()); } if (maxMessageBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSegmentBytes()); } if (preallocate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPreallocate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) obj; if (cleanupPolicy_ != other.cleanupPolicy_) return false; if (compressionType_ != other.compressionType_) return false; if (hasDeleteRetentionMs() != other.hasDeleteRetentionMs()) return false; if (hasDeleteRetentionMs()) { if (!getDeleteRetentionMs() .equals(other.getDeleteRetentionMs())) return false; } if (hasFileDeleteDelayMs() != other.hasFileDeleteDelayMs()) return false; if (hasFileDeleteDelayMs()) { if (!getFileDeleteDelayMs() .equals(other.getFileDeleteDelayMs())) return false; } if (hasFlushMessages() != other.hasFlushMessages()) return false; if (hasFlushMessages()) { if (!getFlushMessages() .equals(other.getFlushMessages())) return false; } if (hasFlushMs() != other.hasFlushMs()) return false; if (hasFlushMs()) { if (!getFlushMs() .equals(other.getFlushMs())) return false; } if (hasMinCompactionLagMs() != other.hasMinCompactionLagMs()) return false; if (hasMinCompactionLagMs()) { if (!getMinCompactionLagMs() .equals(other.getMinCompactionLagMs())) return false; } if (hasRetentionBytes() != other.hasRetentionBytes()) return false; if (hasRetentionBytes()) { if (!getRetentionBytes() .equals(other.getRetentionBytes())) return false; } if (hasRetentionMs() != other.hasRetentionMs()) return false; if (hasRetentionMs()) { if (!getRetentionMs() .equals(other.getRetentionMs())) return false; } if (hasMaxMessageBytes() != other.hasMaxMessageBytes()) return false; if (hasMaxMessageBytes()) { if (!getMaxMessageBytes() .equals(other.getMaxMessageBytes())) return false; } if (hasMinInsyncReplicas() != other.hasMinInsyncReplicas()) return false; if (hasMinInsyncReplicas()) { if (!getMinInsyncReplicas() .equals(other.getMinInsyncReplicas())) return false; } if (hasSegmentBytes() != other.hasSegmentBytes()) return false; if (hasSegmentBytes()) { if (!getSegmentBytes() .equals(other.getSegmentBytes())) return false; } if (hasPreallocate() != other.hasPreallocate()) return false; if (hasPreallocate()) { if (!getPreallocate() .equals(other.getPreallocate())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLEANUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + cleanupPolicy_; hash = (37 * hash) + COMPRESSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; if (hasDeleteRetentionMs()) { hash = (37 * hash) + DELETE_RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getDeleteRetentionMs().hashCode(); } if (hasFileDeleteDelayMs()) { hash = (37 * hash) + FILE_DELETE_DELAY_MS_FIELD_NUMBER; hash = (53 * hash) + getFileDeleteDelayMs().hashCode(); } if (hasFlushMessages()) { hash = (37 * hash) + FLUSH_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getFlushMessages().hashCode(); } if (hasFlushMs()) { hash = (37 * hash) + FLUSH_MS_FIELD_NUMBER; hash = (53 * hash) + getFlushMs().hashCode(); } if (hasMinCompactionLagMs()) { hash = (37 * hash) + MIN_COMPACTION_LAG_MS_FIELD_NUMBER; hash = (53 * hash) + getMinCompactionLagMs().hashCode(); } if (hasRetentionBytes()) { hash = (37 * hash) + RETENTION_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRetentionBytes().hashCode(); } if (hasRetentionMs()) { hash = (37 * hash) + RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getRetentionMs().hashCode(); } if (hasMaxMessageBytes()) { hash = (37 * hash) + MAX_MESSAGE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageBytes().hashCode(); } if (hasMinInsyncReplicas()) { hash = (37 * hash) + MIN_INSYNC_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinInsyncReplicas().hashCode(); } if (hasSegmentBytes()) { hash = (37 * hash) + SEGMENT_BYTES_FIELD_NUMBER; hash = (53 * hash) + getSegmentBytes().hashCode(); } if (hasPreallocate()) { hash = (37 * hash) + PREALLOCATE_FIELD_NUMBER; hash = (53 * hash) + getPreallocate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 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; } /** *
     * Deprecated. Version `2.6` of Kafka not supported in Yandex Cloud.
     * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_6} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_6) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); cleanupPolicy_ = 0; compressionType_ = 0; if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } if (flushMessagesBuilder_ == null) { flushMessages_ = null; } else { flushMessages_ = null; flushMessagesBuilder_ = null; } if (flushMsBuilder_ == null) { flushMs_ = null; } else { flushMs_ = null; flushMsBuilder_ = null; } if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } if (retentionBytesBuilder_ == null) { retentionBytes_ = null; } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } if (retentionMsBuilder_ == null) { retentionMs_ = null; } else { retentionMs_ = null; retentionMsBuilder_ = null; } if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } if (segmentBytesBuilder_ == null) { segmentBytes_ = null; } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } if (preallocateBuilder_ == null) { preallocate_ = null; } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6(this); result.cleanupPolicy_ = cleanupPolicy_; result.compressionType_ = compressionType_; if (deleteRetentionMsBuilder_ == null) { result.deleteRetentionMs_ = deleteRetentionMs_; } else { result.deleteRetentionMs_ = deleteRetentionMsBuilder_.build(); } if (fileDeleteDelayMsBuilder_ == null) { result.fileDeleteDelayMs_ = fileDeleteDelayMs_; } else { result.fileDeleteDelayMs_ = fileDeleteDelayMsBuilder_.build(); } if (flushMessagesBuilder_ == null) { result.flushMessages_ = flushMessages_; } else { result.flushMessages_ = flushMessagesBuilder_.build(); } if (flushMsBuilder_ == null) { result.flushMs_ = flushMs_; } else { result.flushMs_ = flushMsBuilder_.build(); } if (minCompactionLagMsBuilder_ == null) { result.minCompactionLagMs_ = minCompactionLagMs_; } else { result.minCompactionLagMs_ = minCompactionLagMsBuilder_.build(); } if (retentionBytesBuilder_ == null) { result.retentionBytes_ = retentionBytes_; } else { result.retentionBytes_ = retentionBytesBuilder_.build(); } if (retentionMsBuilder_ == null) { result.retentionMs_ = retentionMs_; } else { result.retentionMs_ = retentionMsBuilder_.build(); } if (maxMessageBytesBuilder_ == null) { result.maxMessageBytes_ = maxMessageBytes_; } else { result.maxMessageBytes_ = maxMessageBytesBuilder_.build(); } if (minInsyncReplicasBuilder_ == null) { result.minInsyncReplicas_ = minInsyncReplicas_; } else { result.minInsyncReplicas_ = minInsyncReplicasBuilder_.build(); } if (segmentBytesBuilder_ == null) { result.segmentBytes_ = segmentBytes_; } else { result.segmentBytes_ = segmentBytesBuilder_.build(); } if (preallocateBuilder_ == null) { result.preallocate_ = preallocate_; } else { result.preallocate_ = preallocateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.getDefaultInstance()) return this; if (other.cleanupPolicy_ != 0) { setCleanupPolicyValue(other.getCleanupPolicyValue()); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } if (other.hasDeleteRetentionMs()) { mergeDeleteRetentionMs(other.getDeleteRetentionMs()); } if (other.hasFileDeleteDelayMs()) { mergeFileDeleteDelayMs(other.getFileDeleteDelayMs()); } if (other.hasFlushMessages()) { mergeFlushMessages(other.getFlushMessages()); } if (other.hasFlushMs()) { mergeFlushMs(other.getFlushMs()); } if (other.hasMinCompactionLagMs()) { mergeMinCompactionLagMs(other.getMinCompactionLagMs()); } if (other.hasRetentionBytes()) { mergeRetentionBytes(other.getRetentionBytes()); } if (other.hasRetentionMs()) { mergeRetentionMs(other.getRetentionMs()); } if (other.hasMaxMessageBytes()) { mergeMaxMessageBytes(other.getMaxMessageBytes()); } if (other.hasMinInsyncReplicas()) { mergeMinInsyncReplicas(other.getMinInsyncReplicas()); } if (other.hasSegmentBytes()) { mergeSegmentBytes(other.getSegmentBytes()); } if (other.hasPreallocate()) { mergePreallocate(other.getPreallocate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cleanupPolicy_ = 0; /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @param value The enum numeric value on the wire for cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicyValue(int value) { cleanupPolicy_ = value; onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy.UNRECOGNIZED : result; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @param value The cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicy(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6.CleanupPolicy value) { if (value == null) { throw new NullPointerException(); } cleanupPolicy_ = value.getNumber(); onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_6.CleanupPolicy cleanup_policy = 1; * @return This builder for chaining. */ public Builder clearCleanupPolicy() { cleanupPolicy_ = 0; onChanged(); return this; } private int compressionType_ = 0; /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The enum numeric value on the wire for compressionType to set. * @return This builder for chaining. */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The compressionType to set. * @return This builder for chaining. */ public Builder setCompressionType(yandex.cloud.api.mdb.kafka.v1.Common.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return This builder for chaining. */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } private com.google.protobuf.Int64Value deleteRetentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> deleteRetentionMsBuilder_; /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ public boolean hasDeleteRetentionMs() { return deleteRetentionMsBuilder_ != null || deleteRetentionMs_ != null; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ public com.google.protobuf.Int64Value getDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } else { return deleteRetentionMsBuilder_.getMessage(); } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteRetentionMs_ = value; onChanged(); } else { deleteRetentionMsBuilder_.setMessage(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = builderForValue.build(); onChanged(); } else { deleteRetentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder mergeDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (deleteRetentionMs_ != null) { deleteRetentionMs_ = com.google.protobuf.Int64Value.newBuilder(deleteRetentionMs_).mergeFrom(value).buildPartial(); } else { deleteRetentionMs_ = value; } onChanged(); } else { deleteRetentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder clearDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; onChanged(); } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64Value.Builder getDeleteRetentionMsBuilder() { onChanged(); return getDeleteRetentionMsFieldBuilder().getBuilder(); } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { if (deleteRetentionMsBuilder_ != null) { return deleteRetentionMsBuilder_.getMessageOrBuilder(); } else { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDeleteRetentionMsFieldBuilder() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDeleteRetentionMs(), getParentForChildren(), isClean()); deleteRetentionMs_ = null; } return deleteRetentionMsBuilder_; } private com.google.protobuf.Int64Value fileDeleteDelayMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> fileDeleteDelayMsBuilder_; /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMsBuilder_ != null || fileDeleteDelayMs_ != null; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ public com.google.protobuf.Int64Value getFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } else { return fileDeleteDelayMsBuilder_.getMessage(); } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileDeleteDelayMs_ = value; onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = builderForValue.build(); onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder mergeFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (fileDeleteDelayMs_ != null) { fileDeleteDelayMs_ = com.google.protobuf.Int64Value.newBuilder(fileDeleteDelayMs_).mergeFrom(value).buildPartial(); } else { fileDeleteDelayMs_ = value; } onChanged(); } else { fileDeleteDelayMsBuilder_.mergeFrom(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder clearFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; onChanged(); } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64Value.Builder getFileDeleteDelayMsBuilder() { onChanged(); return getFileDeleteDelayMsFieldBuilder().getBuilder(); } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { if (fileDeleteDelayMsBuilder_ != null) { return fileDeleteDelayMsBuilder_.getMessageOrBuilder(); } else { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFileDeleteDelayMsFieldBuilder() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFileDeleteDelayMs(), getParentForChildren(), isClean()); fileDeleteDelayMs_ = null; } return fileDeleteDelayMsBuilder_; } private com.google.protobuf.Int64Value flushMessages_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMessagesBuilder_; /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ public boolean hasFlushMessages() { return flushMessagesBuilder_ != null || flushMessages_ != null; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ public com.google.protobuf.Int64Value getFlushMessages() { if (flushMessagesBuilder_ == null) { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } else { return flushMessagesBuilder_.getMessage(); } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMessages_ = value; onChanged(); } else { flushMessagesBuilder_.setMessage(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMessagesBuilder_ == null) { flushMessages_ = builderForValue.build(); onChanged(); } else { flushMessagesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder mergeFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (flushMessages_ != null) { flushMessages_ = com.google.protobuf.Int64Value.newBuilder(flushMessages_).mergeFrom(value).buildPartial(); } else { flushMessages_ = value; } onChanged(); } else { flushMessagesBuilder_.mergeFrom(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder clearFlushMessages() { if (flushMessagesBuilder_ == null) { flushMessages_ = null; onChanged(); } else { flushMessages_ = null; flushMessagesBuilder_ = null; } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64Value.Builder getFlushMessagesBuilder() { onChanged(); return getFlushMessagesFieldBuilder().getBuilder(); } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { if (flushMessagesBuilder_ != null) { return flushMessagesBuilder_.getMessageOrBuilder(); } else { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMessagesFieldBuilder() { if (flushMessagesBuilder_ == null) { flushMessagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMessages(), getParentForChildren(), isClean()); flushMessages_ = null; } return flushMessagesBuilder_; } private com.google.protobuf.Int64Value flushMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMsBuilder_; /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ public boolean hasFlushMs() { return flushMsBuilder_ != null || flushMs_ != null; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ public com.google.protobuf.Int64Value getFlushMs() { if (flushMsBuilder_ == null) { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } else { return flushMsBuilder_.getMessage(); } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMs_ = value; onChanged(); } else { flushMsBuilder_.setMessage(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMsBuilder_ == null) { flushMs_ = builderForValue.build(); onChanged(); } else { flushMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder mergeFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (flushMs_ != null) { flushMs_ = com.google.protobuf.Int64Value.newBuilder(flushMs_).mergeFrom(value).buildPartial(); } else { flushMs_ = value; } onChanged(); } else { flushMsBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder clearFlushMs() { if (flushMsBuilder_ == null) { flushMs_ = null; onChanged(); } else { flushMs_ = null; flushMsBuilder_ = null; } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64Value.Builder getFlushMsBuilder() { onChanged(); return getFlushMsFieldBuilder().getBuilder(); } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { if (flushMsBuilder_ != null) { return flushMsBuilder_.getMessageOrBuilder(); } else { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMsFieldBuilder() { if (flushMsBuilder_ == null) { flushMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMs(), getParentForChildren(), isClean()); flushMs_ = null; } return flushMsBuilder_; } private com.google.protobuf.Int64Value minCompactionLagMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minCompactionLagMsBuilder_; /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ public boolean hasMinCompactionLagMs() { return minCompactionLagMsBuilder_ != null || minCompactionLagMs_ != null; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ public com.google.protobuf.Int64Value getMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } else { return minCompactionLagMsBuilder_.getMessage(); } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minCompactionLagMs_ = value; onChanged(); } else { minCompactionLagMsBuilder_.setMessage(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = builderForValue.build(); onChanged(); } else { minCompactionLagMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder mergeMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (minCompactionLagMs_ != null) { minCompactionLagMs_ = com.google.protobuf.Int64Value.newBuilder(minCompactionLagMs_).mergeFrom(value).buildPartial(); } else { minCompactionLagMs_ = value; } onChanged(); } else { minCompactionLagMsBuilder_.mergeFrom(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder clearMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; onChanged(); } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64Value.Builder getMinCompactionLagMsBuilder() { onChanged(); return getMinCompactionLagMsFieldBuilder().getBuilder(); } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { if (minCompactionLagMsBuilder_ != null) { return minCompactionLagMsBuilder_.getMessageOrBuilder(); } else { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinCompactionLagMsFieldBuilder() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinCompactionLagMs(), getParentForChildren(), isClean()); minCompactionLagMs_ = null; } return minCompactionLagMsBuilder_; } private com.google.protobuf.Int64Value retentionBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionBytesBuilder_; /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ public boolean hasRetentionBytes() { return retentionBytesBuilder_ != null || retentionBytes_ != null; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ public com.google.protobuf.Int64Value getRetentionBytes() { if (retentionBytesBuilder_ == null) { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } else { return retentionBytesBuilder_.getMessage(); } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionBytes_ = value; onChanged(); } else { retentionBytesBuilder_.setMessage(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionBytesBuilder_ == null) { retentionBytes_ = builderForValue.build(); onChanged(); } else { retentionBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder mergeRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (retentionBytes_ != null) { retentionBytes_ = com.google.protobuf.Int64Value.newBuilder(retentionBytes_).mergeFrom(value).buildPartial(); } else { retentionBytes_ = value; } onChanged(); } else { retentionBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder clearRetentionBytes() { if (retentionBytesBuilder_ == null) { retentionBytes_ = null; onChanged(); } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64Value.Builder getRetentionBytesBuilder() { onChanged(); return getRetentionBytesFieldBuilder().getBuilder(); } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { if (retentionBytesBuilder_ != null) { return retentionBytesBuilder_.getMessageOrBuilder(); } else { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionBytesFieldBuilder() { if (retentionBytesBuilder_ == null) { retentionBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionBytes(), getParentForChildren(), isClean()); retentionBytes_ = null; } return retentionBytesBuilder_; } private com.google.protobuf.Int64Value retentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionMsBuilder_; /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ public boolean hasRetentionMs() { return retentionMsBuilder_ != null || retentionMs_ != null; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ public com.google.protobuf.Int64Value getRetentionMs() { if (retentionMsBuilder_ == null) { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } else { return retentionMsBuilder_.getMessage(); } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionMs_ = value; onChanged(); } else { retentionMsBuilder_.setMessage(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionMsBuilder_ == null) { retentionMs_ = builderForValue.build(); onChanged(); } else { retentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder mergeRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (retentionMs_ != null) { retentionMs_ = com.google.protobuf.Int64Value.newBuilder(retentionMs_).mergeFrom(value).buildPartial(); } else { retentionMs_ = value; } onChanged(); } else { retentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder clearRetentionMs() { if (retentionMsBuilder_ == null) { retentionMs_ = null; onChanged(); } else { retentionMs_ = null; retentionMsBuilder_ = null; } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64Value.Builder getRetentionMsBuilder() { onChanged(); return getRetentionMsFieldBuilder().getBuilder(); } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { if (retentionMsBuilder_ != null) { return retentionMsBuilder_.getMessageOrBuilder(); } else { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionMsFieldBuilder() { if (retentionMsBuilder_ == null) { retentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionMs(), getParentForChildren(), isClean()); retentionMs_ = null; } return retentionMsBuilder_; } private com.google.protobuf.Int64Value maxMessageBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxMessageBytesBuilder_; /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ public boolean hasMaxMessageBytes() { return maxMessageBytesBuilder_ != null || maxMessageBytes_ != null; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ public com.google.protobuf.Int64Value getMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } else { return maxMessageBytesBuilder_.getMessage(); } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxMessageBytes_ = value; onChanged(); } else { maxMessageBytesBuilder_.setMessage(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = builderForValue.build(); onChanged(); } else { maxMessageBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder mergeMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (maxMessageBytes_ != null) { maxMessageBytes_ = com.google.protobuf.Int64Value.newBuilder(maxMessageBytes_).mergeFrom(value).buildPartial(); } else { maxMessageBytes_ = value; } onChanged(); } else { maxMessageBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder clearMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; onChanged(); } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64Value.Builder getMaxMessageBytesBuilder() { onChanged(); return getMaxMessageBytesFieldBuilder().getBuilder(); } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { if (maxMessageBytesBuilder_ != null) { return maxMessageBytesBuilder_.getMessageOrBuilder(); } else { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxMessageBytesFieldBuilder() { if (maxMessageBytesBuilder_ == null) { maxMessageBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxMessageBytes(), getParentForChildren(), isClean()); maxMessageBytes_ = null; } return maxMessageBytesBuilder_; } private com.google.protobuf.Int64Value minInsyncReplicas_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minInsyncReplicasBuilder_; /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ public boolean hasMinInsyncReplicas() { return minInsyncReplicasBuilder_ != null || minInsyncReplicas_ != null; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ public com.google.protobuf.Int64Value getMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } else { return minInsyncReplicasBuilder_.getMessage(); } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minInsyncReplicas_ = value; onChanged(); } else { minInsyncReplicasBuilder_.setMessage(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas( com.google.protobuf.Int64Value.Builder builderForValue) { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = builderForValue.build(); onChanged(); } else { minInsyncReplicasBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder mergeMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (minInsyncReplicas_ != null) { minInsyncReplicas_ = com.google.protobuf.Int64Value.newBuilder(minInsyncReplicas_).mergeFrom(value).buildPartial(); } else { minInsyncReplicas_ = value; } onChanged(); } else { minInsyncReplicasBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder clearMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; onChanged(); } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64Value.Builder getMinInsyncReplicasBuilder() { onChanged(); return getMinInsyncReplicasFieldBuilder().getBuilder(); } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { if (minInsyncReplicasBuilder_ != null) { return minInsyncReplicasBuilder_.getMessageOrBuilder(); } else { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinInsyncReplicasFieldBuilder() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinInsyncReplicas(), getParentForChildren(), isClean()); minInsyncReplicas_ = null; } return minInsyncReplicasBuilder_; } private com.google.protobuf.Int64Value segmentBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> segmentBytesBuilder_; /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ public boolean hasSegmentBytes() { return segmentBytesBuilder_ != null || segmentBytes_ != null; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ public com.google.protobuf.Int64Value getSegmentBytes() { if (segmentBytesBuilder_ == null) { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } else { return segmentBytesBuilder_.getMessage(); } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentBytes_ = value; onChanged(); } else { segmentBytesBuilder_.setMessage(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (segmentBytesBuilder_ == null) { segmentBytes_ = builderForValue.build(); onChanged(); } else { segmentBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder mergeSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (segmentBytes_ != null) { segmentBytes_ = com.google.protobuf.Int64Value.newBuilder(segmentBytes_).mergeFrom(value).buildPartial(); } else { segmentBytes_ = value; } onChanged(); } else { segmentBytesBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder clearSegmentBytes() { if (segmentBytesBuilder_ == null) { segmentBytes_ = null; onChanged(); } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64Value.Builder getSegmentBytesBuilder() { onChanged(); return getSegmentBytesFieldBuilder().getBuilder(); } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { if (segmentBytesBuilder_ != null) { return segmentBytesBuilder_.getMessageOrBuilder(); } else { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getSegmentBytesFieldBuilder() { if (segmentBytesBuilder_ == null) { segmentBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getSegmentBytes(), getParentForChildren(), isClean()); segmentBytes_ = null; } return segmentBytesBuilder_; } private com.google.protobuf.BoolValue preallocate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> preallocateBuilder_; /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ public boolean hasPreallocate() { return preallocateBuilder_ != null || preallocate_ != null; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ public com.google.protobuf.BoolValue getPreallocate() { if (preallocateBuilder_ == null) { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } else { return preallocateBuilder_.getMessage(); } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preallocate_ = value; onChanged(); } else { preallocateBuilder_.setMessage(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate( com.google.protobuf.BoolValue.Builder builderForValue) { if (preallocateBuilder_ == null) { preallocate_ = builderForValue.build(); onChanged(); } else { preallocateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder mergePreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (preallocate_ != null) { preallocate_ = com.google.protobuf.BoolValue.newBuilder(preallocate_).mergeFrom(value).buildPartial(); } else { preallocate_ = value; } onChanged(); } else { preallocateBuilder_.mergeFrom(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder clearPreallocate() { if (preallocateBuilder_ == null) { preallocate_ = null; onChanged(); } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValue.Builder getPreallocateBuilder() { onChanged(); return getPreallocateFieldBuilder().getBuilder(); } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { if (preallocateBuilder_ != null) { return preallocateBuilder_.getMessageOrBuilder(); } else { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_6.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getPreallocateFieldBuilder() { if (preallocateBuilder_ == null) { preallocateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getPreallocate(), getParentForChildren(), isClean()); preallocate_ = null; } return preallocateBuilder_; } @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:yandex.cloud.mdb.kafka.v1.TopicConfig2_6) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_6) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicConfig2_6 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopicConfig2_6(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_6 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopicConfig2_8OrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.TopicConfig2_8) com.google.protobuf.MessageOrBuilder { /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ int getCleanupPolicyValue(); /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy getCleanupPolicy(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ int getCompressionTypeValue(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ boolean hasDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ com.google.protobuf.Int64Value getDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ boolean hasFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ com.google.protobuf.Int64Value getFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ boolean hasFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ com.google.protobuf.Int64Value getFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ boolean hasFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ com.google.protobuf.Int64Value getFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ boolean hasMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ com.google.protobuf.Int64Value getMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ boolean hasRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ com.google.protobuf.Int64Value getRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ boolean hasRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ com.google.protobuf.Int64Value getRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ boolean hasMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ com.google.protobuf.Int64Value getMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ boolean hasMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ com.google.protobuf.Int64Value getMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ boolean hasSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ com.google.protobuf.Int64Value getSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ boolean hasPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ com.google.protobuf.BoolValue getPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder(); } /** *
   * A topic settings for 2.8
   * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_8} */ public static final class TopicConfig2_8 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_8) TopicConfig2_8OrBuilder { private static final long serialVersionUID = 0L; // Use TopicConfig2_8.newBuilder() to construct. private TopicConfig2_8(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicConfig2_8() { cleanupPolicy_ = 0; compressionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicConfig2_8(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopicConfig2_8( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); cleanupPolicy_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); compressionType_ = rawValue; break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (deleteRetentionMs_ != null) { subBuilder = deleteRetentionMs_.toBuilder(); } deleteRetentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteRetentionMs_); deleteRetentionMs_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (fileDeleteDelayMs_ != null) { subBuilder = fileDeleteDelayMs_.toBuilder(); } fileDeleteDelayMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileDeleteDelayMs_); fileDeleteDelayMs_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMessages_ != null) { subBuilder = flushMessages_.toBuilder(); } flushMessages_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMessages_); flushMessages_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMs_ != null) { subBuilder = flushMs_.toBuilder(); } flushMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMs_); flushMs_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minCompactionLagMs_ != null) { subBuilder = minCompactionLagMs_.toBuilder(); } minCompactionLagMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minCompactionLagMs_); minCompactionLagMs_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionBytes_ != null) { subBuilder = retentionBytes_.toBuilder(); } retentionBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionBytes_); retentionBytes_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionMs_ != null) { subBuilder = retentionMs_.toBuilder(); } retentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionMs_); retentionMs_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxMessageBytes_ != null) { subBuilder = maxMessageBytes_.toBuilder(); } maxMessageBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxMessageBytes_); maxMessageBytes_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minInsyncReplicas_ != null) { subBuilder = minInsyncReplicas_.toBuilder(); } minInsyncReplicas_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minInsyncReplicas_); minInsyncReplicas_ = subBuilder.buildPartial(); } break; } case 98: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (segmentBytes_ != null) { subBuilder = segmentBytes_.toBuilder(); } segmentBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(segmentBytes_); segmentBytes_ = subBuilder.buildPartial(); } break; } case 106: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (preallocate_ != null) { subBuilder = preallocate_.toBuilder(); } preallocate_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preallocate_); preallocate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy} */ public enum CleanupPolicy implements com.google.protobuf.ProtocolMessageEnum { /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ CLEANUP_POLICY_UNSPECIFIED(0), /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ CLEANUP_POLICY_DELETE(1), /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ CLEANUP_POLICY_COMPACT(2), /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ CLEANUP_POLICY_COMPACT_AND_DELETE(3), UNRECOGNIZED(-1), ; /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ public static final int CLEANUP_POLICY_UNSPECIFIED_VALUE = 0; /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig2_1.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ public static final int CLEANUP_POLICY_DELETE_VALUE = 1; /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ public static final int CLEANUP_POLICY_COMPACT_VALUE = 2; /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ public static final int CLEANUP_POLICY_COMPACT_AND_DELETE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CleanupPolicy 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 CleanupPolicy forNumber(int value) { switch (value) { case 0: return CLEANUP_POLICY_UNSPECIFIED; case 1: return CLEANUP_POLICY_DELETE; case 2: return CLEANUP_POLICY_COMPACT; case 3: return CLEANUP_POLICY_COMPACT_AND_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CleanupPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CleanupPolicy findValueByNumber(int number) { return CleanupPolicy.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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDescriptor().getEnumTypes().get(0); } private static final CleanupPolicy[] VALUES = values(); public static CleanupPolicy 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 CleanupPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy) } public static final int CLEANUP_POLICY_FIELD_NUMBER = 1; private int cleanupPolicy_; /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.UNRECOGNIZED : result; } public static final int COMPRESSION_TYPE_FIELD_NUMBER = 2; private int compressionType_; /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } public static final int DELETE_RETENTION_MS_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value deleteRetentionMs_; /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ @java.lang.Override public boolean hasDeleteRetentionMs() { return deleteRetentionMs_ != null; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getDeleteRetentionMs() { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { return getDeleteRetentionMs(); } public static final int FILE_DELETE_DELAY_MS_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value fileDeleteDelayMs_; /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ @java.lang.Override public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMs_ != null; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFileDeleteDelayMs() { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { return getFileDeleteDelayMs(); } public static final int FLUSH_MESSAGES_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value flushMessages_; /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ @java.lang.Override public boolean hasFlushMessages() { return flushMessages_ != null; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMessages() { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { return getFlushMessages(); } public static final int FLUSH_MS_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value flushMs_; /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ @java.lang.Override public boolean hasFlushMs() { return flushMs_ != null; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMs() { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { return getFlushMs(); } public static final int MIN_COMPACTION_LAG_MS_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value minCompactionLagMs_; /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ @java.lang.Override public boolean hasMinCompactionLagMs() { return minCompactionLagMs_ != null; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ @java.lang.Override public com.google.protobuf.Int64Value getMinCompactionLagMs() { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { return getMinCompactionLagMs(); } public static final int RETENTION_BYTES_FIELD_NUMBER = 8; private com.google.protobuf.Int64Value retentionBytes_; /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ @java.lang.Override public boolean hasRetentionBytes() { return retentionBytes_ != null; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionBytes() { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { return getRetentionBytes(); } public static final int RETENTION_MS_FIELD_NUMBER = 9; private com.google.protobuf.Int64Value retentionMs_; /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ @java.lang.Override public boolean hasRetentionMs() { return retentionMs_ != null; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionMs() { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { return getRetentionMs(); } public static final int MAX_MESSAGE_BYTES_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value maxMessageBytes_; /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ @java.lang.Override public boolean hasMaxMessageBytes() { return maxMessageBytes_ != null; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxMessageBytes() { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { return getMaxMessageBytes(); } public static final int MIN_INSYNC_REPLICAS_FIELD_NUMBER = 11; private com.google.protobuf.Int64Value minInsyncReplicas_; /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ @java.lang.Override public boolean hasMinInsyncReplicas() { return minInsyncReplicas_ != null; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ @java.lang.Override public com.google.protobuf.Int64Value getMinInsyncReplicas() { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { return getMinInsyncReplicas(); } public static final int SEGMENT_BYTES_FIELD_NUMBER = 12; private com.google.protobuf.Int64Value segmentBytes_; /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ @java.lang.Override public boolean hasSegmentBytes() { return segmentBytes_ != null; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getSegmentBytes() { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { return getSegmentBytes(); } public static final int PREALLOCATE_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue preallocate_; /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ @java.lang.Override public boolean hasPreallocate() { return preallocate_ != null; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ @java.lang.Override public com.google.protobuf.BoolValue getPreallocate() { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { return getPreallocate(); } 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 (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, compressionType_); } if (deleteRetentionMs_ != null) { output.writeMessage(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { output.writeMessage(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { output.writeMessage(5, getFlushMessages()); } if (flushMs_ != null) { output.writeMessage(6, getFlushMs()); } if (minCompactionLagMs_ != null) { output.writeMessage(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { output.writeMessage(8, getRetentionBytes()); } if (retentionMs_ != null) { output.writeMessage(9, getRetentionMs()); } if (maxMessageBytes_ != null) { output.writeMessage(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { output.writeMessage(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { output.writeMessage(12, getSegmentBytes()); } if (preallocate_ != null) { output.writeMessage(13, getPreallocate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, compressionType_); } if (deleteRetentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFlushMessages()); } if (flushMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFlushMs()); } if (minCompactionLagMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetentionBytes()); } if (retentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRetentionMs()); } if (maxMessageBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSegmentBytes()); } if (preallocate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPreallocate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) obj; if (cleanupPolicy_ != other.cleanupPolicy_) return false; if (compressionType_ != other.compressionType_) return false; if (hasDeleteRetentionMs() != other.hasDeleteRetentionMs()) return false; if (hasDeleteRetentionMs()) { if (!getDeleteRetentionMs() .equals(other.getDeleteRetentionMs())) return false; } if (hasFileDeleteDelayMs() != other.hasFileDeleteDelayMs()) return false; if (hasFileDeleteDelayMs()) { if (!getFileDeleteDelayMs() .equals(other.getFileDeleteDelayMs())) return false; } if (hasFlushMessages() != other.hasFlushMessages()) return false; if (hasFlushMessages()) { if (!getFlushMessages() .equals(other.getFlushMessages())) return false; } if (hasFlushMs() != other.hasFlushMs()) return false; if (hasFlushMs()) { if (!getFlushMs() .equals(other.getFlushMs())) return false; } if (hasMinCompactionLagMs() != other.hasMinCompactionLagMs()) return false; if (hasMinCompactionLagMs()) { if (!getMinCompactionLagMs() .equals(other.getMinCompactionLagMs())) return false; } if (hasRetentionBytes() != other.hasRetentionBytes()) return false; if (hasRetentionBytes()) { if (!getRetentionBytes() .equals(other.getRetentionBytes())) return false; } if (hasRetentionMs() != other.hasRetentionMs()) return false; if (hasRetentionMs()) { if (!getRetentionMs() .equals(other.getRetentionMs())) return false; } if (hasMaxMessageBytes() != other.hasMaxMessageBytes()) return false; if (hasMaxMessageBytes()) { if (!getMaxMessageBytes() .equals(other.getMaxMessageBytes())) return false; } if (hasMinInsyncReplicas() != other.hasMinInsyncReplicas()) return false; if (hasMinInsyncReplicas()) { if (!getMinInsyncReplicas() .equals(other.getMinInsyncReplicas())) return false; } if (hasSegmentBytes() != other.hasSegmentBytes()) return false; if (hasSegmentBytes()) { if (!getSegmentBytes() .equals(other.getSegmentBytes())) return false; } if (hasPreallocate() != other.hasPreallocate()) return false; if (hasPreallocate()) { if (!getPreallocate() .equals(other.getPreallocate())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLEANUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + cleanupPolicy_; hash = (37 * hash) + COMPRESSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; if (hasDeleteRetentionMs()) { hash = (37 * hash) + DELETE_RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getDeleteRetentionMs().hashCode(); } if (hasFileDeleteDelayMs()) { hash = (37 * hash) + FILE_DELETE_DELAY_MS_FIELD_NUMBER; hash = (53 * hash) + getFileDeleteDelayMs().hashCode(); } if (hasFlushMessages()) { hash = (37 * hash) + FLUSH_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getFlushMessages().hashCode(); } if (hasFlushMs()) { hash = (37 * hash) + FLUSH_MS_FIELD_NUMBER; hash = (53 * hash) + getFlushMs().hashCode(); } if (hasMinCompactionLagMs()) { hash = (37 * hash) + MIN_COMPACTION_LAG_MS_FIELD_NUMBER; hash = (53 * hash) + getMinCompactionLagMs().hashCode(); } if (hasRetentionBytes()) { hash = (37 * hash) + RETENTION_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRetentionBytes().hashCode(); } if (hasRetentionMs()) { hash = (37 * hash) + RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getRetentionMs().hashCode(); } if (hasMaxMessageBytes()) { hash = (37 * hash) + MAX_MESSAGE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageBytes().hashCode(); } if (hasMinInsyncReplicas()) { hash = (37 * hash) + MIN_INSYNC_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinInsyncReplicas().hashCode(); } if (hasSegmentBytes()) { hash = (37 * hash) + SEGMENT_BYTES_FIELD_NUMBER; hash = (53 * hash) + getSegmentBytes().hashCode(); } if (hasPreallocate()) { hash = (37 * hash) + PREALLOCATE_FIELD_NUMBER; hash = (53 * hash) + getPreallocate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 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; } /** *
     * A topic settings for 2.8
     * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig2_8} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.TopicConfig2_8) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); cleanupPolicy_ = 0; compressionType_ = 0; if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } if (flushMessagesBuilder_ == null) { flushMessages_ = null; } else { flushMessages_ = null; flushMessagesBuilder_ = null; } if (flushMsBuilder_ == null) { flushMs_ = null; } else { flushMs_ = null; flushMsBuilder_ = null; } if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } if (retentionBytesBuilder_ == null) { retentionBytes_ = null; } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } if (retentionMsBuilder_ == null) { retentionMs_ = null; } else { retentionMs_ = null; retentionMsBuilder_ = null; } if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } if (segmentBytesBuilder_ == null) { segmentBytes_ = null; } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } if (preallocateBuilder_ == null) { preallocate_ = null; } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8(this); result.cleanupPolicy_ = cleanupPolicy_; result.compressionType_ = compressionType_; if (deleteRetentionMsBuilder_ == null) { result.deleteRetentionMs_ = deleteRetentionMs_; } else { result.deleteRetentionMs_ = deleteRetentionMsBuilder_.build(); } if (fileDeleteDelayMsBuilder_ == null) { result.fileDeleteDelayMs_ = fileDeleteDelayMs_; } else { result.fileDeleteDelayMs_ = fileDeleteDelayMsBuilder_.build(); } if (flushMessagesBuilder_ == null) { result.flushMessages_ = flushMessages_; } else { result.flushMessages_ = flushMessagesBuilder_.build(); } if (flushMsBuilder_ == null) { result.flushMs_ = flushMs_; } else { result.flushMs_ = flushMsBuilder_.build(); } if (minCompactionLagMsBuilder_ == null) { result.minCompactionLagMs_ = minCompactionLagMs_; } else { result.minCompactionLagMs_ = minCompactionLagMsBuilder_.build(); } if (retentionBytesBuilder_ == null) { result.retentionBytes_ = retentionBytes_; } else { result.retentionBytes_ = retentionBytesBuilder_.build(); } if (retentionMsBuilder_ == null) { result.retentionMs_ = retentionMs_; } else { result.retentionMs_ = retentionMsBuilder_.build(); } if (maxMessageBytesBuilder_ == null) { result.maxMessageBytes_ = maxMessageBytes_; } else { result.maxMessageBytes_ = maxMessageBytesBuilder_.build(); } if (minInsyncReplicasBuilder_ == null) { result.minInsyncReplicas_ = minInsyncReplicas_; } else { result.minInsyncReplicas_ = minInsyncReplicasBuilder_.build(); } if (segmentBytesBuilder_ == null) { result.segmentBytes_ = segmentBytes_; } else { result.segmentBytes_ = segmentBytesBuilder_.build(); } if (preallocateBuilder_ == null) { result.preallocate_ = preallocate_; } else { result.preallocate_ = preallocateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.getDefaultInstance()) return this; if (other.cleanupPolicy_ != 0) { setCleanupPolicyValue(other.getCleanupPolicyValue()); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } if (other.hasDeleteRetentionMs()) { mergeDeleteRetentionMs(other.getDeleteRetentionMs()); } if (other.hasFileDeleteDelayMs()) { mergeFileDeleteDelayMs(other.getFileDeleteDelayMs()); } if (other.hasFlushMessages()) { mergeFlushMessages(other.getFlushMessages()); } if (other.hasFlushMs()) { mergeFlushMs(other.getFlushMs()); } if (other.hasMinCompactionLagMs()) { mergeMinCompactionLagMs(other.getMinCompactionLagMs()); } if (other.hasRetentionBytes()) { mergeRetentionBytes(other.getRetentionBytes()); } if (other.hasRetentionMs()) { mergeRetentionMs(other.getRetentionMs()); } if (other.hasMaxMessageBytes()) { mergeMaxMessageBytes(other.getMaxMessageBytes()); } if (other.hasMinInsyncReplicas()) { mergeMinInsyncReplicas(other.getMinInsyncReplicas()); } if (other.hasSegmentBytes()) { mergeSegmentBytes(other.getSegmentBytes()); } if (other.hasPreallocate()) { mergePreallocate(other.getPreallocate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cleanupPolicy_ = 0; /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @param value The enum numeric value on the wire for cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicyValue(int value) { cleanupPolicy_ = value; onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy.UNRECOGNIZED : result; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @param value The cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicy(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8.CleanupPolicy value) { if (value == null) { throw new NullPointerException(); } cleanupPolicy_ = value.getNumber(); onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig2_8.CleanupPolicy cleanup_policy = 1; * @return This builder for chaining. */ public Builder clearCleanupPolicy() { cleanupPolicy_ = 0; onChanged(); return this; } private int compressionType_ = 0; /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The enum numeric value on the wire for compressionType to set. * @return This builder for chaining. */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The compressionType to set. * @return This builder for chaining. */ public Builder setCompressionType(yandex.cloud.api.mdb.kafka.v1.Common.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return This builder for chaining. */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } private com.google.protobuf.Int64Value deleteRetentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> deleteRetentionMsBuilder_; /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ public boolean hasDeleteRetentionMs() { return deleteRetentionMsBuilder_ != null || deleteRetentionMs_ != null; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ public com.google.protobuf.Int64Value getDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } else { return deleteRetentionMsBuilder_.getMessage(); } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteRetentionMs_ = value; onChanged(); } else { deleteRetentionMsBuilder_.setMessage(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = builderForValue.build(); onChanged(); } else { deleteRetentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder mergeDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (deleteRetentionMs_ != null) { deleteRetentionMs_ = com.google.protobuf.Int64Value.newBuilder(deleteRetentionMs_).mergeFrom(value).buildPartial(); } else { deleteRetentionMs_ = value; } onChanged(); } else { deleteRetentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder clearDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; onChanged(); } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64Value.Builder getDeleteRetentionMsBuilder() { onChanged(); return getDeleteRetentionMsFieldBuilder().getBuilder(); } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { if (deleteRetentionMsBuilder_ != null) { return deleteRetentionMsBuilder_.getMessageOrBuilder(); } else { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDeleteRetentionMsFieldBuilder() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDeleteRetentionMs(), getParentForChildren(), isClean()); deleteRetentionMs_ = null; } return deleteRetentionMsBuilder_; } private com.google.protobuf.Int64Value fileDeleteDelayMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> fileDeleteDelayMsBuilder_; /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMsBuilder_ != null || fileDeleteDelayMs_ != null; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ public com.google.protobuf.Int64Value getFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } else { return fileDeleteDelayMsBuilder_.getMessage(); } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileDeleteDelayMs_ = value; onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = builderForValue.build(); onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder mergeFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (fileDeleteDelayMs_ != null) { fileDeleteDelayMs_ = com.google.protobuf.Int64Value.newBuilder(fileDeleteDelayMs_).mergeFrom(value).buildPartial(); } else { fileDeleteDelayMs_ = value; } onChanged(); } else { fileDeleteDelayMsBuilder_.mergeFrom(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder clearFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; onChanged(); } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64Value.Builder getFileDeleteDelayMsBuilder() { onChanged(); return getFileDeleteDelayMsFieldBuilder().getBuilder(); } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { if (fileDeleteDelayMsBuilder_ != null) { return fileDeleteDelayMsBuilder_.getMessageOrBuilder(); } else { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFileDeleteDelayMsFieldBuilder() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFileDeleteDelayMs(), getParentForChildren(), isClean()); fileDeleteDelayMs_ = null; } return fileDeleteDelayMsBuilder_; } private com.google.protobuf.Int64Value flushMessages_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMessagesBuilder_; /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ public boolean hasFlushMessages() { return flushMessagesBuilder_ != null || flushMessages_ != null; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ public com.google.protobuf.Int64Value getFlushMessages() { if (flushMessagesBuilder_ == null) { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } else { return flushMessagesBuilder_.getMessage(); } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMessages_ = value; onChanged(); } else { flushMessagesBuilder_.setMessage(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMessagesBuilder_ == null) { flushMessages_ = builderForValue.build(); onChanged(); } else { flushMessagesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder mergeFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (flushMessages_ != null) { flushMessages_ = com.google.protobuf.Int64Value.newBuilder(flushMessages_).mergeFrom(value).buildPartial(); } else { flushMessages_ = value; } onChanged(); } else { flushMessagesBuilder_.mergeFrom(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder clearFlushMessages() { if (flushMessagesBuilder_ == null) { flushMessages_ = null; onChanged(); } else { flushMessages_ = null; flushMessagesBuilder_ = null; } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64Value.Builder getFlushMessagesBuilder() { onChanged(); return getFlushMessagesFieldBuilder().getBuilder(); } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { if (flushMessagesBuilder_ != null) { return flushMessagesBuilder_.getMessageOrBuilder(); } else { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMessagesFieldBuilder() { if (flushMessagesBuilder_ == null) { flushMessagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMessages(), getParentForChildren(), isClean()); flushMessages_ = null; } return flushMessagesBuilder_; } private com.google.protobuf.Int64Value flushMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMsBuilder_; /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ public boolean hasFlushMs() { return flushMsBuilder_ != null || flushMs_ != null; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ public com.google.protobuf.Int64Value getFlushMs() { if (flushMsBuilder_ == null) { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } else { return flushMsBuilder_.getMessage(); } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMs_ = value; onChanged(); } else { flushMsBuilder_.setMessage(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMsBuilder_ == null) { flushMs_ = builderForValue.build(); onChanged(); } else { flushMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder mergeFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (flushMs_ != null) { flushMs_ = com.google.protobuf.Int64Value.newBuilder(flushMs_).mergeFrom(value).buildPartial(); } else { flushMs_ = value; } onChanged(); } else { flushMsBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder clearFlushMs() { if (flushMsBuilder_ == null) { flushMs_ = null; onChanged(); } else { flushMs_ = null; flushMsBuilder_ = null; } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64Value.Builder getFlushMsBuilder() { onChanged(); return getFlushMsFieldBuilder().getBuilder(); } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { if (flushMsBuilder_ != null) { return flushMsBuilder_.getMessageOrBuilder(); } else { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMsFieldBuilder() { if (flushMsBuilder_ == null) { flushMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMs(), getParentForChildren(), isClean()); flushMs_ = null; } return flushMsBuilder_; } private com.google.protobuf.Int64Value minCompactionLagMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minCompactionLagMsBuilder_; /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ public boolean hasMinCompactionLagMs() { return minCompactionLagMsBuilder_ != null || minCompactionLagMs_ != null; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ public com.google.protobuf.Int64Value getMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } else { return minCompactionLagMsBuilder_.getMessage(); } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minCompactionLagMs_ = value; onChanged(); } else { minCompactionLagMsBuilder_.setMessage(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = builderForValue.build(); onChanged(); } else { minCompactionLagMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder mergeMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (minCompactionLagMs_ != null) { minCompactionLagMs_ = com.google.protobuf.Int64Value.newBuilder(minCompactionLagMs_).mergeFrom(value).buildPartial(); } else { minCompactionLagMs_ = value; } onChanged(); } else { minCompactionLagMsBuilder_.mergeFrom(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder clearMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; onChanged(); } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64Value.Builder getMinCompactionLagMsBuilder() { onChanged(); return getMinCompactionLagMsFieldBuilder().getBuilder(); } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { if (minCompactionLagMsBuilder_ != null) { return minCompactionLagMsBuilder_.getMessageOrBuilder(); } else { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinCompactionLagMsFieldBuilder() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinCompactionLagMs(), getParentForChildren(), isClean()); minCompactionLagMs_ = null; } return minCompactionLagMsBuilder_; } private com.google.protobuf.Int64Value retentionBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionBytesBuilder_; /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ public boolean hasRetentionBytes() { return retentionBytesBuilder_ != null || retentionBytes_ != null; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ public com.google.protobuf.Int64Value getRetentionBytes() { if (retentionBytesBuilder_ == null) { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } else { return retentionBytesBuilder_.getMessage(); } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionBytes_ = value; onChanged(); } else { retentionBytesBuilder_.setMessage(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionBytesBuilder_ == null) { retentionBytes_ = builderForValue.build(); onChanged(); } else { retentionBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder mergeRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (retentionBytes_ != null) { retentionBytes_ = com.google.protobuf.Int64Value.newBuilder(retentionBytes_).mergeFrom(value).buildPartial(); } else { retentionBytes_ = value; } onChanged(); } else { retentionBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder clearRetentionBytes() { if (retentionBytesBuilder_ == null) { retentionBytes_ = null; onChanged(); } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64Value.Builder getRetentionBytesBuilder() { onChanged(); return getRetentionBytesFieldBuilder().getBuilder(); } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { if (retentionBytesBuilder_ != null) { return retentionBytesBuilder_.getMessageOrBuilder(); } else { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionBytesFieldBuilder() { if (retentionBytesBuilder_ == null) { retentionBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionBytes(), getParentForChildren(), isClean()); retentionBytes_ = null; } return retentionBytesBuilder_; } private com.google.protobuf.Int64Value retentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionMsBuilder_; /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ public boolean hasRetentionMs() { return retentionMsBuilder_ != null || retentionMs_ != null; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ public com.google.protobuf.Int64Value getRetentionMs() { if (retentionMsBuilder_ == null) { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } else { return retentionMsBuilder_.getMessage(); } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionMs_ = value; onChanged(); } else { retentionMsBuilder_.setMessage(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionMsBuilder_ == null) { retentionMs_ = builderForValue.build(); onChanged(); } else { retentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder mergeRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (retentionMs_ != null) { retentionMs_ = com.google.protobuf.Int64Value.newBuilder(retentionMs_).mergeFrom(value).buildPartial(); } else { retentionMs_ = value; } onChanged(); } else { retentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder clearRetentionMs() { if (retentionMsBuilder_ == null) { retentionMs_ = null; onChanged(); } else { retentionMs_ = null; retentionMsBuilder_ = null; } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64Value.Builder getRetentionMsBuilder() { onChanged(); return getRetentionMsFieldBuilder().getBuilder(); } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { if (retentionMsBuilder_ != null) { return retentionMsBuilder_.getMessageOrBuilder(); } else { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionMsFieldBuilder() { if (retentionMsBuilder_ == null) { retentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionMs(), getParentForChildren(), isClean()); retentionMs_ = null; } return retentionMsBuilder_; } private com.google.protobuf.Int64Value maxMessageBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxMessageBytesBuilder_; /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ public boolean hasMaxMessageBytes() { return maxMessageBytesBuilder_ != null || maxMessageBytes_ != null; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ public com.google.protobuf.Int64Value getMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } else { return maxMessageBytesBuilder_.getMessage(); } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxMessageBytes_ = value; onChanged(); } else { maxMessageBytesBuilder_.setMessage(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = builderForValue.build(); onChanged(); } else { maxMessageBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder mergeMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (maxMessageBytes_ != null) { maxMessageBytes_ = com.google.protobuf.Int64Value.newBuilder(maxMessageBytes_).mergeFrom(value).buildPartial(); } else { maxMessageBytes_ = value; } onChanged(); } else { maxMessageBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder clearMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; onChanged(); } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64Value.Builder getMaxMessageBytesBuilder() { onChanged(); return getMaxMessageBytesFieldBuilder().getBuilder(); } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { if (maxMessageBytesBuilder_ != null) { return maxMessageBytesBuilder_.getMessageOrBuilder(); } else { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxMessageBytesFieldBuilder() { if (maxMessageBytesBuilder_ == null) { maxMessageBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxMessageBytes(), getParentForChildren(), isClean()); maxMessageBytes_ = null; } return maxMessageBytesBuilder_; } private com.google.protobuf.Int64Value minInsyncReplicas_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minInsyncReplicasBuilder_; /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ public boolean hasMinInsyncReplicas() { return minInsyncReplicasBuilder_ != null || minInsyncReplicas_ != null; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ public com.google.protobuf.Int64Value getMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } else { return minInsyncReplicasBuilder_.getMessage(); } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minInsyncReplicas_ = value; onChanged(); } else { minInsyncReplicasBuilder_.setMessage(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas( com.google.protobuf.Int64Value.Builder builderForValue) { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = builderForValue.build(); onChanged(); } else { minInsyncReplicasBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder mergeMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (minInsyncReplicas_ != null) { minInsyncReplicas_ = com.google.protobuf.Int64Value.newBuilder(minInsyncReplicas_).mergeFrom(value).buildPartial(); } else { minInsyncReplicas_ = value; } onChanged(); } else { minInsyncReplicasBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder clearMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; onChanged(); } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64Value.Builder getMinInsyncReplicasBuilder() { onChanged(); return getMinInsyncReplicasFieldBuilder().getBuilder(); } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { if (minInsyncReplicasBuilder_ != null) { return minInsyncReplicasBuilder_.getMessageOrBuilder(); } else { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinInsyncReplicasFieldBuilder() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinInsyncReplicas(), getParentForChildren(), isClean()); minInsyncReplicas_ = null; } return minInsyncReplicasBuilder_; } private com.google.protobuf.Int64Value segmentBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> segmentBytesBuilder_; /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ public boolean hasSegmentBytes() { return segmentBytesBuilder_ != null || segmentBytes_ != null; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ public com.google.protobuf.Int64Value getSegmentBytes() { if (segmentBytesBuilder_ == null) { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } else { return segmentBytesBuilder_.getMessage(); } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentBytes_ = value; onChanged(); } else { segmentBytesBuilder_.setMessage(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (segmentBytesBuilder_ == null) { segmentBytes_ = builderForValue.build(); onChanged(); } else { segmentBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder mergeSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (segmentBytes_ != null) { segmentBytes_ = com.google.protobuf.Int64Value.newBuilder(segmentBytes_).mergeFrom(value).buildPartial(); } else { segmentBytes_ = value; } onChanged(); } else { segmentBytesBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder clearSegmentBytes() { if (segmentBytesBuilder_ == null) { segmentBytes_ = null; onChanged(); } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64Value.Builder getSegmentBytesBuilder() { onChanged(); return getSegmentBytesFieldBuilder().getBuilder(); } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { if (segmentBytesBuilder_ != null) { return segmentBytesBuilder_.getMessageOrBuilder(); } else { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getSegmentBytesFieldBuilder() { if (segmentBytesBuilder_ == null) { segmentBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getSegmentBytes(), getParentForChildren(), isClean()); segmentBytes_ = null; } return segmentBytesBuilder_; } private com.google.protobuf.BoolValue preallocate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> preallocateBuilder_; /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ public boolean hasPreallocate() { return preallocateBuilder_ != null || preallocate_ != null; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ public com.google.protobuf.BoolValue getPreallocate() { if (preallocateBuilder_ == null) { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } else { return preallocateBuilder_.getMessage(); } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preallocate_ = value; onChanged(); } else { preallocateBuilder_.setMessage(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate( com.google.protobuf.BoolValue.Builder builderForValue) { if (preallocateBuilder_ == null) { preallocate_ = builderForValue.build(); onChanged(); } else { preallocateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder mergePreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (preallocate_ != null) { preallocate_ = com.google.protobuf.BoolValue.newBuilder(preallocate_).mergeFrom(value).buildPartial(); } else { preallocate_ = value; } onChanged(); } else { preallocateBuilder_.mergeFrom(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder clearPreallocate() { if (preallocateBuilder_ == null) { preallocate_ = null; onChanged(); } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValue.Builder getPreallocateBuilder() { onChanged(); return getPreallocateFieldBuilder().getBuilder(); } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { if (preallocateBuilder_ != null) { return preallocateBuilder_.getMessageOrBuilder(); } else { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig2_8.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getPreallocateFieldBuilder() { if (preallocateBuilder_ == null) { preallocateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getPreallocate(), getParentForChildren(), isClean()); preallocate_ = null; } return preallocateBuilder_; } @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:yandex.cloud.mdb.kafka.v1.TopicConfig2_8) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.TopicConfig2_8) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicConfig2_8 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopicConfig2_8(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig2_8 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopicConfig3OrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.kafka.v1.TopicConfig3) com.google.protobuf.MessageOrBuilder { /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ int getCleanupPolicyValue(); /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy getCleanupPolicy(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ int getCompressionTypeValue(); /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ boolean hasDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ com.google.protobuf.Int64Value getDeleteRetentionMs(); /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ boolean hasFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ com.google.protobuf.Int64Value getFileDeleteDelayMs(); /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ boolean hasFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ com.google.protobuf.Int64Value getFlushMessages(); /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ boolean hasFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ com.google.protobuf.Int64Value getFlushMs(); /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ boolean hasMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ com.google.protobuf.Int64Value getMinCompactionLagMs(); /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ boolean hasRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ com.google.protobuf.Int64Value getRetentionBytes(); /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ boolean hasRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ com.google.protobuf.Int64Value getRetentionMs(); /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ boolean hasMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ com.google.protobuf.Int64Value getMaxMessageBytes(); /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ boolean hasMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ com.google.protobuf.Int64Value getMinInsyncReplicas(); /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ boolean hasSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ com.google.protobuf.Int64Value getSegmentBytes(); /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ boolean hasPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ com.google.protobuf.BoolValue getPreallocate(); /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder(); } /** *
   * A topic settings for 3.x
   * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig3} */ public static final class TopicConfig3 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.kafka.v1.TopicConfig3) TopicConfig3OrBuilder { private static final long serialVersionUID = 0L; // Use TopicConfig3.newBuilder() to construct. private TopicConfig3(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopicConfig3() { cleanupPolicy_ = 0; compressionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TopicConfig3(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopicConfig3( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); cleanupPolicy_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); compressionType_ = rawValue; break; } case 26: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (deleteRetentionMs_ != null) { subBuilder = deleteRetentionMs_.toBuilder(); } deleteRetentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteRetentionMs_); deleteRetentionMs_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (fileDeleteDelayMs_ != null) { subBuilder = fileDeleteDelayMs_.toBuilder(); } fileDeleteDelayMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileDeleteDelayMs_); fileDeleteDelayMs_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMessages_ != null) { subBuilder = flushMessages_.toBuilder(); } flushMessages_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMessages_); flushMessages_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (flushMs_ != null) { subBuilder = flushMs_.toBuilder(); } flushMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flushMs_); flushMs_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minCompactionLagMs_ != null) { subBuilder = minCompactionLagMs_.toBuilder(); } minCompactionLagMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minCompactionLagMs_); minCompactionLagMs_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionBytes_ != null) { subBuilder = retentionBytes_.toBuilder(); } retentionBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionBytes_); retentionBytes_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (retentionMs_ != null) { subBuilder = retentionMs_.toBuilder(); } retentionMs_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retentionMs_); retentionMs_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (maxMessageBytes_ != null) { subBuilder = maxMessageBytes_.toBuilder(); } maxMessageBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxMessageBytes_); maxMessageBytes_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (minInsyncReplicas_ != null) { subBuilder = minInsyncReplicas_.toBuilder(); } minInsyncReplicas_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minInsyncReplicas_); minInsyncReplicas_ = subBuilder.buildPartial(); } break; } case 98: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (segmentBytes_ != null) { subBuilder = segmentBytes_.toBuilder(); } segmentBytes_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(segmentBytes_); segmentBytes_ = subBuilder.buildPartial(); } break; } case 106: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (preallocate_ != null) { subBuilder = preallocate_.toBuilder(); } preallocate_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preallocate_); preallocate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy} */ public enum CleanupPolicy implements com.google.protobuf.ProtocolMessageEnum { /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ CLEANUP_POLICY_UNSPECIFIED(0), /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig3.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ CLEANUP_POLICY_DELETE(1), /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ CLEANUP_POLICY_COMPACT(2), /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ CLEANUP_POLICY_COMPACT_AND_DELETE(3), UNRECOGNIZED(-1), ; /** * CLEANUP_POLICY_UNSPECIFIED = 0; */ public static final int CLEANUP_POLICY_UNSPECIFIED_VALUE = 0; /** *
       * this policy discards log segments when either their retention time or log size limit is reached. See also: [KafkaConfig3.log_retention_ms] and other similar parameters.
       * 
* * CLEANUP_POLICY_DELETE = 1; */ public static final int CLEANUP_POLICY_DELETE_VALUE = 1; /** *
       * this policy compacts messages in log.
       * 
* * CLEANUP_POLICY_COMPACT = 2; */ public static final int CLEANUP_POLICY_COMPACT_VALUE = 2; /** *
       * this policy use both compaction and deletion for messages and log segments.
       * 
* * CLEANUP_POLICY_COMPACT_AND_DELETE = 3; */ public static final int CLEANUP_POLICY_COMPACT_AND_DELETE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CleanupPolicy 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 CleanupPolicy forNumber(int value) { switch (value) { case 0: return CLEANUP_POLICY_UNSPECIFIED; case 1: return CLEANUP_POLICY_DELETE; case 2: return CLEANUP_POLICY_COMPACT; case 3: return CLEANUP_POLICY_COMPACT_AND_DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CleanupPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CleanupPolicy findValueByNumber(int number) { return CleanupPolicy.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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDescriptor().getEnumTypes().get(0); } private static final CleanupPolicy[] VALUES = values(); public static CleanupPolicy 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 CleanupPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy) } public static final int CLEANUP_POLICY_FIELD_NUMBER = 1; private int cleanupPolicy_; /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
     * Retention policy to use on old log messages.
     * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.UNRECOGNIZED : result; } public static final int COMPRESSION_TYPE_FIELD_NUMBER = 2; private int compressionType_; /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
     * The compression type for a given topic.
     * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } public static final int DELETE_RETENTION_MS_FIELD_NUMBER = 3; private com.google.protobuf.Int64Value deleteRetentionMs_; /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ @java.lang.Override public boolean hasDeleteRetentionMs() { return deleteRetentionMs_ != null; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getDeleteRetentionMs() { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } /** *
     * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
     * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { return getDeleteRetentionMs(); } public static final int FILE_DELETE_DELAY_MS_FIELD_NUMBER = 4; private com.google.protobuf.Int64Value fileDeleteDelayMs_; /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ @java.lang.Override public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMs_ != null; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFileDeleteDelayMs() { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } /** *
     * The time to wait before deleting a file from the filesystem.
     * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { return getFileDeleteDelayMs(); } public static final int FLUSH_MESSAGES_FIELD_NUMBER = 5; private com.google.protobuf.Int64Value flushMessages_; /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ @java.lang.Override public boolean hasFlushMessages() { return flushMessages_ != null; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMessages() { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } /** *
     * The number of messages accumulated on a log partition before messages are flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_messages = 5; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { return getFlushMessages(); } public static final int FLUSH_MS_FIELD_NUMBER = 6; private com.google.protobuf.Int64Value flushMs_; /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ @java.lang.Override public boolean hasFlushMs() { return flushMs_ != null; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ @java.lang.Override public com.google.protobuf.Int64Value getFlushMs() { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } /** *
     * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
     * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value flush_ms = 6; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { return getFlushMs(); } public static final int MIN_COMPACTION_LAG_MS_FIELD_NUMBER = 7; private com.google.protobuf.Int64Value minCompactionLagMs_; /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ @java.lang.Override public boolean hasMinCompactionLagMs() { return minCompactionLagMs_ != null; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ @java.lang.Override public com.google.protobuf.Int64Value getMinCompactionLagMs() { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } /** *
     * The minimum time in milliseconds a message will remain uncompacted in the log.
     * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { return getMinCompactionLagMs(); } public static final int RETENTION_BYTES_FIELD_NUMBER = 8; private com.google.protobuf.Int64Value retentionBytes_; /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ @java.lang.Override public boolean hasRetentionBytes() { return retentionBytes_ != null; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionBytes() { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } /** *
     * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
     * It is helpful if you need to control the size of log due to limited disk space.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { return getRetentionBytes(); } public static final int RETENTION_MS_FIELD_NUMBER = 9; private com.google.protobuf.Int64Value retentionMs_; /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ @java.lang.Override public boolean hasRetentionMs() { return retentionMs_ != null; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ @java.lang.Override public com.google.protobuf.Int64Value getRetentionMs() { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } /** *
     * The number of milliseconds to keep a log segment's file before deleting it.
     * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
     * 
* * .google.protobuf.Int64Value retention_ms = 9; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { return getRetentionMs(); } public static final int MAX_MESSAGE_BYTES_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value maxMessageBytes_; /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ @java.lang.Override public boolean hasMaxMessageBytes() { return maxMessageBytes_ != null; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getMaxMessageBytes() { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } /** *
     * The largest record batch size allowed in topic.
     * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { return getMaxMessageBytes(); } public static final int MIN_INSYNC_REPLICAS_FIELD_NUMBER = 11; private com.google.protobuf.Int64Value minInsyncReplicas_; /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ @java.lang.Override public boolean hasMinInsyncReplicas() { return minInsyncReplicas_ != null; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ @java.lang.Override public com.google.protobuf.Int64Value getMinInsyncReplicas() { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } /** *
     * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
     * to be considered successful (when a producer sets acks to "all").
     * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { return getMinInsyncReplicas(); } public static final int SEGMENT_BYTES_FIELD_NUMBER = 12; private com.google.protobuf.Int64Value segmentBytes_; /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ @java.lang.Override public boolean hasSegmentBytes() { return segmentBytes_ != null; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ @java.lang.Override public com.google.protobuf.Int64Value getSegmentBytes() { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } /** *
     * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
     * at a time so a larger segment size means fewer files but less granular control over retention.
     * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
     * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { return getSegmentBytes(); } public static final int PREALLOCATE_FIELD_NUMBER = 13; private com.google.protobuf.BoolValue preallocate_; /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ @java.lang.Override public boolean hasPreallocate() { return preallocate_ != null; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ @java.lang.Override public com.google.protobuf.BoolValue getPreallocate() { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } /** *
     * True if we should preallocate the file on disk when creating a new log segment.
     * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
     * 
* * .google.protobuf.BoolValue preallocate = 13; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { return getPreallocate(); } 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 (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, compressionType_); } if (deleteRetentionMs_ != null) { output.writeMessage(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { output.writeMessage(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { output.writeMessage(5, getFlushMessages()); } if (flushMs_ != null) { output.writeMessage(6, getFlushMs()); } if (minCompactionLagMs_ != null) { output.writeMessage(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { output.writeMessage(8, getRetentionBytes()); } if (retentionMs_ != null) { output.writeMessage(9, getRetentionMs()); } if (maxMessageBytes_ != null) { output.writeMessage(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { output.writeMessage(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { output.writeMessage(12, getSegmentBytes()); } if (preallocate_ != null) { output.writeMessage(13, getPreallocate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cleanupPolicy_ != yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cleanupPolicy_); } if (compressionType_ != yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.COMPRESSION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, compressionType_); } if (deleteRetentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDeleteRetentionMs()); } if (fileDeleteDelayMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFileDeleteDelayMs()); } if (flushMessages_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getFlushMessages()); } if (flushMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFlushMs()); } if (minCompactionLagMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getMinCompactionLagMs()); } if (retentionBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getRetentionBytes()); } if (retentionMs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRetentionMs()); } if (maxMessageBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMaxMessageBytes()); } if (minInsyncReplicas_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMinInsyncReplicas()); } if (segmentBytes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSegmentBytes()); } if (preallocate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPreallocate()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3)) { return super.equals(obj); } yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 other = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) obj; if (cleanupPolicy_ != other.cleanupPolicy_) return false; if (compressionType_ != other.compressionType_) return false; if (hasDeleteRetentionMs() != other.hasDeleteRetentionMs()) return false; if (hasDeleteRetentionMs()) { if (!getDeleteRetentionMs() .equals(other.getDeleteRetentionMs())) return false; } if (hasFileDeleteDelayMs() != other.hasFileDeleteDelayMs()) return false; if (hasFileDeleteDelayMs()) { if (!getFileDeleteDelayMs() .equals(other.getFileDeleteDelayMs())) return false; } if (hasFlushMessages() != other.hasFlushMessages()) return false; if (hasFlushMessages()) { if (!getFlushMessages() .equals(other.getFlushMessages())) return false; } if (hasFlushMs() != other.hasFlushMs()) return false; if (hasFlushMs()) { if (!getFlushMs() .equals(other.getFlushMs())) return false; } if (hasMinCompactionLagMs() != other.hasMinCompactionLagMs()) return false; if (hasMinCompactionLagMs()) { if (!getMinCompactionLagMs() .equals(other.getMinCompactionLagMs())) return false; } if (hasRetentionBytes() != other.hasRetentionBytes()) return false; if (hasRetentionBytes()) { if (!getRetentionBytes() .equals(other.getRetentionBytes())) return false; } if (hasRetentionMs() != other.hasRetentionMs()) return false; if (hasRetentionMs()) { if (!getRetentionMs() .equals(other.getRetentionMs())) return false; } if (hasMaxMessageBytes() != other.hasMaxMessageBytes()) return false; if (hasMaxMessageBytes()) { if (!getMaxMessageBytes() .equals(other.getMaxMessageBytes())) return false; } if (hasMinInsyncReplicas() != other.hasMinInsyncReplicas()) return false; if (hasMinInsyncReplicas()) { if (!getMinInsyncReplicas() .equals(other.getMinInsyncReplicas())) return false; } if (hasSegmentBytes() != other.hasSegmentBytes()) return false; if (hasSegmentBytes()) { if (!getSegmentBytes() .equals(other.getSegmentBytes())) return false; } if (hasPreallocate() != other.hasPreallocate()) return false; if (hasPreallocate()) { if (!getPreallocate() .equals(other.getPreallocate())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CLEANUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + cleanupPolicy_; hash = (37 * hash) + COMPRESSION_TYPE_FIELD_NUMBER; hash = (53 * hash) + compressionType_; if (hasDeleteRetentionMs()) { hash = (37 * hash) + DELETE_RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getDeleteRetentionMs().hashCode(); } if (hasFileDeleteDelayMs()) { hash = (37 * hash) + FILE_DELETE_DELAY_MS_FIELD_NUMBER; hash = (53 * hash) + getFileDeleteDelayMs().hashCode(); } if (hasFlushMessages()) { hash = (37 * hash) + FLUSH_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getFlushMessages().hashCode(); } if (hasFlushMs()) { hash = (37 * hash) + FLUSH_MS_FIELD_NUMBER; hash = (53 * hash) + getFlushMs().hashCode(); } if (hasMinCompactionLagMs()) { hash = (37 * hash) + MIN_COMPACTION_LAG_MS_FIELD_NUMBER; hash = (53 * hash) + getMinCompactionLagMs().hashCode(); } if (hasRetentionBytes()) { hash = (37 * hash) + RETENTION_BYTES_FIELD_NUMBER; hash = (53 * hash) + getRetentionBytes().hashCode(); } if (hasRetentionMs()) { hash = (37 * hash) + RETENTION_MS_FIELD_NUMBER; hash = (53 * hash) + getRetentionMs().hashCode(); } if (hasMaxMessageBytes()) { hash = (37 * hash) + MAX_MESSAGE_BYTES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessageBytes().hashCode(); } if (hasMinInsyncReplicas()) { hash = (37 * hash) + MIN_INSYNC_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getMinInsyncReplicas().hashCode(); } if (hasSegmentBytes()) { hash = (37 * hash) + SEGMENT_BYTES_FIELD_NUMBER; hash = (53 * hash) + getSegmentBytes().hashCode(); } if (hasPreallocate()) { hash = (37 * hash) + PREALLOCATE_FIELD_NUMBER; hash = (53 * hash) + getPreallocate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 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 yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 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(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 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; } /** *
     * A topic settings for 3.x
     * 
* * Protobuf type {@code yandex.cloud.mdb.kafka.v1.TopicConfig3} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.kafka.v1.TopicConfig3) yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.class, yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.Builder.class); } // Construct using yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); cleanupPolicy_ = 0; compressionType_ = 0; if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } if (flushMessagesBuilder_ == null) { flushMessages_ = null; } else { flushMessages_ = null; flushMessagesBuilder_ = null; } if (flushMsBuilder_ == null) { flushMs_ = null; } else { flushMs_ = null; flushMsBuilder_ = null; } if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } if (retentionBytesBuilder_ == null) { retentionBytes_ = null; } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } if (retentionMsBuilder_ == null) { retentionMs_ = null; } else { retentionMs_ = null; retentionMsBuilder_ = null; } if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } if (segmentBytesBuilder_ == null) { segmentBytes_ = null; } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } if (preallocateBuilder_ == null) { preallocate_ = null; } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getDefaultInstanceForType() { return yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 build() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 buildPartial() { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 result = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3(this); result.cleanupPolicy_ = cleanupPolicy_; result.compressionType_ = compressionType_; if (deleteRetentionMsBuilder_ == null) { result.deleteRetentionMs_ = deleteRetentionMs_; } else { result.deleteRetentionMs_ = deleteRetentionMsBuilder_.build(); } if (fileDeleteDelayMsBuilder_ == null) { result.fileDeleteDelayMs_ = fileDeleteDelayMs_; } else { result.fileDeleteDelayMs_ = fileDeleteDelayMsBuilder_.build(); } if (flushMessagesBuilder_ == null) { result.flushMessages_ = flushMessages_; } else { result.flushMessages_ = flushMessagesBuilder_.build(); } if (flushMsBuilder_ == null) { result.flushMs_ = flushMs_; } else { result.flushMs_ = flushMsBuilder_.build(); } if (minCompactionLagMsBuilder_ == null) { result.minCompactionLagMs_ = minCompactionLagMs_; } else { result.minCompactionLagMs_ = minCompactionLagMsBuilder_.build(); } if (retentionBytesBuilder_ == null) { result.retentionBytes_ = retentionBytes_; } else { result.retentionBytes_ = retentionBytesBuilder_.build(); } if (retentionMsBuilder_ == null) { result.retentionMs_ = retentionMs_; } else { result.retentionMs_ = retentionMsBuilder_.build(); } if (maxMessageBytesBuilder_ == null) { result.maxMessageBytes_ = maxMessageBytes_; } else { result.maxMessageBytes_ = maxMessageBytesBuilder_.build(); } if (minInsyncReplicasBuilder_ == null) { result.minInsyncReplicas_ = minInsyncReplicas_; } else { result.minInsyncReplicas_ = minInsyncReplicasBuilder_.build(); } if (segmentBytesBuilder_ == null) { result.segmentBytes_ = segmentBytes_; } else { result.segmentBytes_ = segmentBytesBuilder_.build(); } if (preallocateBuilder_ == null) { result.preallocate_ = preallocate_; } else { result.preallocate_ = preallocateBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) { return mergeFrom((yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 other) { if (other == yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.getDefaultInstance()) return this; if (other.cleanupPolicy_ != 0) { setCleanupPolicyValue(other.getCleanupPolicyValue()); } if (other.compressionType_ != 0) { setCompressionTypeValue(other.getCompressionTypeValue()); } if (other.hasDeleteRetentionMs()) { mergeDeleteRetentionMs(other.getDeleteRetentionMs()); } if (other.hasFileDeleteDelayMs()) { mergeFileDeleteDelayMs(other.getFileDeleteDelayMs()); } if (other.hasFlushMessages()) { mergeFlushMessages(other.getFlushMessages()); } if (other.hasFlushMs()) { mergeFlushMs(other.getFlushMs()); } if (other.hasMinCompactionLagMs()) { mergeMinCompactionLagMs(other.getMinCompactionLagMs()); } if (other.hasRetentionBytes()) { mergeRetentionBytes(other.getRetentionBytes()); } if (other.hasRetentionMs()) { mergeRetentionMs(other.getRetentionMs()); } if (other.hasMaxMessageBytes()) { mergeMaxMessageBytes(other.getMaxMessageBytes()); } if (other.hasMinInsyncReplicas()) { mergeMinInsyncReplicas(other.getMinInsyncReplicas()); } if (other.hasSegmentBytes()) { mergeSegmentBytes(other.getSegmentBytes()); } if (other.hasPreallocate()) { mergePreallocate(other.getPreallocate()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cleanupPolicy_ = 0; /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @param value The enum numeric value on the wire for cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicyValue(int value) { cleanupPolicy_ = value; onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy result = yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy.UNRECOGNIZED : result; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @param value The cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicy(yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3.CleanupPolicy value) { if (value == null) { throw new NullPointerException(); } cleanupPolicy_ = value.getNumber(); onChanged(); return this; } /** *
       * Retention policy to use on old log messages.
       * 
* * .yandex.cloud.mdb.kafka.v1.TopicConfig3.CleanupPolicy cleanup_policy = 1; * @return This builder for chaining. */ public Builder clearCleanupPolicy() { cleanupPolicy_ = 0; onChanged(); return this; } private int compressionType_ = 0; /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The enum numeric value on the wire for compressionType. */ @java.lang.Override public int getCompressionTypeValue() { return compressionType_; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The enum numeric value on the wire for compressionType to set. * @return This builder for chaining. */ public Builder setCompressionTypeValue(int value) { compressionType_ = value; onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return The compressionType. */ @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.Common.CompressionType getCompressionType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.kafka.v1.Common.CompressionType result = yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.valueOf(compressionType_); return result == null ? yandex.cloud.api.mdb.kafka.v1.Common.CompressionType.UNRECOGNIZED : result; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @param value The compressionType to set. * @return This builder for chaining. */ public Builder setCompressionType(yandex.cloud.api.mdb.kafka.v1.Common.CompressionType value) { if (value == null) { throw new NullPointerException(); } compressionType_ = value.getNumber(); onChanged(); return this; } /** *
       * The compression type for a given topic.
       * 
* * .yandex.cloud.mdb.kafka.v1.CompressionType compression_type = 2; * @return This builder for chaining. */ public Builder clearCompressionType() { compressionType_ = 0; onChanged(); return this; } private com.google.protobuf.Int64Value deleteRetentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> deleteRetentionMsBuilder_; /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return Whether the deleteRetentionMs field is set. */ public boolean hasDeleteRetentionMs() { return deleteRetentionMsBuilder_ != null || deleteRetentionMs_ != null; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; * @return The deleteRetentionMs. */ public com.google.protobuf.Int64Value getDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } else { return deleteRetentionMsBuilder_.getMessage(); } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteRetentionMs_ = value; onChanged(); } else { deleteRetentionMsBuilder_.setMessage(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder setDeleteRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = builderForValue.build(); onChanged(); } else { deleteRetentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder mergeDeleteRetentionMs(com.google.protobuf.Int64Value value) { if (deleteRetentionMsBuilder_ == null) { if (deleteRetentionMs_ != null) { deleteRetentionMs_ = com.google.protobuf.Int64Value.newBuilder(deleteRetentionMs_).mergeFrom(value).buildPartial(); } else { deleteRetentionMs_ = value; } onChanged(); } else { deleteRetentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public Builder clearDeleteRetentionMs() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMs_ = null; onChanged(); } else { deleteRetentionMs_ = null; deleteRetentionMsBuilder_ = null; } return this; } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64Value.Builder getDeleteRetentionMsBuilder() { onChanged(); return getDeleteRetentionMsFieldBuilder().getBuilder(); } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ public com.google.protobuf.Int64ValueOrBuilder getDeleteRetentionMsOrBuilder() { if (deleteRetentionMsBuilder_ != null) { return deleteRetentionMsBuilder_.getMessageOrBuilder(); } else { return deleteRetentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deleteRetentionMs_; } } /** *
       * The amount of time in milliseconds to retain delete tombstone markers for log compacted topics.
       * 
* * .google.protobuf.Int64Value delete_retention_ms = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getDeleteRetentionMsFieldBuilder() { if (deleteRetentionMsBuilder_ == null) { deleteRetentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getDeleteRetentionMs(), getParentForChildren(), isClean()); deleteRetentionMs_ = null; } return deleteRetentionMsBuilder_; } private com.google.protobuf.Int64Value fileDeleteDelayMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> fileDeleteDelayMsBuilder_; /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return Whether the fileDeleteDelayMs field is set. */ public boolean hasFileDeleteDelayMs() { return fileDeleteDelayMsBuilder_ != null || fileDeleteDelayMs_ != null; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; * @return The fileDeleteDelayMs. */ public com.google.protobuf.Int64Value getFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } else { return fileDeleteDelayMsBuilder_.getMessage(); } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileDeleteDelayMs_ = value; onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder setFileDeleteDelayMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = builderForValue.build(); onChanged(); } else { fileDeleteDelayMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder mergeFileDeleteDelayMs(com.google.protobuf.Int64Value value) { if (fileDeleteDelayMsBuilder_ == null) { if (fileDeleteDelayMs_ != null) { fileDeleteDelayMs_ = com.google.protobuf.Int64Value.newBuilder(fileDeleteDelayMs_).mergeFrom(value).buildPartial(); } else { fileDeleteDelayMs_ = value; } onChanged(); } else { fileDeleteDelayMsBuilder_.mergeFrom(value); } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public Builder clearFileDeleteDelayMs() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMs_ = null; onChanged(); } else { fileDeleteDelayMs_ = null; fileDeleteDelayMsBuilder_ = null; } return this; } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64Value.Builder getFileDeleteDelayMsBuilder() { onChanged(); return getFileDeleteDelayMsFieldBuilder().getBuilder(); } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ public com.google.protobuf.Int64ValueOrBuilder getFileDeleteDelayMsOrBuilder() { if (fileDeleteDelayMsBuilder_ != null) { return fileDeleteDelayMsBuilder_.getMessageOrBuilder(); } else { return fileDeleteDelayMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fileDeleteDelayMs_; } } /** *
       * The time to wait before deleting a file from the filesystem.
       * 
* * .google.protobuf.Int64Value file_delete_delay_ms = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFileDeleteDelayMsFieldBuilder() { if (fileDeleteDelayMsBuilder_ == null) { fileDeleteDelayMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFileDeleteDelayMs(), getParentForChildren(), isClean()); fileDeleteDelayMs_ = null; } return fileDeleteDelayMsBuilder_; } private com.google.protobuf.Int64Value flushMessages_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMessagesBuilder_; /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return Whether the flushMessages field is set. */ public boolean hasFlushMessages() { return flushMessagesBuilder_ != null || flushMessages_ != null; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; * @return The flushMessages. */ public com.google.protobuf.Int64Value getFlushMessages() { if (flushMessagesBuilder_ == null) { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } else { return flushMessagesBuilder_.getMessage(); } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMessages_ = value; onChanged(); } else { flushMessagesBuilder_.setMessage(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder setFlushMessages( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMessagesBuilder_ == null) { flushMessages_ = builderForValue.build(); onChanged(); } else { flushMessagesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder mergeFlushMessages(com.google.protobuf.Int64Value value) { if (flushMessagesBuilder_ == null) { if (flushMessages_ != null) { flushMessages_ = com.google.protobuf.Int64Value.newBuilder(flushMessages_).mergeFrom(value).buildPartial(); } else { flushMessages_ = value; } onChanged(); } else { flushMessagesBuilder_.mergeFrom(value); } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public Builder clearFlushMessages() { if (flushMessagesBuilder_ == null) { flushMessages_ = null; onChanged(); } else { flushMessages_ = null; flushMessagesBuilder_ = null; } return this; } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64Value.Builder getFlushMessagesBuilder() { onChanged(); return getFlushMessagesFieldBuilder().getBuilder(); } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMessagesOrBuilder() { if (flushMessagesBuilder_ != null) { return flushMessagesBuilder_.getMessageOrBuilder(); } else { return flushMessages_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMessages_; } } /** *
       * The number of messages accumulated on a log partition before messages are flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_messages] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_messages = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMessagesFieldBuilder() { if (flushMessagesBuilder_ == null) { flushMessagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMessages(), getParentForChildren(), isClean()); flushMessages_ = null; } return flushMessagesBuilder_; } private com.google.protobuf.Int64Value flushMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> flushMsBuilder_; /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return Whether the flushMs field is set. */ public boolean hasFlushMs() { return flushMsBuilder_ != null || flushMs_ != null; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; * @return The flushMs. */ public com.google.protobuf.Int64Value getFlushMs() { if (flushMsBuilder_ == null) { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } else { return flushMsBuilder_.getMessage(); } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flushMs_ = value; onChanged(); } else { flushMsBuilder_.setMessage(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder setFlushMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (flushMsBuilder_ == null) { flushMs_ = builderForValue.build(); onChanged(); } else { flushMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder mergeFlushMs(com.google.protobuf.Int64Value value) { if (flushMsBuilder_ == null) { if (flushMs_ != null) { flushMs_ = com.google.protobuf.Int64Value.newBuilder(flushMs_).mergeFrom(value).buildPartial(); } else { flushMs_ = value; } onChanged(); } else { flushMsBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public Builder clearFlushMs() { if (flushMsBuilder_ == null) { flushMs_ = null; onChanged(); } else { flushMs_ = null; flushMsBuilder_ = null; } return this; } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64Value.Builder getFlushMsBuilder() { onChanged(); return getFlushMsFieldBuilder().getBuilder(); } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ public com.google.protobuf.Int64ValueOrBuilder getFlushMsOrBuilder() { if (flushMsBuilder_ != null) { return flushMsBuilder_.getMessageOrBuilder(); } else { return flushMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : flushMs_; } } /** *
       * The maximum time in milliseconds that a message in the topic is kept in memory before flushed to disk.
       * This setting overrides the cluster-level [KafkaConfig3.log_flush_interval_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value flush_ms = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getFlushMsFieldBuilder() { if (flushMsBuilder_ == null) { flushMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getFlushMs(), getParentForChildren(), isClean()); flushMs_ = null; } return flushMsBuilder_; } private com.google.protobuf.Int64Value minCompactionLagMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minCompactionLagMsBuilder_; /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return Whether the minCompactionLagMs field is set. */ public boolean hasMinCompactionLagMs() { return minCompactionLagMsBuilder_ != null || minCompactionLagMs_ != null; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; * @return The minCompactionLagMs. */ public com.google.protobuf.Int64Value getMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } else { return minCompactionLagMsBuilder_.getMessage(); } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minCompactionLagMs_ = value; onChanged(); } else { minCompactionLagMsBuilder_.setMessage(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder setMinCompactionLagMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = builderForValue.build(); onChanged(); } else { minCompactionLagMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder mergeMinCompactionLagMs(com.google.protobuf.Int64Value value) { if (minCompactionLagMsBuilder_ == null) { if (minCompactionLagMs_ != null) { minCompactionLagMs_ = com.google.protobuf.Int64Value.newBuilder(minCompactionLagMs_).mergeFrom(value).buildPartial(); } else { minCompactionLagMs_ = value; } onChanged(); } else { minCompactionLagMsBuilder_.mergeFrom(value); } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public Builder clearMinCompactionLagMs() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMs_ = null; onChanged(); } else { minCompactionLagMs_ = null; minCompactionLagMsBuilder_ = null; } return this; } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64Value.Builder getMinCompactionLagMsBuilder() { onChanged(); return getMinCompactionLagMsFieldBuilder().getBuilder(); } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ public com.google.protobuf.Int64ValueOrBuilder getMinCompactionLagMsOrBuilder() { if (minCompactionLagMsBuilder_ != null) { return minCompactionLagMsBuilder_.getMessageOrBuilder(); } else { return minCompactionLagMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minCompactionLagMs_; } } /** *
       * The minimum time in milliseconds a message will remain uncompacted in the log.
       * 
* * .google.protobuf.Int64Value min_compaction_lag_ms = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinCompactionLagMsFieldBuilder() { if (minCompactionLagMsBuilder_ == null) { minCompactionLagMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinCompactionLagMs(), getParentForChildren(), isClean()); minCompactionLagMs_ = null; } return minCompactionLagMsBuilder_; } private com.google.protobuf.Int64Value retentionBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionBytesBuilder_; /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return Whether the retentionBytes field is set. */ public boolean hasRetentionBytes() { return retentionBytesBuilder_ != null || retentionBytes_ != null; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; * @return The retentionBytes. */ public com.google.protobuf.Int64Value getRetentionBytes() { if (retentionBytesBuilder_ == null) { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } else { return retentionBytesBuilder_.getMessage(); } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionBytes_ = value; onChanged(); } else { retentionBytesBuilder_.setMessage(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder setRetentionBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionBytesBuilder_ == null) { retentionBytes_ = builderForValue.build(); onChanged(); } else { retentionBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder mergeRetentionBytes(com.google.protobuf.Int64Value value) { if (retentionBytesBuilder_ == null) { if (retentionBytes_ != null) { retentionBytes_ = com.google.protobuf.Int64Value.newBuilder(retentionBytes_).mergeFrom(value).buildPartial(); } else { retentionBytes_ = value; } onChanged(); } else { retentionBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public Builder clearRetentionBytes() { if (retentionBytesBuilder_ == null) { retentionBytes_ = null; onChanged(); } else { retentionBytes_ = null; retentionBytesBuilder_ = null; } return this; } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64Value.Builder getRetentionBytesBuilder() { onChanged(); return getRetentionBytesFieldBuilder().getBuilder(); } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionBytesOrBuilder() { if (retentionBytesBuilder_ != null) { return retentionBytesBuilder_.getMessageOrBuilder(); } else { return retentionBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionBytes_; } } /** *
       * The maximum size a partition can grow to before Kafka will discard old log segments to free up space if the `delete` [cleanup_policy] is in effect.
       * It is helpful if you need to control the size of log due to limited disk space.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_bytes = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionBytesFieldBuilder() { if (retentionBytesBuilder_ == null) { retentionBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionBytes(), getParentForChildren(), isClean()); retentionBytes_ = null; } return retentionBytesBuilder_; } private com.google.protobuf.Int64Value retentionMs_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> retentionMsBuilder_; /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return Whether the retentionMs field is set. */ public boolean hasRetentionMs() { return retentionMsBuilder_ != null || retentionMs_ != null; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; * @return The retentionMs. */ public com.google.protobuf.Int64Value getRetentionMs() { if (retentionMsBuilder_ == null) { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } else { return retentionMsBuilder_.getMessage(); } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionMs_ = value; onChanged(); } else { retentionMsBuilder_.setMessage(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder setRetentionMs( com.google.protobuf.Int64Value.Builder builderForValue) { if (retentionMsBuilder_ == null) { retentionMs_ = builderForValue.build(); onChanged(); } else { retentionMsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder mergeRetentionMs(com.google.protobuf.Int64Value value) { if (retentionMsBuilder_ == null) { if (retentionMs_ != null) { retentionMs_ = com.google.protobuf.Int64Value.newBuilder(retentionMs_).mergeFrom(value).buildPartial(); } else { retentionMs_ = value; } onChanged(); } else { retentionMsBuilder_.mergeFrom(value); } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public Builder clearRetentionMs() { if (retentionMsBuilder_ == null) { retentionMs_ = null; onChanged(); } else { retentionMs_ = null; retentionMsBuilder_ = null; } return this; } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64Value.Builder getRetentionMsBuilder() { onChanged(); return getRetentionMsFieldBuilder().getBuilder(); } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ public com.google.protobuf.Int64ValueOrBuilder getRetentionMsOrBuilder() { if (retentionMsBuilder_ != null) { return retentionMsBuilder_.getMessageOrBuilder(); } else { return retentionMs_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : retentionMs_; } } /** *
       * The number of milliseconds to keep a log segment's file before deleting it.
       * This setting overrides the cluster-level [KafkaConfig3.log_retention_ms] setting on the topic level.
       * 
* * .google.protobuf.Int64Value retention_ms = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getRetentionMsFieldBuilder() { if (retentionMsBuilder_ == null) { retentionMsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getRetentionMs(), getParentForChildren(), isClean()); retentionMs_ = null; } return retentionMsBuilder_; } private com.google.protobuf.Int64Value maxMessageBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxMessageBytesBuilder_; /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return Whether the maxMessageBytes field is set. */ public boolean hasMaxMessageBytes() { return maxMessageBytesBuilder_ != null || maxMessageBytes_ != null; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; * @return The maxMessageBytes. */ public com.google.protobuf.Int64Value getMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } else { return maxMessageBytesBuilder_.getMessage(); } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxMessageBytes_ = value; onChanged(); } else { maxMessageBytesBuilder_.setMessage(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder setMaxMessageBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = builderForValue.build(); onChanged(); } else { maxMessageBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder mergeMaxMessageBytes(com.google.protobuf.Int64Value value) { if (maxMessageBytesBuilder_ == null) { if (maxMessageBytes_ != null) { maxMessageBytes_ = com.google.protobuf.Int64Value.newBuilder(maxMessageBytes_).mergeFrom(value).buildPartial(); } else { maxMessageBytes_ = value; } onChanged(); } else { maxMessageBytesBuilder_.mergeFrom(value); } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public Builder clearMaxMessageBytes() { if (maxMessageBytesBuilder_ == null) { maxMessageBytes_ = null; onChanged(); } else { maxMessageBytes_ = null; maxMessageBytesBuilder_ = null; } return this; } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64Value.Builder getMaxMessageBytesBuilder() { onChanged(); return getMaxMessageBytesFieldBuilder().getBuilder(); } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ public com.google.protobuf.Int64ValueOrBuilder getMaxMessageBytesOrBuilder() { if (maxMessageBytesBuilder_ != null) { return maxMessageBytesBuilder_.getMessageOrBuilder(); } else { return maxMessageBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxMessageBytes_; } } /** *
       * The largest record batch size allowed in topic.
       * 
* * .google.protobuf.Int64Value max_message_bytes = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMaxMessageBytesFieldBuilder() { if (maxMessageBytesBuilder_ == null) { maxMessageBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMaxMessageBytes(), getParentForChildren(), isClean()); maxMessageBytes_ = null; } return maxMessageBytesBuilder_; } private com.google.protobuf.Int64Value minInsyncReplicas_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> minInsyncReplicasBuilder_; /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return Whether the minInsyncReplicas field is set. */ public boolean hasMinInsyncReplicas() { return minInsyncReplicasBuilder_ != null || minInsyncReplicas_ != null; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; * @return The minInsyncReplicas. */ public com.google.protobuf.Int64Value getMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } else { return minInsyncReplicasBuilder_.getMessage(); } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minInsyncReplicas_ = value; onChanged(); } else { minInsyncReplicasBuilder_.setMessage(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder setMinInsyncReplicas( com.google.protobuf.Int64Value.Builder builderForValue) { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = builderForValue.build(); onChanged(); } else { minInsyncReplicasBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder mergeMinInsyncReplicas(com.google.protobuf.Int64Value value) { if (minInsyncReplicasBuilder_ == null) { if (minInsyncReplicas_ != null) { minInsyncReplicas_ = com.google.protobuf.Int64Value.newBuilder(minInsyncReplicas_).mergeFrom(value).buildPartial(); } else { minInsyncReplicas_ = value; } onChanged(); } else { minInsyncReplicasBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public Builder clearMinInsyncReplicas() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicas_ = null; onChanged(); } else { minInsyncReplicas_ = null; minInsyncReplicasBuilder_ = null; } return this; } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64Value.Builder getMinInsyncReplicasBuilder() { onChanged(); return getMinInsyncReplicasFieldBuilder().getBuilder(); } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ public com.google.protobuf.Int64ValueOrBuilder getMinInsyncReplicasOrBuilder() { if (minInsyncReplicasBuilder_ != null) { return minInsyncReplicasBuilder_.getMessageOrBuilder(); } else { return minInsyncReplicas_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : minInsyncReplicas_; } } /** *
       * This configuration specifies the minimum number of replicas that must acknowledge a write to topic for the write
       * to be considered successful (when a producer sets acks to "all").
       * 
* * .google.protobuf.Int64Value min_insync_replicas = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getMinInsyncReplicasFieldBuilder() { if (minInsyncReplicasBuilder_ == null) { minInsyncReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getMinInsyncReplicas(), getParentForChildren(), isClean()); minInsyncReplicas_ = null; } return minInsyncReplicasBuilder_; } private com.google.protobuf.Int64Value segmentBytes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> segmentBytesBuilder_; /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return Whether the segmentBytes field is set. */ public boolean hasSegmentBytes() { return segmentBytesBuilder_ != null || segmentBytes_ != null; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; * @return The segmentBytes. */ public com.google.protobuf.Int64Value getSegmentBytes() { if (segmentBytesBuilder_ == null) { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } else { return segmentBytesBuilder_.getMessage(); } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } segmentBytes_ = value; onChanged(); } else { segmentBytesBuilder_.setMessage(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder setSegmentBytes( com.google.protobuf.Int64Value.Builder builderForValue) { if (segmentBytesBuilder_ == null) { segmentBytes_ = builderForValue.build(); onChanged(); } else { segmentBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder mergeSegmentBytes(com.google.protobuf.Int64Value value) { if (segmentBytesBuilder_ == null) { if (segmentBytes_ != null) { segmentBytes_ = com.google.protobuf.Int64Value.newBuilder(segmentBytes_).mergeFrom(value).buildPartial(); } else { segmentBytes_ = value; } onChanged(); } else { segmentBytesBuilder_.mergeFrom(value); } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public Builder clearSegmentBytes() { if (segmentBytesBuilder_ == null) { segmentBytes_ = null; onChanged(); } else { segmentBytes_ = null; segmentBytesBuilder_ = null; } return this; } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64Value.Builder getSegmentBytesBuilder() { onChanged(); return getSegmentBytesFieldBuilder().getBuilder(); } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ public com.google.protobuf.Int64ValueOrBuilder getSegmentBytesOrBuilder() { if (segmentBytesBuilder_ != null) { return segmentBytesBuilder_.getMessageOrBuilder(); } else { return segmentBytes_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : segmentBytes_; } } /** *
       * This configuration controls the segment file size for the log. Retention and cleaning is always done a file
       * at a time so a larger segment size means fewer files but less granular control over retention.
       * This setting overrides the cluster-level [KafkaConfig3.log_segment_bytes] setting on the topic level.
       * 
* * .google.protobuf.Int64Value segment_bytes = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getSegmentBytesFieldBuilder() { if (segmentBytesBuilder_ == null) { segmentBytesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getSegmentBytes(), getParentForChildren(), isClean()); segmentBytes_ = null; } return segmentBytesBuilder_; } private com.google.protobuf.BoolValue preallocate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> preallocateBuilder_; /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return Whether the preallocate field is set. */ public boolean hasPreallocate() { return preallocateBuilder_ != null || preallocate_ != null; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; * @return The preallocate. */ public com.google.protobuf.BoolValue getPreallocate() { if (preallocateBuilder_ == null) { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } else { return preallocateBuilder_.getMessage(); } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preallocate_ = value; onChanged(); } else { preallocateBuilder_.setMessage(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder setPreallocate( com.google.protobuf.BoolValue.Builder builderForValue) { if (preallocateBuilder_ == null) { preallocate_ = builderForValue.build(); onChanged(); } else { preallocateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder mergePreallocate(com.google.protobuf.BoolValue value) { if (preallocateBuilder_ == null) { if (preallocate_ != null) { preallocate_ = com.google.protobuf.BoolValue.newBuilder(preallocate_).mergeFrom(value).buildPartial(); } else { preallocate_ = value; } onChanged(); } else { preallocateBuilder_.mergeFrom(value); } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public Builder clearPreallocate() { if (preallocateBuilder_ == null) { preallocate_ = null; onChanged(); } else { preallocate_ = null; preallocateBuilder_ = null; } return this; } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValue.Builder getPreallocateBuilder() { onChanged(); return getPreallocateFieldBuilder().getBuilder(); } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ public com.google.protobuf.BoolValueOrBuilder getPreallocateOrBuilder() { if (preallocateBuilder_ != null) { return preallocateBuilder_.getMessageOrBuilder(); } else { return preallocate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : preallocate_; } } /** *
       * True if we should preallocate the file on disk when creating a new log segment.
       * This setting overrides the cluster-level [KafkaConfig3.log_preallocate] setting on the topic level.
       * 
* * .google.protobuf.BoolValue preallocate = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getPreallocateFieldBuilder() { if (preallocateBuilder_ == null) { preallocateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getPreallocate(), getParentForChildren(), isClean()); preallocate_ = null; } return preallocateBuilder_; } @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:yandex.cloud.mdb.kafka.v1.TopicConfig3) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.kafka.v1.TopicConfig3) private static final yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3(); } public static yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopicConfig3 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopicConfig3(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.kafka.v1.TopicOuterClass.TopicConfig3 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_Topic_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_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%yandex/cloud/mdb/kafka/v1/topic.proto\022" + "\031yandex.cloud.mdb.kafka.v1\032 google/proto" + "buf/descriptor.proto\032\036google/protobuf/wr" + "appers.proto\032&yandex/cloud/mdb/kafka/v1/" + "common.proto\"\205\004\n\005Topic\022\014\n\004name\030\001 \001(\t\022\022\n\n" + "cluster_id\030\002 \001(\t\022/\n\npartitions\030\003 \001(\0132\033.g" + "oogle.protobuf.Int64Value\0227\n\022replication" + "_factor\030\004 \001(\0132\033.google.protobuf.Int64Val" + "ue\022Z\n\020topic_config_2_1\030\005 \001(\0132).yandex.cl" + "oud.mdb.kafka.v1.TopicConfig2_1B\002\030\001H\000R\017t" + "opicConfig_2_1\022Z\n\020topic_config_2_6\030\006 \001(\013" + "2).yandex.cloud.mdb.kafka.v1.TopicConfig" + "2_6B\002\030\001H\000R\017topicConfig_2_6\022V\n\020topic_conf" + "ig_2_8\030\007 \001(\0132).yandex.cloud.mdb.kafka.v1" + ".TopicConfig2_8H\000R\017topicConfig_2_8\022P\n\016to" + "pic_config_3\030\010 \001(\0132\'.yandex.cloud.mdb.ka" + "fka.v1.TopicConfig3H\000R\rtopicConfig_3B\016\n\014" + "topic_config\"\365\003\n\tTopicSpec\022\014\n\004name\030\001 \001(\t" + "\022/\n\npartitions\030\002 \001(\0132\033.google.protobuf.I" + "nt64Value\0227\n\022replication_factor\030\003 \001(\0132\033." + "google.protobuf.Int64Value\022Z\n\020topic_conf" + "ig_2_1\030\004 \001(\0132).yandex.cloud.mdb.kafka.v1" + ".TopicConfig2_1B\002\030\001H\000R\017topicConfig_2_1\022Z" + "\n\020topic_config_2_6\030\005 \001(\0132).yandex.cloud." + "mdb.kafka.v1.TopicConfig2_6B\002\030\001H\000R\017topic" + "Config_2_6\022V\n\020topic_config_2_8\030\006 \001(\0132).y" + "andex.cloud.mdb.kafka.v1.TopicConfig2_8H" + "\000R\017topicConfig_2_8\022P\n\016topic_config_3\030\007 \001" + "(\0132\'.yandex.cloud.mdb.kafka.v1.TopicConf" + "ig3H\000R\rtopicConfig_3B\016\n\014topic_config\"\220\007\n" + "\016TopicConfig2_1\022O\n\016cleanup_policy\030\001 \001(\0162" + "7.yandex.cloud.mdb.kafka.v1.TopicConfig2" + "_1.CleanupPolicy\022D\n\020compression_type\030\002 \001" + "(\0162*.yandex.cloud.mdb.kafka.v1.Compressi" + "onType\0228\n\023delete_retention_ms\030\003 \001(\0132\033.go" + "ogle.protobuf.Int64Value\0229\n\024file_delete_" + "delay_ms\030\004 \001(\0132\033.google.protobuf.Int64Va" + "lue\0223\n\016flush_messages\030\005 \001(\0132\033.google.pro" + "tobuf.Int64Value\022-\n\010flush_ms\030\006 \001(\0132\033.goo" + "gle.protobuf.Int64Value\022:\n\025min_compactio" + "n_lag_ms\030\007 \001(\0132\033.google.protobuf.Int64Va" + "lue\0224\n\017retention_bytes\030\010 \001(\0132\033.google.pr" + "otobuf.Int64Value\0221\n\014retention_ms\030\t \001(\0132" + "\033.google.protobuf.Int64Value\0226\n\021max_mess" + "age_bytes\030\n \001(\0132\033.google.protobuf.Int64V" + "alue\0228\n\023min_insync_replicas\030\013 \001(\0132\033.goog" + "le.protobuf.Int64Value\0222\n\rsegment_bytes\030" + "\014 \001(\0132\033.google.protobuf.Int64Value\022/\n\013pr" + "eallocate\030\r \001(\0132\032.google.protobuf.BoolVa" + "lue\"\215\001\n\rCleanupPolicy\022\036\n\032CLEANUP_POLICY_" + "UNSPECIFIED\020\000\022\031\n\025CLEANUP_POLICY_DELETE\020\001" + "\022\032\n\026CLEANUP_POLICY_COMPACT\020\002\022%\n!CLEANUP_" + "POLICY_COMPACT_AND_DELETE\020\003:\002\030\001\"\220\007\n\016Topi" + "cConfig2_6\022O\n\016cleanup_policy\030\001 \001(\01627.yan" + "dex.cloud.mdb.kafka.v1.TopicConfig2_6.Cl" + "eanupPolicy\022D\n\020compression_type\030\002 \001(\0162*." + "yandex.cloud.mdb.kafka.v1.CompressionTyp" + "e\0228\n\023delete_retention_ms\030\003 \001(\0132\033.google." + "protobuf.Int64Value\0229\n\024file_delete_delay" + "_ms\030\004 \001(\0132\033.google.protobuf.Int64Value\0223" + "\n\016flush_messages\030\005 \001(\0132\033.google.protobuf" + ".Int64Value\022-\n\010flush_ms\030\006 \001(\0132\033.google.p" + "rotobuf.Int64Value\022:\n\025min_compaction_lag" + "_ms\030\007 \001(\0132\033.google.protobuf.Int64Value\0224" + "\n\017retention_bytes\030\010 \001(\0132\033.google.protobu" + "f.Int64Value\0221\n\014retention_ms\030\t \001(\0132\033.goo" + "gle.protobuf.Int64Value\0226\n\021max_message_b" + "ytes\030\n \001(\0132\033.google.protobuf.Int64Value\022" + "8\n\023min_insync_replicas\030\013 \001(\0132\033.google.pr" + "otobuf.Int64Value\0222\n\rsegment_bytes\030\014 \001(\013" + "2\033.google.protobuf.Int64Value\022/\n\013preallo" + "cate\030\r \001(\0132\032.google.protobuf.BoolValue\"\215" + "\001\n\rCleanupPolicy\022\036\n\032CLEANUP_POLICY_UNSPE" + "CIFIED\020\000\022\031\n\025CLEANUP_POLICY_DELETE\020\001\022\032\n\026C" + "LEANUP_POLICY_COMPACT\020\002\022%\n!CLEANUP_POLIC" + "Y_COMPACT_AND_DELETE\020\003:\002\030\001\"\214\007\n\016TopicConf" + "ig2_8\022O\n\016cleanup_policy\030\001 \001(\01627.yandex.c" + "loud.mdb.kafka.v1.TopicConfig2_8.Cleanup" + "Policy\022D\n\020compression_type\030\002 \001(\0162*.yande" + "x.cloud.mdb.kafka.v1.CompressionType\0228\n\023" + "delete_retention_ms\030\003 \001(\0132\033.google.proto" + "buf.Int64Value\0229\n\024file_delete_delay_ms\030\004" + " \001(\0132\033.google.protobuf.Int64Value\0223\n\016flu" + "sh_messages\030\005 \001(\0132\033.google.protobuf.Int6" + "4Value\022-\n\010flush_ms\030\006 \001(\0132\033.google.protob" + "uf.Int64Value\022:\n\025min_compaction_lag_ms\030\007" + " \001(\0132\033.google.protobuf.Int64Value\0224\n\017ret" + "ention_bytes\030\010 \001(\0132\033.google.protobuf.Int" + "64Value\0221\n\014retention_ms\030\t \001(\0132\033.google.p" + "rotobuf.Int64Value\0226\n\021max_message_bytes\030" + "\n \001(\0132\033.google.protobuf.Int64Value\0228\n\023mi" + "n_insync_replicas\030\013 \001(\0132\033.google.protobu" + "f.Int64Value\0222\n\rsegment_bytes\030\014 \001(\0132\033.go" + "ogle.protobuf.Int64Value\022/\n\013preallocate\030" + "\r \001(\0132\032.google.protobuf.BoolValue\"\215\001\n\rCl" + "eanupPolicy\022\036\n\032CLEANUP_POLICY_UNSPECIFIE" + "D\020\000\022\031\n\025CLEANUP_POLICY_DELETE\020\001\022\032\n\026CLEANU" + "P_POLICY_COMPACT\020\002\022%\n!CLEANUP_POLICY_COM" + "PACT_AND_DELETE\020\003\"\210\007\n\014TopicConfig3\022M\n\016cl" + "eanup_policy\030\001 \001(\01625.yandex.cloud.mdb.ka" + "fka.v1.TopicConfig3.CleanupPolicy\022D\n\020com" + "pression_type\030\002 \001(\0162*.yandex.cloud.mdb.k" + "afka.v1.CompressionType\0228\n\023delete_retent" + "ion_ms\030\003 \001(\0132\033.google.protobuf.Int64Valu" + "e\0229\n\024file_delete_delay_ms\030\004 \001(\0132\033.google" + ".protobuf.Int64Value\0223\n\016flush_messages\030\005" + " \001(\0132\033.google.protobuf.Int64Value\022-\n\010flu" + "sh_ms\030\006 \001(\0132\033.google.protobuf.Int64Value" + "\022:\n\025min_compaction_lag_ms\030\007 \001(\0132\033.google" + ".protobuf.Int64Value\0224\n\017retention_bytes\030" + "\010 \001(\0132\033.google.protobuf.Int64Value\0221\n\014re" + "tention_ms\030\t \001(\0132\033.google.protobuf.Int64" + "Value\0226\n\021max_message_bytes\030\n \001(\0132\033.googl" + "e.protobuf.Int64Value\0228\n\023min_insync_repl" + "icas\030\013 \001(\0132\033.google.protobuf.Int64Value\022" + "2\n\rsegment_bytes\030\014 \001(\0132\033.google.protobuf" + ".Int64Value\022/\n\013preallocate\030\r \001(\0132\032.googl" + "e.protobuf.BoolValue\"\215\001\n\rCleanupPolicy\022\036" + "\n\032CLEANUP_POLICY_UNSPECIFIED\020\000\022\031\n\025CLEANU" + "P_POLICY_DELETE\020\001\022\032\n\026CLEANUP_POLICY_COMP" + "ACT\020\002\022%\n!CLEANUP_POLICY_COMPACT_AND_DELE" + "TE\020\003Bd\n\035yandex.cloud.api.mdb.kafka.v1ZCg" + "ithub.com/yandex-cloud/go-genproto/yande" + "x/cloud/mdb/kafka/v1;kafkab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), yandex.cloud.api.mdb.kafka.v1.Common.getDescriptor(), }); internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_kafka_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_Topic_descriptor, new java.lang.String[] { "Name", "ClusterId", "Partitions", "ReplicationFactor", "TopicConfig21", "TopicConfig26", "TopicConfig28", "TopicConfig3", "TopicConfig", }); internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_TopicSpec_descriptor, new java.lang.String[] { "Name", "Partitions", "ReplicationFactor", "TopicConfig21", "TopicConfig26", "TopicConfig28", "TopicConfig3", "TopicConfig", }); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_1_descriptor, new java.lang.String[] { "CleanupPolicy", "CompressionType", "DeleteRetentionMs", "FileDeleteDelayMs", "FlushMessages", "FlushMs", "MinCompactionLagMs", "RetentionBytes", "RetentionMs", "MaxMessageBytes", "MinInsyncReplicas", "SegmentBytes", "Preallocate", }); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_6_descriptor, new java.lang.String[] { "CleanupPolicy", "CompressionType", "DeleteRetentionMs", "FileDeleteDelayMs", "FlushMessages", "FlushMs", "MinCompactionLagMs", "RetentionBytes", "RetentionMs", "MaxMessageBytes", "MinInsyncReplicas", "SegmentBytes", "Preallocate", }); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig2_8_descriptor, new java.lang.String[] { "CleanupPolicy", "CompressionType", "DeleteRetentionMs", "FileDeleteDelayMs", "FlushMessages", "FlushMs", "MinCompactionLagMs", "RetentionBytes", "RetentionMs", "MaxMessageBytes", "MinInsyncReplicas", "SegmentBytes", "Preallocate", }); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_kafka_v1_TopicConfig3_descriptor, new java.lang.String[] { "CleanupPolicy", "CompressionType", "DeleteRetentionMs", "FileDeleteDelayMs", "FlushMessages", "FlushMs", "MinCompactionLagMs", "RetentionBytes", "RetentionMs", "MaxMessageBytes", "MinInsyncReplicas", "SegmentBytes", "Preallocate", }); com.google.protobuf.DescriptorProtos.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); yandex.cloud.api.mdb.kafka.v1.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy