# Google Cloud Tpu V2 Client - Class GenerateServiceIdentityResponse (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class GenerateServiceIdentityResponse.

Response for
[GenerateServiceIdentity](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.Client.TpuClient#_Google_Cloud_Tpu_V2_Client_TpuClient__generateServiceIdentity__).

Generated from protobuf message `google.cloud.tpu.v2.GenerateServiceIdentityResponse`

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ identity` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.ServiceIdentity` ServiceIdentity that was created or retrieved. |

### getIdentity

ServiceIdentity that was created or retrieved.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.ServiceIdentity|null` |   |

### hasIdentity

### clearIdentity

### setIdentity

ServiceIdentity that was created or retrieved.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.ServiceIdentity` |

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