Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1QueryInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1QueryInput

Returns a new instance of GoogleCloudDialogflowCxV3beta1QueryInput.



10602
10603
10604
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10602

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

Instance Attribute Details

#audioGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AudioInput

Corresponds to the JSON property audio



10570
10571
10572
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10570

def audio
  @audio
end

#dtmfGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DtmfInput

Corresponds to the JSON property dtmf



10575
10576
10577
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10575

def dtmf
  @dtmf
end

#eventGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventInput

Corresponds to the JSON property event



10580
10581
10582
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10580

def event
  @event
end

#intentGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentInput

Corresponds to the JSON property intent



10585
10586
10587
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10585

def intent
  @intent
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


10590
10591
10592
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10590

def language_code
  @language_code
end

#textGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TextInput

Corresponds to the JSON property text



10595
10596
10597
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10595

def text
  @text
end

#tool_call_resultGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult

Corresponds to the JSON property toolCallResult



10600
10601
10602
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10600

def tool_call_result
  @tool_call_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10607
10608
10609
10610
10611
10612
10613
10614
10615
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10607

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