Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1QueryInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3beta1QueryInput.



5348
5349
5350
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5348

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1AudioInput

Corresponds to the JSON property audio



5316
5317
5318
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5316

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1DtmfInput

Corresponds to the JSON property dtmf



5321
5322
5323
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5321

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1EventInput

Corresponds to the JSON property event



5326
5327
5328
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5326

def event
  @event
end

#intentGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1IntentInput

Corresponds to the JSON property intent



5331
5332
5333
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5331

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


5336
5337
5338
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5336

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1TextInput

Corresponds to the JSON property text



5341
5342
5343
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5341

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult

Corresponds to the JSON property toolCallResult



5346
5347
5348
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5346

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5353
5354
5355
5356
5357
5358
5359
5360
5361
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 5353

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)
  @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
end