Google Cloud Dialogflow Cx V3 Client - Class QueryInput (0.4.0)

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

Represents the query input. It can contain one of:

  1. A conversational query in the form of text.

  2. An intent query that specifies which intent to trigger.

  3. Natural language speech audio to be processed.
  4. An event to be triggered.
  5. DTMF digits to invoke an intent and fill in parameter value.
  6. The results of a tool executed by the client.

Generated from protobuf message google.cloud.dialogflow.cx.v3.QueryInput

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text Google\Cloud\Dialogflow\Cx\V3\TextInput

The natural language text to be processed.

↳ intent Google\Cloud\Dialogflow\Cx\V3\IntentInput

The intent to be triggered.

↳ audio Google\Cloud\Dialogflow\Cx\V3\AudioInput

The natural language speech audio to be processed.

↳ event Google\Cloud\Dialogflow\Cx\V3\EventInput

The event to be triggered.

↳ dtmf Google\Cloud\Dialogflow\Cx\V3\DtmfInput

The DTMF event to be handled.

↳ language_code string

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

getText

The natural language text to be processed.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\TextInput|null

hasText

setText

The natural language text to be processed.

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

getIntent

The intent to be triggered.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\IntentInput|null

hasIntent

setIntent

The intent to be triggered.

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

getAudio

The natural language speech audio to be processed.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\AudioInput|null

hasAudio

setAudio

The natural language speech audio to be processed.

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

getEvent

The event to be triggered.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\EventInput|null

hasEvent

setEvent

The event to be triggered.

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

getDtmf

The DTMF event to be handled.

Returns
Type Description
Google\Cloud\Dialogflow\Cx\V3\DtmfInput|null

hasDtmf

setDtmf

The DTMF event to be handled.

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

getLanguageCode

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

Returns
Type Description
string

setLanguageCode

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.

Parameter
Name Description
var string
Returns
Type Description
$this

getInput

Returns
Type Description
string