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

Request message for
CreateTagTemplateField.

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

## 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_field_id` | `string` Required. The ID of the tag template field to create. Note: Adding a required field to an existing template is *not* allowed. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. |
| `↳ tag_template_field` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplateField` Required. The tag template field 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` |   |

### getTagTemplateFieldId

Required. The ID of the tag template field to create.

Note: Adding a required field to an existing template is *not* allowed.
Field IDs can contain letters (both uppercase and lowercase), numbers
(0-9), underscores (_) and dashes (-). Field IDs must be at least 1
character long and at most 128 characters long. Field IDs must also be
unique within their template.

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

### setTagTemplateFieldId

Required. The ID of the tag template field to create.

Note: Adding a required field to an existing template is *not* allowed.
Field IDs can contain letters (both uppercase and lowercase), numbers
(0-9), underscores (_) and dashes (-). Field IDs must be at least 1
character long and at most 128 characters long. Field IDs must also be
unique within their template.

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

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

### getTagTemplateField

Required. The tag template field to create.

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

### hasTagTemplateField

### clearTagTemplateField

### setTagTemplateField

Required. The tag template field to create.

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

| **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::tagTemplateName() for help formatting this field. |
| `tagTemplateFieldId` | `string` Required. The ID of the tag template field to create. Note: Adding a required field to an existing template is *not* allowed. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template. |
| `tagTemplateField` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplateField` Required. The tag template field to create. |

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