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.
Generated from protobuf message google.cloud.dialogflow.cx.v3.QueryInput
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
↳ intent
↳ audio
↳ event
↳ dtmf
↳ 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.
hasText
setText
The natural language text to be processed.
$this
getIntent
The intent to be triggered.
hasIntent
setIntent
The intent to be triggered.
$this
getAudio
The natural language speech audio to be processed.
hasAudio
setAudio
The natural language speech audio to be processed.
$this
getEvent
The event to be triggered.
hasEvent
setEvent
The event to be triggered.
$this
getDtmf
The DTMF event to be handled.
hasDtmf
setDtmf
The DTMF event to be handled.
$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.
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.
var
string
$this
getInput
string