Class ListConsumerGroupsResponse.Builder

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

public static final class ListConsumerGroupsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListConsumerGroupsResponse.Builder> implements ListConsumerGroupsResponseOrBuilder
 Response for ListConsumerGroups.
 
Protobuf type google.cloud.managedkafka.v1.ListConsumerGroupsResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListConsumerGroupsResponse.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<ListConsumerGroupsResponse.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<ListConsumerGroupsResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ListConsumerGroupsResponse.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<ListConsumerGroupsResponse.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<ListConsumerGroupsResponse.Builder>
    • mergeFrom

      public ListConsumerGroupsResponse.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<ListConsumerGroupsResponse.Builder>
      Throws:
      IOException
    • getConsumerGroupsList

      public List<ConsumerGroup> getConsumerGroupsList()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
      Specified by:
      getConsumerGroupsList in interface ListConsumerGroupsResponseOrBuilder
    • getConsumerGroupsCount

      public int getConsumerGroupsCount()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
      Specified by:
      getConsumerGroupsCount in interface ListConsumerGroupsResponseOrBuilder
    • getConsumerGroups

      public ConsumerGroup getConsumerGroups(int index)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
      Specified by:
      getConsumerGroups in interface ListConsumerGroupsResponseOrBuilder
    • setConsumerGroups

      public ListConsumerGroupsResponse.Builder setConsumerGroups(int index, ConsumerGroup value)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • setConsumerGroups

      public ListConsumerGroupsResponse.Builder setConsumerGroups(int index, ConsumerGroup.Builder builderForValue)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addConsumerGroups

      public ListConsumerGroupsResponse.Builder addConsumerGroups(ConsumerGroup value)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addConsumerGroups

      public ListConsumerGroupsResponse.Builder addConsumerGroups(int index, ConsumerGroup value)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addConsumerGroups

      public ListConsumerGroupsResponse.Builder addConsumerGroups(ConsumerGroup.Builder builderForValue)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addConsumerGroups

      public ListConsumerGroupsResponse.Builder addConsumerGroups(int index, ConsumerGroup.Builder builderForValue)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addAllConsumerGroups

      public ListConsumerGroupsResponse.Builder addAllConsumerGroups(Iterable<? extends ConsumerGroup> values)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • clearConsumerGroups

      public ListConsumerGroupsResponse.Builder clearConsumerGroups()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • removeConsumerGroups

      public ListConsumerGroupsResponse.Builder removeConsumerGroups(int index)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • getConsumerGroupsBuilder

      public ConsumerGroup.Builder getConsumerGroupsBuilder(int index)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • getConsumerGroupsOrBuilder

      public ConsumerGroupOrBuilder getConsumerGroupsOrBuilder(int index)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
      Specified by:
      getConsumerGroupsOrBuilder in interface ListConsumerGroupsResponseOrBuilder
    • getConsumerGroupsOrBuilderList

      public List<? extends ConsumerGroupOrBuilder> getConsumerGroupsOrBuilderList()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
      Specified by:
      getConsumerGroupsOrBuilderList in interface ListConsumerGroupsResponseOrBuilder
    • addConsumerGroupsBuilder

      public ConsumerGroup.Builder addConsumerGroupsBuilder()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • addConsumerGroupsBuilder

      public ConsumerGroup.Builder addConsumerGroupsBuilder(int index)
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • getConsumerGroupsBuilderList

      public List<ConsumerGroup.Builder> getConsumerGroupsBuilderList()
       The list of consumer group in the requested parent. The order of the
       consumer groups is unspecified.
       
      repeated .google.cloud.managedkafka.v1.ConsumerGroup consumer_groups = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListConsumerGroupsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListConsumerGroupsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListConsumerGroupsResponse.Builder setNextPageToken(String value)
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListConsumerGroupsResponse.Builder clearNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListConsumerGroupsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.