2.17.0 (latest) 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0

    public sealed class PolicyTag : IMessage<PolicyTag>, IEquatable<PolicyTag>, IDeepCloneable<PolicyTag>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Catalog v1 API class PolicyTag.

Denotes one policy tag in a taxonomy, for example, SSN.

Policy tags can be defined in a hierarchy. For example:

    + Geolocation
      + LatLong
      + City
      + ZipCode

Where the "Geolocation" policy tag contains three children.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PolicyTag

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PolicyTag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTag.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PolicyTag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTag.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PolicyTag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTag.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DataCatalog.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.md.txt)

## Assembly

Google.Cloud.DataCatalog.V1.dll

## Constructors

### PolicyTag()

    public PolicyTag()

### PolicyTag(PolicyTag)

    public PolicyTag(PolicyTag other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PolicyTag` |

## Properties

### ChildPolicyTags

    public RepeatedField<string> ChildPolicyTags { get; }

Output only. Resource names of child policy tags of this policy tag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Description

    public string Description { get; set; }

Description of this policy tag. If not set, defaults to empty.

The description must contain only Unicode characters,
tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
long when encoded in UTF-8.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DisplayName

    public string DisplayName { get; set; }

Required. User-defined name of this policy tag.

The name can't start or end with spaces and must be unique within the
parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
and spaces, and be at most 200 bytes long when encoded in UTF-8.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

Identifier. Resource name of this policy tag in the URL format.

The policy tag manager generates unique taxonomy IDs and policy tag IDs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentPolicyTag

    public string ParentPolicyTag { get; set; }

Resource name of this policy tag's parent policy tag. If empty, this is a
top level tag. If not set, defaults to an empty string.

For example, for the "LatLong" policy tag in the example above, this field
contains the resource name of the "Geolocation" policy tag, and, for
"Geolocation", this field is empty.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PolicyTagName

    public PolicyTagName PolicyTagName { get; set; }

[PolicyTagName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTag.md.txt#Google_Cloud_DataCatalog_V1_PolicyTag_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PolicyTagName` |   |