Class ListConsumerGroupsResponse.Builder (0.11.0)

public static final class ListConsumerGroupsResponse.Builder extends GeneratedMessageV3.Builder<ListConsumerGroupsResponse.Builder> implements ListConsumerGroupsResponseOrBuilder

Response for ListConsumerGroups.

Protobuf type google.cloud.managedkafka.v1.ListConsumerGroupsResponse

Static Methods

getDescriptor()

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

Methods

addAllConsumerGroups(Iterable<? extends ConsumerGroup> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.managedkafka.v1.ConsumerGroup>
Returns
Type Description
ListConsumerGroupsResponse.Builder

addConsumerGroups(ConsumerGroup value)

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;

Parameter
Name Description
value ConsumerGroup
Returns
Type Description
ListConsumerGroupsResponse.Builder

addConsumerGroups(ConsumerGroup.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ConsumerGroup.Builder
Returns
Type Description
ListConsumerGroupsResponse.Builder

addConsumerGroups(int index, ConsumerGroup value)

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;

Parameters
Name Description
index int
value ConsumerGroup
Returns
Type Description
ListConsumerGroupsResponse.Builder

addConsumerGroups(int index, ConsumerGroup.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ConsumerGroup.Builder
Returns
Type Description
ListConsumerGroupsResponse.Builder

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;

Returns
Type Description
ConsumerGroup.Builder

addConsumerGroupsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConsumerGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListConsumerGroupsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

build()

public ListConsumerGroupsResponse build()
Returns
Type Description
ListConsumerGroupsResponse

buildPartial()

public ListConsumerGroupsResponse buildPartial()
Returns
Type Description
ListConsumerGroupsResponse

clear()

public ListConsumerGroupsResponse.Builder clear()
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

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;

Returns
Type Description
ListConsumerGroupsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListConsumerGroupsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

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
Type Description
ListConsumerGroupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListConsumerGroupsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

clone()

public ListConsumerGroupsResponse.Builder clone()
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

getConsumerGroups(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConsumerGroup

getConsumerGroupsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConsumerGroup.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

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;

Returns
Type Description
List<ConsumerGroup>

getConsumerGroupsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ConsumerGroupOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.managedkafka.v1.ConsumerGroupOrBuilder>

getDefaultInstanceForType()

public ListConsumerGroupsResponse getDefaultInstanceForType()
Returns
Type Description
ListConsumerGroupsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

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

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListConsumerGroupsResponse other)

public ListConsumerGroupsResponse.Builder mergeFrom(ListConsumerGroupsResponse other)
Parameter
Name Description
other ListConsumerGroupsResponse
Returns
Type Description
ListConsumerGroupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListConsumerGroupsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListConsumerGroupsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListConsumerGroupsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

removeConsumerGroups(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ListConsumerGroupsResponse.Builder

setConsumerGroups(int index, ConsumerGroup value)

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;

Parameters
Name Description
index int
value ConsumerGroup
Returns
Type Description
ListConsumerGroupsResponse.Builder

setConsumerGroups(int index, ConsumerGroup.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ConsumerGroup.Builder
Returns
Type Description
ListConsumerGroupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListConsumerGroupsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

setNextPageToken(String value)

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;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListConsumerGroupsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListConsumerGroupsResponse.Builder setNextPageTokenBytes(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;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListConsumerGroupsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListConsumerGroupsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListConsumerGroupsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListConsumerGroupsResponse.Builder
Overrides