public final class ConsumerGroup extends GeneratedMessageV3 implements ConsumerGroupOrBuilder
A Kafka consumer group in a given cluster.
Protobuf type google.cloud.managedkafka.v1.ConsumerGroup
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TOPICS_FIELD_NUMBER
public static final int TOPICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ConsumerGroup getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ConsumerGroup.Builder newBuilder()
newBuilder(ConsumerGroup prototype)
public static ConsumerGroup.Builder newBuilder(ConsumerGroup prototype)
public static ConsumerGroup parseDelimitedFrom(InputStream input)
public static ConsumerGroup parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ConsumerGroup parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConsumerGroup parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ConsumerGroup parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConsumerGroup parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConsumerGroup parseFrom(CodedInputStream input)
public static ConsumerGroup parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ConsumerGroup parseFrom(InputStream input)
public static ConsumerGroup parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ConsumerGroup parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConsumerGroup parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ConsumerGroup> parser()
Methods
containsTopics(String key)
public boolean containsTopics(String key)
Optional. Metadata for this consumer group for all topics it has metadata
for. The key of the map is a topic name, structured like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ConsumerGroup getDefaultInstanceForType()
getName()
Identifier. The name of the consumer group. The consumer_group
segment is
used when connecting directly to the cluster. Structured like:
projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The name of the consumer group. The consumer_group
segment is
used when connecting directly to the cluster. Structured like:
projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<ConsumerGroup> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTopics() (deprecated)
public Map<String,ConsumerTopicMetadata> getTopics()
getTopicsCount()
public int getTopicsCount()
Optional. Metadata for this consumer group for all topics it has metadata
for. The key of the map is a topic name, structured like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getTopicsMap()
public Map<String,ConsumerTopicMetadata> getTopicsMap()
Optional. Metadata for this consumer group for all topics it has metadata
for. The key of the map is a topic name, structured like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
public ConsumerTopicMetadata getTopicsOrDefault(String key, ConsumerTopicMetadata defaultValue)
Optional. Metadata for this consumer group for all topics it has metadata
for. The key of the map is a topic name, structured like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
getTopicsOrThrow(String key)
public ConsumerTopicMetadata getTopicsOrThrow(String key)
Optional. Metadata for this consumer group for all topics it has metadata
for. The key of the map is a topic name, structured like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
map<string, .google.cloud.managedkafka.v1.ConsumerTopicMetadata> topics = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
Overrides
newBuilderForType()
public ConsumerGroup.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConsumerGroup.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ConsumerGroup.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides