Interface ConsumerGroupOrBuilder

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

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

    • getName

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

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

      int getTopicsCount()
       Optional. Metadata for this consumer group for all topics it has metadata
       for. The key of the map is a topic name, structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
    • containsTopics

      boolean containsTopics(String key)
       Optional. Metadata for this consumer group for all topics it has metadata
       for. The key of the map is a topic name, structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTopics

      Deprecated.
      Use getTopicsMap() instead.
    • getTopicsMap

       Optional. Metadata for this consumer group for all topics it has metadata
       for. The key of the map is a topic name, structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTopicsOrDefault

      ConsumerTopicMetadata getTopicsOrDefault(String key, ConsumerTopicMetadata defaultValue)
       Optional. Metadata for this consumer group for all topics it has metadata
       for. The key of the map is a topic name, structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTopicsOrThrow

      ConsumerTopicMetadata getTopicsOrThrow(String key)
       Optional. Metadata for this consumer group for all topics it has metadata
       for. The key of the map is a topic name, structured like:
       projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
       
      map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];