Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Represents the query input. It can contain either: 1. An audio config which instructs the speech recognizer how to process the speech audio. 2. A conversational query in the form of text. 3. An event that specifies which intent to trigger.
Instance Attribute Summary collapse
-
#audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig
Instructs the speech recognizer how to process the audio content.
-
#event ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput
Events allow for matching intents by event name instead of the natural language input.
-
#text ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
Auxiliary proto messages.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2QueryInput
constructor
A new instance of GoogleCloudDialogflowV2QueryInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2QueryInput
Returns a new instance of GoogleCloudDialogflowV2QueryInput.
14439 14440 14441 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14439 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_config ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig
Instructs the speech recognizer how to process the audio content.
Corresponds to the JSON property audioConfig
14424 14425 14426 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14424 def audio_config @audio_config end |
#event ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput
Events allow for matching intents by event name instead of the natural
language input. For instance, input `can trigger a personalized welcome
response. The parameter
namemay be used by the agent in the response:
"
Hello #welcome_event.name! What can I do for you today?".
Corresponds to the JSON property
event`
14432 14433 14434 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14432 def event @event end |
#text ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput
Auxiliary proto messages. Represents the natural language text to be processed.
Corresponds to the JSON property text
14437 14438 14439 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14437 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14444 14445 14446 14447 14448 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14444 def update!(**args) @audio_config = args[:audio_config] if args.key?(:audio_config) @event = args[:event] if args.key?(:event) @text = args[:text] if args.key?(:text) end |