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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::Google::Cloud::Dialogflow::CX::V3::AudioInput
Returns
- (::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
#audio=
def audio=(value) -> ::Google::Cloud::Dialogflow::CX::V3::AudioInput
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::AudioInput) — The natural language speech audio to be processed.
#dtmf
def dtmf() -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
Returns
- (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
#dtmf=
def dtmf=(value) -> ::Google::Cloud::Dialogflow::CX::V3::DtmfInput
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::DtmfInput) — The DTMF event to be handled.
#event
def event() -> ::Google::Cloud::Dialogflow::CX::V3::EventInput
Returns
- (::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
#event=
def event=(value) -> ::Google::Cloud::Dialogflow::CX::V3::EventInput
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::EventInput) — The event to be triggered.
#intent
def intent() -> ::Google::Cloud::Dialogflow::CX::V3::IntentInput
Returns
- (::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
#intent=
def intent=(value) -> ::Google::Cloud::Dialogflow::CX::V3::IntentInput
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::IntentInput) — The intent to be triggered.
#language_code
def language_code() -> ::String
Returns
- (::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
Parameter
- 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.
Returns
- (::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
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.
#text=
def text=(value) -> ::Google::Cloud::Dialogflow::CX::V3::TextInput
Parameter
- value (::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.
Returns
- (::Google::Cloud::Dialogflow::CX::V3::TextInput) — The natural language text to be processed.