Interface ConsumerTopicMetadataOrBuilder (0.9.0)

public interface ConsumerTopicMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsPartitions(int key)

public abstract boolean containsPartitions(int key)

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

map<int32, .google.cloud.managedkafka.v1.ConsumerPartitionMetadata> partitions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key int
Returns
Type Description
boolean

getPartitions() (deprecated)

public abstract Map<Integer,ConsumerPartitionMetadata> getPartitions()

Use #getPartitionsMap() instead.

Returns
Type Description
Map<java.lang.Integer,ConsumerPartitionMetadata>

getPartitionsCount()

public abstract int getPartitionsCount()

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

map<int32, .google.cloud.managedkafka.v1.ConsumerPartitionMetadata> partitions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getPartitionsMap()

public abstract Map<Integer,ConsumerPartitionMetadata> getPartitionsMap()

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

map<int32, .google.cloud.managedkafka.v1.ConsumerPartitionMetadata> partitions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<java.lang.Integer,ConsumerPartitionMetadata>

getPartitionsOrDefault(int key, ConsumerPartitionMetadata defaultValue)

public abstract ConsumerPartitionMetadata getPartitionsOrDefault(int key, ConsumerPartitionMetadata defaultValue)

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

map<int32, .google.cloud.managedkafka.v1.ConsumerPartitionMetadata> partitions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key int
defaultValue ConsumerPartitionMetadata
Returns
Type Description
ConsumerPartitionMetadata

getPartitionsOrThrow(int key)

public abstract ConsumerPartitionMetadata getPartitionsOrThrow(int key)

Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.

map<int32, .google.cloud.managedkafka.v1.ConsumerPartitionMetadata> partitions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key int
Returns
Type Description
ConsumerPartitionMetadata