Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk
- 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
Container for bytes-encoded data such as video frame, audio sample, or a complete binary/text data.
Instance Attribute Summary collapse
-
#data ⇒ String
Required.
-
#metadata ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata
Metadata for a chunk.
-
#mime_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1Chunk
constructor
A new instance of GoogleCloudAiplatformV1Chunk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1Chunk
Returns a new instance of GoogleCloudAiplatformV1Chunk.
3604 3605 3606 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 3604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
Required. The data in the chunk.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
3591 3592 3593 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 3591 def data @data end |
#metadata ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata
Metadata for a chunk.
Corresponds to the JSON property metadata
3596 3597 3598 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 3596 def @metadata end |
#mime_type ⇒ String
Required. Mime type of the chunk data. See https://www.iana.org/assignments/
media-types/media-types.xhtml for the full list.
Corresponds to the JSON property mimeType
3602 3603 3604 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 3602 def mime_type @mime_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3609 3610 3611 3612 3613 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 3609 def update!(**args) @data = args[:data] if args.key?(:data) @metadata = args[:metadata] if args.key?(:metadata) @mime_type = args[:mime_type] if args.key?(:mime_type) end |