# Google Cloud Data Catalog V1 Client - Class UpdatePolicyTagRequest (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class UpdatePolicyTagRequest.

Request message for
[UpdatePolicyTag](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.Client.PolicyTagManagerClient#_Google_Cloud_DataCatalog_V1_Client_PolicyTagManagerClient__updatePolicyTag__).

Generated from protobuf message `google.cloud.datacatalog.v1.UpdatePolicyTagRequest`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policy_tag` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PolicyTag` The policy tag to update. You can update only its description, display name, and parent policy tag fields. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Specifies the fields to update. You can update only display name, description, and parent policy tag. If not set, defaults to all updatable fields. For more information, see [FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). |

### getPolicyTag

The policy tag to update. You can update only its description, display
name, and parent policy tag fields.

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

### hasPolicyTag

### clearPolicyTag

### setPolicyTag

The policy tag to update. You can update only its description, display
name, and parent policy tag fields.

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

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

### getUpdateMask

Specifies the fields to update.

You can update only display name, description, and parent policy tag.
If not set, defaults to all updatable fields.
For more information, see [FieldMask](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

Specifies the fields to update.

You can update only display name, description, and parent policy tag.
If not set, defaults to all updatable fields.
For more information, see [FieldMask](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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `policyTag` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.PolicyTag` The policy tag to update. You can update only its description, display name, and parent policy tag fields. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.UpdatePolicyTagRequest` |   |