Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCallResult

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

Returns a new instance of GoogleCloudDialogflowCxV3ToolCallResult.



2703
2704
2705
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2703

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


2686
2687
2688
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2686

def action
  @action
end

#errorGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCallResultError

Corresponds to the JSON property error



2691
2692
2693
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2691

def error
  @error
end

#output_parametersHash<String,Object>

Corresponds to the JSON property outputParameters

Returns:

  • (Hash<String,Object>)


2696
2697
2698
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2696

def output_parameters
  @output_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


2701
2702
2703
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2701

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2708
2709
2710
2711
2712
2713
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2708

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