# Google Cloud Build V2 Client - Class FetchReadTokenResponse (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.16.3 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.3 0.6.1 0.5.1 0.4.0 0.3.8 Reference documentation and code samples for the Google Cloud Build V2 Client class FetchReadTokenResponse.

Message for responding to get read token.

Generated from protobuf message `google.devtools.cloudbuild.v2.FetchReadTokenResponse`

## Namespace

Google \\ Cloud \\ Build \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ token` | `string` The token content. |
| `↳ expiration_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Expiration timestamp. Can be empty if unknown or non-expiring. |

### 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasExpirationTime

### clearExpirationTime

### setExpirationTime

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

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

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