# Google Anthos Multi Cloud V1 Client - Class ListAttachedClustersRequest (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.2 1.0.0 0.6.1 0.5.4 0.4.4 0.3.0 0.2.3 0.1.4 Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class ListAttachedClustersRequest.

Request message for `AttachedClusters.ListAttachedClusters` method.

Generated from protobuf message `google.cloud.gkemulticloud.v1.ListAttachedClustersRequest`

## Namespace

Google \\ Cloud \\ GkeMultiCloud \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent location which owns this collection of [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resources. Location names are formatted as `projects/<project-id>/locations/<region>`. See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names. |
| `↳ page_size` | `int` The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the pageSize value, the response can include a partial list and a caller should only rely on response's [nextPageToken](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.ListAttachedClustersResponse#_Google_Cloud_GkeMultiCloud_V1_ListAttachedClustersResponse__getNextPageToken__) to determine if there are more instances left to be queried. |
| `↳ page_token` | `string` The `nextPageToken` value returned from a previous [attachedClusters.list](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__listAttachedClusters__) request, if any. |

### getParent

Required. The parent location which owns this collection of
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resources.

Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names)
for more details on Google Cloud Platform resource names.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The parent location which owns this collection of
[AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resources.

Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names)
for more details on Google Cloud Platform resource names.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPageSize

The maximum number of items to return.

If not specified, a default value of 50 will be used by the service.
Regardless of the pageSize value, the response can include a partial list
and a caller should only rely on response's
[nextPageToken](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.ListAttachedClustersResponse#_Google_Cloud_GkeMultiCloud_V1_ListAttachedClustersResponse__getNextPageToken__)
to determine if there are more instances left to be queried.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

The maximum number of items to return.

If not specified, a default value of 50 will be used by the service.
Regardless of the pageSize value, the response can include a partial list
and a caller should only rely on response's
[nextPageToken](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.ListAttachedClustersResponse#_Google_Cloud_GkeMultiCloud_V1_ListAttachedClustersResponse__getNextPageToken__)
to determine if there are more instances left to be queried.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPageToken

The `nextPageToken` value returned from a previous
[attachedClusters.list](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__listAttachedClusters__)
request, if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPageToken

The `nextPageToken` value returned from a previous
[attachedClusters.list](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.Client.AttachedClustersClient#_Google_Cloud_GkeMultiCloud_V1_Client_AttachedClustersClient__listAttachedClusters__)
request, if any.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent location which owns this collection of [AttachedCluster](https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AttachedCluster) resources. Location names are formatted as `projects/<project-id>/locations/<region>`. See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names. Please see AttachedClustersClient::locationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-multi-cloud/latest/V1.ListAttachedClustersRequest` |   |