Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCall

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCall.



12348
12349
12350
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12348

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


12336
12337
12338
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12336

def action
  @action
end

#input_parametersHash<String,Object>

Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,Object>)


12341
12342
12343
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12341

def input_parameters
  @input_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


12346
12347
12348
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12346

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12353
12354
12355
12356
12357
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12353

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