# Google Cloud Game Servers V1 Client - Class ListGameServerDeploymentsRequest (1.2.6)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.2.6 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.ListGameServerDeploymentsRequest)
- [1.2.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.2.5/V1.ListGameServerDeploymentsRequest)
- [1.1.1](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.1.1/V1.ListGameServerDeploymentsRequest)
- [1.0.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.0.5/V1.ListGameServerDeploymentsRequest)
Reference documentation and code samples for the Google Cloud Game Servers V1 Client class ListGameServerDeploymentsRequest.

Request message for GameServerDeploymentsService.ListGameServerDeployments.

Generated from protobuf message `google.cloud.gaming.v1.ListGameServerDeploymentsRequest`

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource name, in the following form: `projects/{project}/locations/{location}`. |
| `↳ page_size` | `int` Optional. The maximum number of items to return. If unspecified, the server will pick an appropriate default. The server may return fewer items than requested. A caller should only rely on response's [next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.ListGameServerDeploymentsResponse#_Google_Cloud_Gaming_V1_ListGameServerDeploymentsResponse__getNextPageToken__) to determine if there are more GameServerDeployments left to be queried. |
| `↳ page_token` | `string` Optional. The next_page_token value returned from a previous List request, if any. |
| `↳ filter` | `string` Optional. The filter to apply to list results. |
| `↳ order_by` | `string` Optional. Specifies the ordering of results following syntax at <https://cloud.google.com/apis/design/design_patterns#sorting_order>. |

### getParent

Required. The parent resource name, in the following form:
`projects/{project}/locations/{location}`.

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

### setParent

Required. The parent resource name, in the following form:
`projects/{project}/locations/{location}`.

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

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

### getPageSize

Optional. The maximum number of items to return. If unspecified, the server
will pick an appropriate default. The server may return fewer items than
requested. A caller should only rely on response's
[next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.ListGameServerDeploymentsResponse#_Google_Cloud_Gaming_V1_ListGameServerDeploymentsResponse__getNextPageToken__) to
determine if there are more GameServerDeployments left to be queried.

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

### setPageSize

Optional. The maximum number of items to return. If unspecified, the server
will pick an appropriate default. The server may return fewer items than
requested. A caller should only rely on response's
[next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.ListGameServerDeploymentsResponse#_Google_Cloud_Gaming_V1_ListGameServerDeploymentsResponse__getNextPageToken__) to
determine if there are more GameServerDeployments left to be queried.

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

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

### getPageToken

Optional. The next_page_token value returned from a previous List request,
if any.

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

### setPageToken

Optional. The next_page_token value returned from a previous List request,
if any.

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

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

### getFilter

Optional. The filter to apply to list results.

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

### setFilter

Optional. The filter to apply to list results.

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

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

### getOrderBy

Optional. Specifies the ordering of results following syntax at
<https://cloud.google.com/apis/design/design_patterns#sorting_order>.

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

### setOrderBy

Optional. Specifies the ordering of results following syntax at
<https://cloud.google.com/apis/design/design_patterns#sorting_order>.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource name, in the following form: `projects/{project}/locations/{location}`. Please see [Google\\Cloud\\Gaming\\V1\\GameServerDeploymentsServiceClient::locationName()](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerDeploymentsServiceClient#_Google_Cloud_Gaming_V1_GameServerDeploymentsServiceClient__locationName__) for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.ListGameServerDeploymentsRequest` |   |