# Google Cloud OsConfig V1 Client - Class UpdatePatchDeploymentRequest (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class UpdatePatchDeploymentRequest.

A request message for updating a patch deployment.

Generated from protobuf message `google.cloud.osconfig.v1.UpdatePatchDeploymentRequest`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ patch_deployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.PatchDeployment` Required. The patch deployment to Update. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask that controls which fields of the patch deployment should be updated. |

### getPatchDeployment

Required. The patch deployment to Update.

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

### hasPatchDeployment

### clearPatchDeployment

### setPatchDeployment

Required. The patch deployment to Update.

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

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

### getUpdateMask

Optional. Field mask that controls which fields of the patch deployment
should be updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. Field mask that controls which fields of the patch deployment
should be updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `patchDeployment` | `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.PatchDeployment` Required. The patch deployment to Update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask that controls which fields of the patch deployment should be updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-osconfig/latest/V1.UpdatePatchDeploymentRequest` |   |