0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class BearerTokenConfig.

Configurations for authentication with a bearer token.

Generated from protobuf message `google.cloud.ces.v1.BearerTokenConfig`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ token` | `string` Required. The bearer token. Must be in the format `$context.variables.<name_of_variable>`. |

### getToken

Required. The bearer token.

Must be in the format `$context.variables.<name_of_variable>`.

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

### setToken

Required. The bearer token.

Must be in the format `$context.variables.<name_of_variable>`.

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

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