# Google Cloud Resource Manager V3 Client - Class GetNamespacedTagKeyRequest (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 GetNamespacedTagKeyRequest.

The request message for getting a TagKey by its namespaced name.

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

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name "foo" under the organization with ID 42 or `r2-d2/bar` for a key with short name "bar" under the project `r2-d2`. |

### getName

Required. A namespaced tag key name in the format
`{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name
"foo" under the organization with ID 42 or `r2-d2/bar` for a key with short
name "bar" under the project `r2-d2`.

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

### setName

Required. A namespaced tag key name in the format
`{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name
"foo" under the organization with ID 42 or `r2-d2/bar` for a key with short
name "bar" under the project `r2-d2`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name "foo" under the organization with ID 42 or `r2-d2/bar` for a key with short name "bar" under the project `r2-d2`. Please see TagKeysClient::tagKeyName() for help formatting this field. |

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