Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1Chunk

Returns a new instance of GoogleCloudAiplatformV1Chunk.



4076
4077
4078
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4076

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

Instance Attribute Details

#dataString

Required. The data in the chunk. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4063
4064
4065
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4063

def data
  @data
end

#metadataGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata

Metadata for a chunk. Corresponds to the JSON property metadata



4068
4069
4070
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4068

def 
  @metadata
end

#mime_typeString

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

Returns:

  • (String)


4074
4075
4076
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4074

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4081
4082
4083
4084
4085
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 4081

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