Send feedback
Class ConsumerTopicMetadata.Builder (0.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.11.0 keyboard_arrow_down
public static final class ConsumerTopicMetadata . Builder extends GeneratedMessageV3 . Builder<ConsumerTopicMetadata . Builder > implements ConsumerTopicMetadataOrBuilder
Metadata for a consumer group corresponding to a specific topic.
Protobuf type google.cloud.managedkafka.v1.ConsumerTopicMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public ConsumerTopicMetadata . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ConsumerTopicMetadata build ()
public ConsumerTopicMetadata buildPartial ()
public ConsumerTopicMetadata . Builder clear ()
Overrides
public ConsumerTopicMetadata . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public ConsumerTopicMetadata . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public ConsumerTopicMetadata . Builder clearPartitions ()
public ConsumerTopicMetadata . Builder clone ()
Overrides
public 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
public ConsumerTopicMetadata getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public Map<Integer , ConsumerPartitionMetadata > getMutablePartitions ()
Use alternate mutation accessors instead.
public Map<Integer , ConsumerPartitionMetadata > getPartitions ()
public 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
public 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];
public 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];
public 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
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized ()
Overrides
public ConsumerTopicMetadata . Builder mergeFrom ( ConsumerTopicMetadata other )
public ConsumerTopicMetadata . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public ConsumerTopicMetadata . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final ConsumerTopicMetadata . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ConsumerTopicMetadata . Builder putAllPartitions ( Map<Integer , ConsumerPartitionMetadata > values )
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];
public ConsumerTopicMetadata . Builder putPartitions ( int key , ConsumerPartitionMetadata value )
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];
public ConsumerPartitionMetadata . Builder putPartitionsBuilderIfAbsent ( 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
public ConsumerTopicMetadata . Builder removePartitions ( 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
public ConsumerTopicMetadata . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ConsumerTopicMetadata . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public final ConsumerTopicMetadata . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]