Class ConsumerTopicMetadata.Builder (0.5.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConsumerTopicMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

build()

public ConsumerTopicMetadata build()
Returns
Type Description
ConsumerTopicMetadata

buildPartial()

public ConsumerTopicMetadata buildPartial()
Returns
Type Description
ConsumerTopicMetadata

clear()

public ConsumerTopicMetadata.Builder clear()
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConsumerTopicMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConsumerTopicMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

clearPartitions()

public ConsumerTopicMetadata.Builder clearPartitions()
Returns
Type Description
ConsumerTopicMetadata.Builder

clone()

public ConsumerTopicMetadata.Builder clone()
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

containsPartitions(int key)

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
Returns
Type Description
boolean

getDefaultInstanceForType()

public ConsumerTopicMetadata getDefaultInstanceForType()
Returns
Type Description
ConsumerTopicMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutablePartitions() (deprecated)

public Map<Integer,ConsumerPartitionMetadata> getMutablePartitions()

Use alternate mutation accessors instead.

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

getPartitions() (deprecated)

public Map<Integer,ConsumerPartitionMetadata> getPartitions()

Use #getPartitionsMap() instead.

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

getPartitionsCount()

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

getPartitionsMap()

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];

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

getPartitionsOrDefault(int key, ConsumerPartitionMetadata defaultValue)

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];

Parameters
Name Description
key int
defaultValue ConsumerPartitionMetadata
Returns
Type Description
ConsumerPartitionMetadata

getPartitionsOrThrow(int key)

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
Returns
Type Description
ConsumerPartitionMetadata

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

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)

internalGetMutableMapFieldReflection(int number)

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)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConsumerTopicMetadata other)

public ConsumerTopicMetadata.Builder mergeFrom(ConsumerTopicMetadata other)
Parameter
Name Description
other ConsumerTopicMetadata
Returns
Type Description
ConsumerTopicMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConsumerTopicMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConsumerTopicMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConsumerTopicMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

putAllPartitions(Map<Integer,ConsumerPartitionMetadata> values)

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];

Parameter
Name Description
values Map<java.lang.Integer,ConsumerPartitionMetadata>
Returns
Type Description
ConsumerTopicMetadata.Builder

putPartitions(int key, ConsumerPartitionMetadata value)

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];

Parameters
Name Description
key int
value ConsumerPartitionMetadata
Returns
Type Description
ConsumerTopicMetadata.Builder

putPartitionsBuilderIfAbsent(int key)

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
Returns
Type Description
ConsumerPartitionMetadata.Builder

removePartitions(int key)

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
Returns
Type Description
ConsumerTopicMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConsumerTopicMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConsumerTopicMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConsumerTopicMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides