Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1QueryInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3beta1QueryInput.



11691
11692
11693
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11691

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1AudioInput

Corresponds to the JSON property audio



11659
11660
11661
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11659

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1DtmfInput

Corresponds to the JSON property dtmf



11664
11665
11666
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11664

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EventInput

Corresponds to the JSON property event



11669
11670
11671
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11669

def event
  @event
end

#intentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1IntentInput

Corresponds to the JSON property intent



11674
11675
11676
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11674

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


11679
11680
11681
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11679

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TextInput

Corresponds to the JSON property text



11684
11685
11686
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11684

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCallResult

Corresponds to the JSON property toolCallResult



11689
11690
11691
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11689

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11696
11697
11698
11699
11700
11701
11702
11703
11704
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 11696

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