Class ConsumerTopicMetadata (0.5.0)

public final class ConsumerTopicMetadata extends GeneratedMessageV3 implements ConsumerTopicMetadataOrBuilder

Metadata for a consumer group corresponding to a specific topic.

Protobuf type google.cloud.managedkafka.v1.ConsumerTopicMetadata

Static Fields

PARTITIONS_FIELD_NUMBER

public static final int PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConsumerTopicMetadata getDefaultInstance()
Returns
Type Description
ConsumerTopicMetadata

getDescriptor()

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

newBuilder()

public static ConsumerTopicMetadata.Builder newBuilder()
Returns
Type Description
ConsumerTopicMetadata.Builder

newBuilder(ConsumerTopicMetadata prototype)

public static ConsumerTopicMetadata.Builder newBuilder(ConsumerTopicMetadata prototype)
Parameter
Name Description
prototype ConsumerTopicMetadata
Returns
Type Description
ConsumerTopicMetadata.Builder

parseDelimitedFrom(InputStream input)

public static ConsumerTopicMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ConsumerTopicMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConsumerTopicMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConsumerTopicMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ConsumerTopicMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ConsumerTopicMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConsumerTopicMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConsumerTopicMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ConsumerTopicMetadata> parser()
Returns
Type Description
Parser<ConsumerTopicMetadata>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ConsumerTopicMetadata getDefaultInstanceForType()
Returns
Type Description
ConsumerTopicMetadata

getParserForType()

public Parser<ConsumerTopicMetadata> getParserForType()
Returns
Type Description
Parser<ConsumerTopicMetadata>
Overrides

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConsumerTopicMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConsumerTopicMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException