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

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.

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

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\TextInput|null

hasText

setText

The natural language text to be processed.

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

getIntent

The intent to be triggered.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\IntentInput|null

hasIntent

setIntent

The intent to be triggered.

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

getAudio

The natural language speech audio to be processed.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\AudioInput|null

hasAudio

setAudio

The natural language speech audio to be processed.

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

getEvent

The event to be triggered.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\EventInput|null

hasEvent

setEvent

The event to be triggered.

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

getDtmf

The DTMF event to be handled.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\DtmfInput|null

hasDtmf

setDtmf

The DTMF event to be handled.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\DtmfInput
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getInput

Returns
TypeDescription
string