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

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

hasUserInput

clearUserInput

setUserInput

The user input.

Parameter
Name
Description
Returns
Type
Description
$this

getVirtualAgentOutput

The virtual agent output.

Returns
Type
Description

hasVirtualAgentOutput

clearVirtualAgentOutput

setVirtualAgentOutput

The virtual agent output.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: