Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult

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

Returns a new instance of GoogleCloudDialogflowCxV3beta1ToolCallResult.



6053
6054
6055
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6053

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


6036
6037
6038
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6036

def action
  @action
end

#errorGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResultError

Corresponds to the JSON property error



6041
6042
6043
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6041

def error
  @error
end

#output_parametersHash<String,Object>

Corresponds to the JSON property outputParameters

Returns:

  • (Hash<String,Object>)


6046
6047
6048
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6046

def output_parameters
  @output_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


6051
6052
6053
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6051

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6058
6059
6060
6061
6062
6063
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6058

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