Google Cloud Dialogflow Cx V3 Client - Class ConversationTurn (0.4.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ConversationTurn.

One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ConversationTurn

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_input Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\UserInput

The user input.

↳ virtual_agent_output Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\VirtualAgentOutput

The virtual agent output.

getUserInput

The user input.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\UserInput|null

hasUserInput

clearUserInput

setUserInput

The user input.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\UserInput
Returns
Type Description
$this

getVirtualAgentOutput

The virtual agent output.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\VirtualAgentOutput|null

hasVirtualAgentOutput

clearVirtualAgentOutput

setVirtualAgentOutput

The virtual agent output.

Parameter
Name Description
var Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\VirtualAgentOutput
Returns
Type Description
$this