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

hasInput

clearInput

setInput

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

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

getInjectedParameters

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

Returns
TypeDescription
Google\Protobuf\Struct|null

hasInjectedParameters

clearInjectedParameters

setInjectedParameters

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

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this

getEnableSentimentAnalysis

Whether sentiment analysis is enabled.

Returns
TypeDescription
bool

setEnableSentimentAnalysis

Whether sentiment analysis is enabled.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this