Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1Content

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The content of the response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1Content

Returns a new instance of GenaiVertexV1beta1Content.



1367
1368
1369
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1367

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

Instance Attribute Details

#audioGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1AudioContent

An audio content block. Corresponds to the JSON property audio



1330
1331
1332
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1330

def audio
  @audio
end

#documentGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent

A document content block. Corresponds to the JSON property document



1335
1336
1337
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1335

def document
  @document
end

#imageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ImageContent

An image content block. Corresponds to the JSON property image



1340
1341
1342
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1340

def image
  @image
end

#textGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1TextContent

A text content block. Corresponds to the JSON property text



1345
1346
1347
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1345

def text
  @text
end

#thoughtGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ThoughtContent

A thought content block. Corresponds to the JSON property thought



1350
1351
1352
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1350

def thought
  @thought
end

#tool_callGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolCallContent

Tool call content. Corresponds to the JSON property toolCall



1355
1356
1357
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1355

def tool_call
  @tool_call
end

#tool_resultGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ToolResultContent

Tool result content. Corresponds to the JSON property toolResult



1360
1361
1362
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1360

def tool_result
  @tool_result
end

#videoGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1VideoContent

A video content block. Corresponds to the JSON property video



1365
1366
1367
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1365

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1372

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @document = args[:document] if args.key?(:document)
  @image = args[:image] if args.key?(:image)
  @text = args[:text] if args.key?(:text)
  @thought = args[:thought] if args.key?(:thought)
  @tool_call = args[:tool_call] if args.key?(:tool_call)
  @tool_result = args[:tool_result] if args.key?(:tool_result)
  @video = args[:video] if args.key?(:video)
end