Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig
Instructs the speech recognizer on how to process the audio content.
-
#dtmf ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
A wrapper of repeated TelephonyDtmf digits.
-
#event ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput
Events allow for matching intents by event name instead of the natural language input.
-
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1QueryInput
constructor
A new instance of GoogleCloudDialogflowV2beta1QueryInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1QueryInput
Returns a new instance of GoogleCloudDialogflowV2beta1QueryInput.
16624 16625 16626 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16624 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio_config ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig
Instructs the speech recognizer on how to process the audio content.
Corresponds to the JSON property audioConfig
16604 16605 16606 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16604 def audio_config @audio_config end |
#dtmf ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
A wrapper of repeated TelephonyDtmf digits.
Corresponds to the JSON property dtmf
16609 16610 16611 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16609 def dtmf @dtmf end |
#event ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput
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`
16617 16618 16619 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16617 def event @event end |
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput
Represents the natural language text to be processed.
Corresponds to the JSON property text
16622 16623 16624 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16622 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16629 16630 16631 16632 16633 16634 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16629 def update!(**args) @audio_config = args[:audio_config] if args.key?(:audio_config) @dtmf = args[:dtmf] if args.key?(:dtmf) @event = args[:event] if args.key?(:event) @text = args[:text] if args.key?(:text) end |