# Google Cloud Iam Credentials V1 Client - Class GenerateIdTokenResponse (2.2.0)

2.2.0 (latest) 2.1.2 2.0.4 1.2.5 1.1.2 1.0.6 Reference documentation and code samples for the Google Cloud Iam Credentials V1 Client class GenerateIdTokenResponse.

Generated from protobuf message `google.iam.credentials.v1.GenerateIdTokenResponse`

## Namespace

Google \\ Cloud \\ Iam \\ Credentials \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ token` | `string` The OpenId Connect ID token. |

### getToken

The OpenId Connect ID token.

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

### setToken

The OpenId Connect ID token.

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

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