Class ConsumerTopicMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
com.google.cloud.managedkafka.v1.ConsumerTopicMetadata.Builder
All Implemented Interfaces:
ConsumerTopicMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConsumerTopicMetadata

public static final class ConsumerTopicMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder> implements ConsumerTopicMetadataOrBuilder
 Metadata for a consumer group corresponding to a specific topic.
 
Protobuf type google.cloud.managedkafka.v1.ConsumerTopicMetadata
  • 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.Builder<ConsumerTopicMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

      public ConsumerTopicMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConsumerTopicMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConsumerTopicMetadata.Builder>
    • mergeFrom

      public ConsumerTopicMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConsumerTopicMetadata.Builder>
      Throws:
      IOException
    • 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
    • clearPartitions

      public ConsumerTopicMetadata.Builder clearPartitions()
    • removePartitions

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

      @Deprecated public Map<Integer,ConsumerPartitionMetadata> getMutablePartitions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putPartitions

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

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

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