Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ToolCallResult

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

Overview

The result of calling a tool's action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolCallResult

Returns a new instance of GoogleCloudDialogflowV2ToolCallResult.



20334
20335
20336
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20334

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

Instance Attribute Details

#actionString

Optional. The name of the tool's action associated with this call. Corresponds to the JSON property action

Returns:

  • (String)


20299
20300
20301
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20299

def action
  @action
end

#answer_recordString

Optional. The answer record associated with this tool call result. Corresponds to the JSON property answerRecord

Returns:

  • (String)


20304
20305
20306
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20304

def answer_record
  @answer_record
end

#contentString

Only populated if the response content is utf-8 encoded. Corresponds to the JSON property content

Returns:

  • (String)


20309
20310
20311
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20309

def content
  @content
end

#create_timeString

Output only. Create time of the tool call result. Corresponds to the JSON property createTime

Returns:

  • (String)


20314
20315
20316
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20314

def create_time
  @create_time
end

#errorGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ToolCallResultError

An error produced by the tool call. Corresponds to the JSON property error



20319
20320
20321
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20319

def error
  @error
end

#raw_contentString

Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded). Corresponds to the JSON property rawContent NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


20326
20327
20328
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20326

def raw_content
  @raw_content
end

#toolString

Optional. The tool associated with this call. Format: projects//locations// tools/. Corresponds to the JSON property tool

Returns:

  • (String)


20332
20333
20334
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20332

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20339
20340
20341
20342
20343
20344
20345
20346
20347
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 20339

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