Reference documentation and code samples for the Google Cloud Ces V1 Client class Turn.
All information about a single turn in the conversation.
Generated from protobuf message google.cloud.ces.v1.Conversation.Turn
Namespace
Google \ Cloud \ Ces \ V1 \ ConversationMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ messages |
array<Google\Cloud\Ces\V1\Message>
Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing. |
↳ root_span |
Google\Cloud\Ces\V1\Span
Optional. The root span of the action processing. |
getMessages
Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setMessages
Optional. List of messages in the conversation turn, including user input, agent responses and intermediate events during the processing.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Ces\V1\Message>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRootSpan
Optional. The root span of the action processing.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\Ces\V1\Span|null |
|
hasRootSpan
clearRootSpan
setRootSpan
Optional. The root span of the action processing.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Ces\V1\Span
|
| Returns | |
|---|---|
| Type | Description |
$this |
|