Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCall

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) ⇒ GoogleCloudDialogflowCxV3beta1ToolCall

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCall.



6017
6018
6019
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6017

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


6005
6006
6007
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6005

def action
  @action
end

#input_parametersHash<String,Object>

Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,Object>)


6010
6011
6012
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6010

def input_parameters
  @input_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


6015
6016
6017
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6015

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6022
6023
6024
6025
6026
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6022

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
  @tool = args[:tool] if args.key?(:tool)
end