1.2.3 (latest) 1.1.2 1.0.5 0.4.5 0.3.3 0.2.2 0.1.7 Reference documentation and code samples for the Google Cloud Api Keys V2 Client class GetKeyRequest.

Request message for `GetKey` method.

Generated from protobuf message `google.api.apikeys.v2.GetKeyRequest`

## Namespace

Google \\ Cloud \\ ApiKeys \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the API key to get. |

### getName

Required. The resource name of the API key to get.

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

### setName

Required. The resource name of the API key to get.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the API key to get. Please see ApiKeysClient::keyName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-api-keys/latest/V2.GetKeyRequest` |   |