Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResult

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

Returns a new instance of GoogleCloudDialogflowCxV3ToolCallResult.



8173
8174
8175
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8173

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


8156
8157
8158
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8156

def action
  @action
end

#errorGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolCallResultError

Corresponds to the JSON property error



8161
8162
8163
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8161

def error
  @error
end

#output_parametersHash<String,Object>

Corresponds to the JSON property outputParameters

Returns:

  • (Hash<String,Object>)


8166
8167
8168
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8166

def output_parameters
  @output_parameters
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


8171
8172
8173
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8171

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8178
8179
8180
8181
8182
8183
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8178

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