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

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 ConversationTurn\UserInput

The user input.

↳ virtual_agent_output ConversationTurn\VirtualAgentOutput

The virtual agent output.

getUserInput

The user input.

Returns
Type Description
ConversationTurn\UserInput|null

hasUserInput

clearUserInput

setUserInput

The user input.

Parameter
Name Description
var ConversationTurn\UserInput
Returns
Type Description
$this

getVirtualAgentOutput

The virtual agent output.

Returns
Type Description
ConversationTurn\VirtualAgentOutput|null

hasVirtualAgentOutput

clearVirtualAgentOutput

setVirtualAgentOutput

The virtual agent output.

Parameter
Name Description
var ConversationTurn\VirtualAgentOutput
Returns
Type Description
$this