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 TagTemplate : IMessage<TagTemplate>, IEquatable<TagTemplate>, IDeepCloneable<TagTemplate>, IBufferMessage, IMessage

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

A tag template defines a tag that can have one or more typed fields.

The template is used to create tags that are attached to Google Cloud
resources. [Tag template roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
provide permissions to create, edit, and use the template. For example,
see the [TagTemplate User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role
that includes a permission to use the tag template to tag resources.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[TagTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.TagTemplate.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TagTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.TagTemplate.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[TagTemplate](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.TagTemplate.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

### TagTemplate()

    public TagTemplate()

### TagTemplate(TagTemplate)

    public TagTemplate(TagTemplate other)

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

## Properties

### DataplexTransferStatus

    public TagTemplate.Types.DataplexTransferStatus DataplexTransferStatus { get; set; }

Optional. Transfer status of the TagTemplate

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

### DisplayName

    public string DisplayName { get; set; }

Display name for this template. Defaults to an empty string.

The name must contain only Unicode letters, numbers (0-9), underscores (_),
dashes (-), spaces ( ), and can't start or end with spaces.
The maximum length is 200 characters.

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

### Fields

    public MapField<string, TagTemplateField> Fields { get; }

Required. Map of tag template field IDs to the settings for the field.
This map is an exhaustive list of the allowed fields. The map must contain
at least one field and at most 500 fields.

The keys to this map are tag template field IDs. The IDs have the
following limitations:

- Can contain uppercase and lowercase letters, numbers (0-9) and underscores (_).
- Must be at least 1 character and at most 64 characters long.
- Must start with a letter or underscore.

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

### IsPubliclyReadable

    public bool IsPubliclyReadable { get; set; }

Indicates whether tags created with this template are public. Public tags
do not require tag template access to appear in
\[ListTags\]\[google.cloud.datacatalog.v1.DataCatalog.ListTags\] API response.

Additionally, you can search for a public tag by value with a
simple search query in addition to using a `tag:` predicate.

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

### Name

    public string Name { get; set; }

Identifier. The resource name of the tag template in URL format.

Note: The tag template itself and its child resources might not be
stored in the location specified in its name.

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

### TagTemplateName

    public TagTemplateName TagTemplateName { get; set; }

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

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