# Google Cloud Data Catalog V1 Client - Class SerializedPolicyTag (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 SerializedPolicyTag.

A nested protocol buffer that represents a policy tag and all its
descendants.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policy_tag` | `string` Resource name of the policy tag. This field is ignored when calling `ImportTaxonomies`. |
| `↳ display_name` | `string` Required. Display name of the policy tag. At most 200 bytes when encoded in UTF-8. |
| `↳ description` | `string` Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. |
| `↳ child_policy_tags` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.SerializedPolicyTag>` Children of the policy tag, if any. |

### getPolicyTag

Resource name of the policy tag.

This field is ignored when calling `ImportTaxonomies`.

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

### setPolicyTag

Resource name of the policy tag.

This field is ignored when calling `ImportTaxonomies`.

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

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

### getDisplayName

Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.

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

### setDisplayName

Required. Display name of the policy tag. At most 200 bytes when encoded
in UTF-8.

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

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

### getDescription

Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.

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

### setDescription

Description of the serialized policy tag. At most
2000 bytes when encoded in UTF-8. If not set, defaults to an
empty description.

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

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

### getChildPolicyTags

Children of the policy tag, if any.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.SerializedPolicyTag>` |   |

### setChildPolicyTags

Children of the policy tag, if any.

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

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