Reference documentation and code samples for the Google Cloud Ces V1 Client class GenerateChatTokenResponse.
Response message for WidgetService.GenerateChatToken.
Generated from protobuf message google.cloud.ces.v1.GenerateChatTokenResponse
Namespace
Google \ Cloud \ Ces \ V1Methods
__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 |
|