Interface TopicOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Topic, Topic.Builder

@Generated public interface TopicOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Identifier. The name of the topic. The `topic` segment is used when
       connecting directly to the cluster. Structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the topic. The `topic` segment is used when
       connecting directly to the cluster. Structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      The bytes for name.
    • getPartitionCount

      int getPartitionCount()
       Required. The number of partitions this topic has. The partition count can
       only be increased, not decreased. Please note that if partitions are
       increased for a topic that has a key, the partitioning logic or the
       ordering of the messages will be affected.
       
      int32 partition_count = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The partitionCount.
    • getReplicationFactor

      int getReplicationFactor()
       Required. Immutable. The number of replicas of each partition. A
       replication factor of 3 is recommended for high availability.
       
      int32 replication_factor = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The replicationFactor.
    • getConfigsCount

      int getConfigsCount()
       Optional. Configurations for the topic that are overridden from the cluster
       defaults. The key of the map is a Kafka topic property name, for example:
       `cleanup.policy`, `compression.type`.
       
      map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];
    • containsConfigs

      boolean containsConfigs(String key)
       Optional. Configurations for the topic that are overridden from the cluster
       defaults. The key of the map is a Kafka topic property name, for example:
       `cleanup.policy`, `compression.type`.
       
      map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getConfigs

      @Deprecated Map<String,String> getConfigs()
      Deprecated.
      Use getConfigsMap() instead.
    • getConfigsMap

      Map<String,String> getConfigsMap()
       Optional. Configurations for the topic that are overridden from the cluster
       defaults. The key of the map is a Kafka topic property name, for example:
       `cleanup.policy`, `compression.type`.
       
      map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getConfigsOrDefault

      String getConfigsOrDefault(String key, String defaultValue)
       Optional. Configurations for the topic that are overridden from the cluster
       defaults. The key of the map is a Kafka topic property name, for example:
       `cleanup.policy`, `compression.type`.
       
      map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getConfigsOrThrow

      String getConfigsOrThrow(String key)
       Optional. Configurations for the topic that are overridden from the cluster
       defaults. The key of the map is a Kafka topic property name, for example:
       `cleanup.policy`, `compression.type`.
       
      map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];