Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1QueryInput

Returns a new instance of GoogleCloudDialogflowV2beta1QueryInput.



15304
15305
15306
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15304

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#audio_configGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig

Instructs the speech recognizer on how to process the audio content. Corresponds to the JSON property audioConfig



15284
15285
15286
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15284

def audio_config
  @audio_config
end

#dtmfGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents

A wrapper of repeated TelephonyDtmf digits. Corresponds to the JSON property dtmf



15289
15290
15291
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15289

def dtmf
  @dtmf
end

#eventGoogle::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 parameternamemay be used by the agent in the response:" Hello #welcome_event.name! What can I do for you today?". Corresponds to the JSON propertyevent`



15297
15298
15299
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15297

def event
  @event
end

#textGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput

Represents the natural language text to be processed. Corresponds to the JSON property text



15302
15303
15304
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15302

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15309
15310
15311
15312
15313
15314
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15309

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