Google Cloud Dialogflow Cx V3 Client - Class UserInput (0.5.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.

↳ input Google\Cloud\Dialogflow\Cx\V3\QueryInput

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

↳ 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
Google\Cloud\Dialogflow\Cx\V3\QueryInput|null

hasInput

clearInput

setInput

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

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

getInjectedParameters

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

Returns
Type Description
Google\Protobuf\Struct|null

hasInjectedParameters

clearInjectedParameters

setInjectedParameters

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

Parameter
Name Description
var Google\Protobuf\Struct
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