Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCallResult

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

Returns a new instance of GoogleCloudDialogflowV2beta1ToolCallResult.



21420
21421
21422
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21420

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


21387
21388
21389
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21387

def action
  @action
end

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


21392
21393
21394
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21392

def answer_record
  @answer_record
end

#contentString

Corresponds to the JSON property content

Returns:

  • (String)


21397
21398
21399
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21397

def content
  @content
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


21402
21403
21404
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21402

def create_time
  @create_time
end

#errorGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCallResultError

Corresponds to the JSON property error



21407
21408
21409
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21407

def error
  @error
end

#raw_contentString

Corresponds to the JSON property rawContent NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


21413
21414
21415
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21413

def raw_content
  @raw_content
end

#toolString

Corresponds to the JSON property tool

Returns:

  • (String)


21418
21419
21420
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21418

def tool
  @tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21425
21426
21427
21428
21429
21430
21431
21432
21433
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 21425

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