Class ConsumerTopicMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.managedkafka.v1.ConsumerTopicMetadata
All Implemented Interfaces:
ConsumerTopicMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConsumerTopicMetadata extends com.google.protobuf.GeneratedMessage implements ConsumerTopicMetadataOrBuilder
 Metadata for a consumer group corresponding to a specific topic.
 
Protobuf type google.cloud.managedkafka.v1.ConsumerTopicMetadata
See Also:
  • Field Details

    • PARTITIONS_FIELD_NUMBER

      public static final int PARTITIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPartitionsCount

      public int getPartitionsCount()
      Description copied from interface: ConsumerTopicMetadataOrBuilder
       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];
      Specified by:
      getPartitionsCount in interface ConsumerTopicMetadataOrBuilder
    • containsPartitions

      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];
      Specified by:
      containsPartitions in interface ConsumerTopicMetadataOrBuilder
    • getPartitions

      Deprecated.
      Use getPartitionsMap() instead.
      Specified by:
      getPartitions in interface ConsumerTopicMetadataOrBuilder
    • 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];
      Specified by:
      getPartitionsMap in interface ConsumerTopicMetadataOrBuilder
    • getPartitionsOrDefault

      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];
      Specified by:
      getPartitionsOrDefault in interface ConsumerTopicMetadataOrBuilder
    • getPartitionsOrThrow

      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];
      Specified by:
      getPartitionsOrThrow in interface ConsumerTopicMetadataOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConsumerTopicMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConsumerTopicMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConsumerTopicMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConsumerTopicMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConsumerTopicMetadata.Builder newBuilder()
    • newBuilder

      public static ConsumerTopicMetadata.Builder newBuilder(ConsumerTopicMetadata prototype)
    • toBuilder

      public ConsumerTopicMetadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConsumerTopicMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConsumerTopicMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConsumerTopicMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConsumerTopicMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConsumerTopicMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder