# Google Cloud BigQuery Data Policies V1 Client - Class UpdateDataPolicyRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.5.5 0.4.1 0.3.3 0.2.4 0.1.1 Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class UpdateDataPolicyRequest.

Response message for the UpdateDataPolicy method.

Generated from protobuf message `google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ DataPolicies \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.DataPolicy` Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed. |

### getDataPolicy

Required. Update the data policy's metadata.

The target data policy is determined by the `name` field.
Other fields are updated to the specified values based on the field masks.

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

### hasDataPolicy

### clearDataPolicy

### setDataPolicy

Required. Update the data policy's metadata.

The target data policy is determined by the `name` field.
Other fields are updated to the specified values based on the field masks.

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

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

### getUpdateMask

The update mask applies to the resource. For the `FieldMask` definition,
see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
If not set, defaults to all of the fields that are allowed to update.

Updates to the `name` and `dataPolicyId` fields are not allowed.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The update mask applies to the resource. For the `FieldMask` definition,
see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
If not set, defaults to all of the fields that are allowed to update.

Updates to the `name` and `dataPolicyId` fields are not allowed.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dataPolicy` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.DataPolicy` Required. Update the data policy's metadata. The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If not set, defaults to all of the fields that are allowed to update. Updates to the `name` and `dataPolicyId` fields are not allowed. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.UpdateDataPolicyRequest` |   |