Google Cloud Dialogflow Cx V3 Client - Class UserInput (0.8.1)

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

The input from the human user.

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

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ ConversationTurn

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ injected_parameters
Google\Protobuf\Struct

Parameters that need to be injected into the conversation during intent detection.

↳ is_webhook_enabled
bool

If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.

↳ enable_sentiment_analysis
bool

Whether sentiment analysis is enabled.

getInput

Supports text input , event input , dtmf input in the test case.

Returns
Type
Description

hasInput

clearInput

setInput

Supports text input , event input , dtmf input in the test case.

Parameter
Name
Description
Returns
Type
Description
$this

getInjectedParameters

Parameters that need to be injected into the conversation during intent detection.

Returns
Type
Description

hasInjectedParameters

clearInjectedParameters

setInjectedParameters

Parameters that need to be injected into the conversation during intent detection.

Parameter
Name
Description
Returns
Type
Description
$this

getIsWebhookEnabled

If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.

Returns
Type
Description
bool

setIsWebhookEnabled

If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getEnableSentimentAnalysis

Whether sentiment analysis is enabled.

Returns
Type
Description
bool

setEnableSentimentAnalysis

Whether sentiment analysis is enabled.

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