class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput
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.
Attributes
Instructs the speech recognizer on how to process the audio content. Corresponds to the JSON property `audioConfig` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
A wrapper of repeated TelephonyDtmf digits. Corresponds to the JSON property `dtmf` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
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 `name` may 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` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput]
Represents the natural language text to be processed. Corresponds to the JSON property `text` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
Public Class Methods
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12956 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12961 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