Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::Google::Cloud::Dialogflow::CX::V3::AudioInput
-
(::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
Note: The following fields are mutually exclusive:
audio
,text
,intent
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#audio=
def audio=(value) -> ::Google::Cloud::Dialogflow::CX::V3::AudioInput
-
value (::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
Note: The following fields are mutually exclusive:
audio
,text
,intent
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
Note: The following fields are mutually exclusive:
audio
,text
,intent
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dtmf
def dtmf() -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
-
(::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
Note: The following fields are mutually exclusive:
dtmf
,text
,intent
,audio
,event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dtmf=
def dtmf=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
-
value (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
Note: The following fields are mutually exclusive:
dtmf
,text
,intent
,audio
,event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
Note: The following fields are mutually exclusive:
dtmf
,text
,intent
,audio
,event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#event
def event() -> ::Google::Cloud::Dialogflow::CX::V3::EventInput
-
(::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
Note: The following fields are mutually exclusive:
event
,text
,intent
,audio
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#event=
def event=(value) -> ::Google::Cloud::Dialogflow::CX::V3::EventInput
-
value (::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
Note: The following fields are mutually exclusive:
event
,text
,intent
,audio
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
Note: The following fields are mutually exclusive:
event
,text
,intent
,audio
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#intent
def intent() -> ::Google::Cloud::Dialogflow::CX::V3::IntentInput
-
(::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
Note: The following fields are mutually exclusive:
intent
,text
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#intent=
def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::IntentInput
-
value (::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
Note: The following fields are mutually exclusive:
intent
,text
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
Note: The following fields are mutually exclusive:
intent
,text
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#language_code
def language_code() -> ::String
- (::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.
#language_code=
def language_code=(value) -> ::String
- value (::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.
- (::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.
#text
def text() -> ::Google::Cloud::Dialogflow::CX::V3::TextInput
-
(::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.
Note: The following fields are mutually exclusive:
text
,intent
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text=
def text=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TextInput
-
value (::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.
Note: The following fields are mutually exclusive:
text
,intent
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.
Note: The following fields are mutually exclusive:
text
,intent
,audio
,event
,dtmf
. If a field in that set is populated, all other fields in the set will automatically be cleared.