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

audio_config[RW]

Instructs the speech recognizer on how to process the audio content. Corresponds to the JSON property `audioConfig` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]

dtmf[RW]

A wrapper of repeated TelephonyDtmf digits. Corresponds to the JSON property `dtmf` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]

event[RW]

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]

text[RW]

Represents the natural language text to be processed. Corresponds to the JSON property `text` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12956
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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