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

Request message for
CreateTagTemplate.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions). |
| `↳ tag_template_id` | `string` Required. The ID of the tag template to create. The ID must contain only lowercase letters (a-z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. |
| `↳ tag_template` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplate` Required. The tag template to create. |

### getParent

Required. The name of the project and the template location
[region](https://cloud.google.com/data-catalog/docs/concepts/regions).

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

### setParent

Required. The name of the project and the template location
[region](https://cloud.google.com/data-catalog/docs/concepts/regions).

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

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

### getTagTemplateId

Required. The ID of the tag template to create.

The ID must contain only lowercase letters (a-z), numbers (0-9),
or underscores (_), and must start with a letter or underscore.
The maximum size is 64 bytes when encoded in UTF-8.

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

### setTagTemplateId

Required. The ID of the tag template to create.

The ID must contain only lowercase letters (a-z), numbers (0-9),
or underscores (_), and must start with a letter or underscore.
The maximum size is 64 bytes when encoded in UTF-8.

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

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

### getTagTemplate

Required. The tag template to create.

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

### hasTagTemplate

### clearTagTemplate

### setTagTemplate

Required. The tag template to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions). Please see DataCatalogClient::locationName() for help formatting this field. |
| `tagTemplateId` | `string` Required. The ID of the tag template to create. The ID must contain only lowercase letters (a-z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. |
| `tagTemplate` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplate` Required. The tag template to create. |

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