0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchAccessTokenResponse.

Message for responding to getting an OAuth access token.

Generated from protobuf message `google.cloud.developerconnect.v1.FetchAccessTokenResponse`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ token` | `string` The token content. |
| `↳ expiration_time` | `Google\Protobuf\Timestamp` Expiration timestamp. Can be empty if unknown or non-expiring. |
| `↳ scopes` | `string[]` The scopes of the access token. |
| `↳ exchange_error` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ExchangeError` The error resulted from exchanging OAuth tokens from the service provider. |

### getToken

The token content.

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

### setToken

The token content.

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

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

### getExpirationTime

Expiration timestamp. Can be empty if unknown or non-expiring.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasExpirationTime

### clearExpirationTime

### setExpirationTime

Expiration timestamp. Can be empty if unknown or non-expiring.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getScopes

The scopes of the access token.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setScopes

The scopes of the access token.

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

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

### getExchangeError

The error resulted from exchanging OAuth tokens from the service provider.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ExchangeError|null` |   |

### hasExchangeError

### clearExchangeError

### setExchangeError

The error resulted from exchanging OAuth tokens from the service provider.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ExchangeError` |

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