Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class QueryInput.
Represents the query input. It can contain one of:
A conversational query in the form of text.
An intent query that specifies which intent to trigger.
- Natural language speech audio to be processed.
- An event to be triggered.
- DTMF digits to invoke an intent and fill in parameter value.
- The results of a tool executed by the client.
Generated from protobuf message google.cloud.dialogflow.cx.v3.QueryInput
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text |
TextInput
The natural language text to be processed. |
↳ intent |
IntentInput
The intent to be triggered. |
↳ audio |
AudioInput
The natural language speech audio to be processed. |
↳ event |
EventInput
The event to be triggered. |
↳ dtmf |
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 |
TextInput|null |
hasText
setText
The natural language text to be processed.
Parameter | |
---|---|
Name | Description |
var |
TextInput
|
Returns | |
---|---|
Type | Description |
$this |
getIntent
The intent to be triggered.
Returns | |
---|---|
Type | Description |
IntentInput|null |
hasIntent
setIntent
The intent to be triggered.
Parameter | |
---|---|
Name | Description |
var |
IntentInput
|
Returns | |
---|---|
Type | Description |
$this |
getAudio
The natural language speech audio to be processed.
Returns | |
---|---|
Type | Description |
AudioInput|null |
hasAudio
setAudio
The natural language speech audio to be processed.
Parameter | |
---|---|
Name | Description |
var |
AudioInput
|
Returns | |
---|---|
Type | Description |
$this |
getEvent
The event to be triggered.
Returns | |
---|---|
Type | Description |
EventInput|null |
hasEvent
setEvent
The event to be triggered.
Parameter | |
---|---|
Name | Description |
var |
EventInput
|
Returns | |
---|---|
Type | Description |
$this |
getDtmf
The DTMF event to be handled.
Returns | |
---|---|
Type | Description |
DtmfInput|null |
hasDtmf
setDtmf
The DTMF event to be handled.
Parameter | |
---|---|
Name | Description |
var |
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 |