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

Request message for GameServerClustersService.CreateGameServerCluster.

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

## 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}/realms/{realm-id}`. |
| `↳ game_server_cluster_id` | `string` Required. The ID of the game server cluster resource to be created. |
| `↳ game_server_cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerCluster` Required. The game server cluster resource to be created. |

### getParent

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

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

### setParent

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

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

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

### getGameServerClusterId

Required. The ID of the game server cluster resource to be created.

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

### setGameServerClusterId

Required. The ID of the game server cluster resource to be created.

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

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

### getGameServerCluster

Required. The game server cluster resource to be created.

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

### hasGameServerCluster

### clearGameServerCluster

### setGameServerCluster

Required. The game server cluster resource to be created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource name, in the following form: `projects/{project}/locations/{location}/realms/{realm-id}`. Please see [Google\\Cloud\\Gaming\\V1\\GameServerClustersServiceClient::realmName()](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerClustersServiceClient#_Google_Cloud_Gaming_V1_GameServerClustersServiceClient__realmName__) for help formatting this field. |
| `gameServerCluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerCluster` Required. The game server cluster resource to be created. |
| `gameServerClusterId` | `string` Required. The ID of the game server cluster resource to be created. |

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