Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCallResult

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCallResult.



12396
12397
12398
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12396

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


12379
12380
12381
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12379

def action
  @action
end

#errorGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1ToolCallResultError

Corresponds to the JSON property error



12384
12385
12386
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12384

def error
  @error
end

#output_parametersHash<String,Object>

Corresponds to the JSON property outputParameters

Returns:

  • (Hash<String,Object>)


12389
12390
12391
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12389

def output_parameters
  @output_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


12394
12395
12396
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12394

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12401
12402
12403
12404
12405
12406
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12401

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