Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Chunk

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

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

Returns a new instance of GoogleCloudAiplatformV1beta1Chunk.



9810
9811
9812
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9810

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)


9797
9798
9799
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9797

def data
  @data
end

#metadataGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metadata

Metadata for a chunk. Corresponds to the JSON property metadata



9802
9803
9804
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9802

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)


9808
9809
9810
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9808

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9815
9816
9817
9818
9819
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9815

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