# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::ListConsumerGroupsRequest (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::ListConsumerGroupsRequest.

Request for ListConsumerGroups.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned.
**Returns**

- (::Integer) --- Optional. The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. A page token, received from a previous `ListConsumerGroups` call. Provide this to retrieve the subsequent page.


  When paginating, all other parameters provided to `ListConsumerGroups` must
  match the call that provided the page token.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A page token, received from a previous `ListConsumerGroups` call. Provide this to retrieve the subsequent page.


  When paginating, all other parameters provided to `ListConsumerGroups` must
  match the call that provided the page token.
**Returns**

- (::String) --- Optional. A page token, received from a previous `ListConsumerGroups` call. Provide this to retrieve the subsequent page.


  When paginating, all other parameters provided to `ListConsumerGroups` must
  match the call that provided the page token.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent cluster whose consumer groups are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent cluster whose consumer groups are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.
**Returns**

- (::String) --- Required. The parent cluster whose consumer groups are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.