# Google Cloud Iam Credentials V1 Client - Class GenerateAccessTokenResponse (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 GenerateAccessTokenResponse.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ access_token` | `string` The OAuth 2.0 access token. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Token expiration time. The expiration time is always set. |

### getAccessToken

The OAuth 2.0 access token.

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

### setAccessToken

The OAuth 2.0 access token.

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

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

### getExpireTime

Token expiration time.

The expiration time is always set.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

Token expiration time.

The expiration time is always set.

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

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