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