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

Request message for GameServerDeploymentsService.CreateGameServerDeployment.

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

## 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}`. |
| `↳ deployment_id` | `string` Required. The ID of the game server delpoyment resource to be created. |
| `↳ game_server_deployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerDeployment` Required. The game server delpoyment resource to be created. |

### 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` |   |

### getDeploymentId

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

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

### setDeploymentId

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

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

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

### getGameServerDeployment

Required. The game server delpoyment resource to be created.

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

### hasGameServerDeployment

### clearGameServerDeployment

### setGameServerDeployment

Required. The game server delpoyment resource to be created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **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. |
| `gameServerDeployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerDeployment` Required. The game server delpoyment resource to be created. |

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