Google Cloud Dialogflow Cx V3 Client - Class ConversationTurn (0.1.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
NameDescription
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
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\UserInput|null

hasUserInput

clearUserInput

setUserInput

The user input.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\UserInput
Returns
TypeDescription
$this

getVirtualAgentOutput

The virtual agent output.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\VirtualAgentOutput|null

hasVirtualAgentOutput

clearVirtualAgentOutput

setVirtualAgentOutput

The virtual agent output.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\ConversationTurn\VirtualAgentOutput
Returns
TypeDescription
$this