Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
A datatype containing media that is part of a multi-part Content message. A
Part consists of data which has an associated datatype. A Part can only
contain one of the accepted types in Part.data. A Part must have a fixed
IANA MIME type identifying the type and subtype of the media if inline_data
or file_data field is filled with raw bytes.
Instance Attribute Summary collapse
-
#file_data ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData
URI based data.
-
#inline_data ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob
Raw media bytes.
-
#text ⇒ String
Optional.
-
#video_metadata ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata
Metadata describes the input video content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1Part
constructor
A new instance of GoogleCloudAiplatformV1Part.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1Part
Returns a new instance of GoogleCloudAiplatformV1Part.
14731 14732 14733 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_data ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData
URI based data.
Corresponds to the JSON property fileData
14714 14715 14716 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14714 def file_data @file_data end |
#inline_data ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob
Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
Corresponds to the JSON property inlineData
14719 14720 14721 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14719 def inline_data @inline_data end |
#text ⇒ String
Optional. Text part (can be code).
Corresponds to the JSON property text
14724 14725 14726 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14724 def text @text end |
#video_metadata ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata
Metadata describes the input video content.
Corresponds to the JSON property videoMetadata
14729 14730 14731 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14729 def @video_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14736 14737 14738 14739 14740 14741 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 14736 def update!(**args) @file_data = args[:file_data] if args.key?(:file_data) @inline_data = args[:inline_data] if args.key?(:inline_data) @text = args[:text] if args.key?(:text) @video_metadata = args[:video_metadata] if args.key?(:video_metadata) end |