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

Request message for
UpdateTagTemplateField.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the tag template field. |
| `↳ tag_template_field` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplateField` Required. The template to update. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Names of fields whose values to overwrite on an individual field of a tag template. The following fields are modifiable: \* \* `display_name` \* \* `type.enum_type` \* \* `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating a template field from optional to required is *not* allowed. |

### getName

Required. The name of the tag template field.

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

### setName

Required. The name of the tag template field.

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

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

### getTagTemplateField

Required. The template to update.

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

### hasTagTemplateField

### clearTagTemplateField

### setTagTemplateField

Required. The template to update.

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

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

### getUpdateMask

Optional. Names of fields whose values to overwrite on an individual field
of a tag template. The following fields are modifiable:

- `display_name`
- `type.enum_type`
- `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed.

Additionally, updating a template field from optional to required is
*not* allowed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. Names of fields whose values to overwrite on an individual field
of a tag template. The following fields are modifiable:

- `display_name`
- `type.enum_type`
- `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed.

Additionally, updating a template field from optional to required is
*not* allowed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the tag template field. Please see DataCatalogClient::tagTemplateFieldName() for help formatting this field. |
| `tagTemplateField` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplateField` Required. The template to update. |

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

### static::buildFromNameTagTemplateFieldUpdateMask

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the tag template field. Please see DataCatalogClient::tagTemplateFieldName() for help formatting this field. |
| `tagTemplateField` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.TagTemplateField` Required. The template to update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Names of fields whose values to overwrite on an individual field of a tag template. The following fields are modifiable: - - `display_name` - - `type.enum_type` - - `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating a template field from optional to required is *not* allowed. |

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