# Google Cloud Game Servers V1 Client - Class FetchDeploymentStateResponse (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.FetchDeploymentStateResponse)
- [1.2.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.2.5/V1.FetchDeploymentStateResponse)
- [1.1.1](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.1.1/V1.FetchDeploymentStateResponse)
- [1.0.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.0.5/V1.FetchDeploymentStateResponse)
Reference documentation and code samples for the Google Cloud Game Servers V1 Client class FetchDeploymentStateResponse.

Response message for GameServerDeploymentsService.FetchDeploymentState.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cluster_state` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.FetchDeploymentStateResponse.DeployedClusterState>` The state of the game server deployment in each game server cluster. |
| `↳ unavailable` | `array` List of locations that could not be reached. |

### getClusterState

The state of the game server deployment in each game server cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setClusterState

The state of the game server deployment in each game server cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.FetchDeploymentStateResponse.DeployedClusterState>` |

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

### getUnavailable

List of locations that could not be reached.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setUnavailable

List of locations that could not be reached.

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

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