# Google Cloud Resource Manager V3 Client - Class UpdateTagKeyRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.8.5 0.7.2 0.6.1 0.5.0 0.4.1 0.3.9 Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class UpdateTagKeyRequest.

The request message for updating a TagKey.

Generated from protobuf message `google.cloud.resourcemanager.v3.UpdateTagKeyRequest`

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tag_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagKey` Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant. |
| `↳ validate_only` | `bool` Set as true to perform validations necessary for updating the resource, but not actually perform the action. |

### getTagKey

Required. The new definition of the TagKey. Only the `description` and
`etag` fields can be updated by this request. If the `etag` field is not
empty, it must match the `etag` field of the existing tag key. Otherwise,
`ABORTED` will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagKey|null` |   |

### hasTagKey

### clearTagKey

### setTagKey

Required. The new definition of the TagKey. Only the `description` and
`etag` fields can be updated by this request. If the `etag` field is not
empty, it must match the `etag` field of the existing tag key. Otherwise,
`ABORTED` will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagKey` |

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

### getUpdateMask

Fields to be updated. The mask may only contain `description` or
`etag`. If omitted entirely, both `description` and `etag` are assumed to
be significant.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Fields to be updated. The mask may only contain `description` or
`etag`. If omitted entirely, both `description` and `etag` are assumed to
be significant.

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

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

### getValidateOnly

Set as true to perform validations necessary for updating the resource, but
not actually perform the action.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Set as true to perform validations necessary for updating the resource, but
not actually perform the action.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tagKey` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.TagKey` Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.UpdateTagKeyRequest` |   |