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

Request message for GameServerDeploymentsService.UpdateGameServerDeployment.

Only allows updates for labels.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ game_server_deployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerDeployment` Required. The game server delpoyment to be updated. Only fields specified in update_mask are updated. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

### getGameServerDeployment

Required. The game server delpoyment to be updated.

Only fields specified in update_mask are updated.

| **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 to be updated.

Only fields specified in update_mask are updated.

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

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

### getUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. For the `FieldMask` definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Mask of fields to update. At least one path must be supplied in
this field. For the `FieldMask` definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `gameServerDeployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerDeployment` Required. The game server delpoyment to be updated. Only fields specified in update_mask are updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Mask of fields to update. At least one path must be supplied in this field. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

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