Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3QueryInput

Inherits:
Object
  • Object
show all
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 one of: 1. A conversational query in the form of text. 2. An intent query that specifies which intent to trigger.

  1. Natural language speech audio to be processed. 4. An event to be triggered.
  2. DTMF digits to invoke an intent and fill in parameter value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3QueryInput.



2177
2178
2179
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2177

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AudioInput

Represents the natural speech audio to be processed. Corresponds to the JSON property audio



2146
2147
2148
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2146

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3DtmfInput

Represents the input for dtmf event. Corresponds to the JSON property dtmf



2151
2152
2153
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2151

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3EventInput

Represents the event to trigger. Corresponds to the JSON property event



2156
2157
2158
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2156

def event
  @event
end

#intentGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3IntentInput

Represents the intent to trigger programmatically rather than as a result of natural language processing. Corresponds to the JSON property intent



2162
2163
2164
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2162

def intent
  @intent
end

#language_codeString

Required. The language of the input. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. Corresponds to the JSON property languageCode

Returns:

  • (String)


2170
2171
2172
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2170

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TextInput

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



2175
2176
2177
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2175

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2182
2183
2184
2185
2186
2187
2188
2189
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2182

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @dtmf = args[:dtmf] if args.key?(:dtmf)
  @event = args[:event] if args.key?(:event)
  @intent = args[:intent] if args.key?(:intent)
  @language_code = args[:language_code] if args.key?(:language_code)
  @text = args[:text] if args.key?(:text)
end