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 GenerateChatTokenResponse.

Response message for
[WidgetService.GenerateChatToken](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Client.WidgetServiceClient.md.txt#_Google_Cloud_Ces_V1_Client_WidgetServiceClient__generateChatToken__).

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

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ chat_token` | `string` The session scoped token for chat widget to authenticate with Session APIs. |
| `↳ expire_time` | `Google\Protobuf\Timestamp` The time at which the chat token expires. |

### getChatToken

The session scoped token for chat widget to authenticate with Session APIs.

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

### setChatToken

The session scoped token for chat widget to authenticate with Session APIs.

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

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

### getExpireTime

The time at which the chat token expires.

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

### hasExpireTime

### clearExpireTime

### setExpireTime

The time at which the chat token expires.

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

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