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

Response message for
GameServerClustersService.PreviewCreateGameServerCluster.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ etag` | `string` The ETag of the game server cluster. |
| `↳ target_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetState` The target state. |
| `↳ cluster_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.KubernetesClusterState` Output only. The state of the Kubernetes cluster in preview, this will be available if 'view' is set to `FULL` in the relevant List/Get/Preview request. |

### getEtag

The ETag of the game server cluster.

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

### setEtag

The ETag of the game server cluster.

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

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

### getTargetState

The target state.

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

### hasTargetState

### clearTargetState

### setTargetState

The target state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetState` |

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

### getClusterState

Output only. The state of the Kubernetes cluster in preview, this will be available if
'view' is set to `FULL` in the relevant List/Get/Preview request.

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

### hasClusterState

### clearClusterState

### setClusterState

Output only. The state of the Kubernetes cluster in preview, this will be available if
'view' is set to `FULL` in the relevant List/Get/Preview request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.KubernetesClusterState` |

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