Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCall

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

Returns a new instance of GoogleCloudDialogflowCxV3ToolCall.



2661
2662
2663
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2661

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


2649
2650
2651
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2649

def action
  @action
end

#input_parametersHash<String,Object>

Corresponds to the JSON property inputParameters

Returns:

  • (Hash<String,Object>)


2654
2655
2656
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2654

def input_parameters
  @input_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


2659
2660
2661
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2659

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2666
2667
2668
2669
2670
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2666

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