Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent

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

A document content block.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1DocumentContent

Returns a new instance of GenaiVertexV1beta1DocumentContent.



2163
2164
2165
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2163

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

Instance Attribute Details

#dataString

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

Returns:

  • (String)


2149
2150
2151
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2149

def data
  @data
end

#mime_type_stringString

Flexible MIME type string of the document, superseding mime_type = 1. Note: Bespoke logic in the GAOS parser/serializer maps this to the "mime_type" JSON key. Corresponds to the JSON property mimeTypeString

Returns:

  • (String)


2156
2157
2158
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2156

def mime_type_string
  @mime_type_string
end

#uriString

The URI of the document. Corresponds to the JSON property uri

Returns:

  • (String)


2161
2162
2163
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2161

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2168
2169
2170
2171
2172
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2168

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @mime_type_string = args[:mime_type_string] if args.key?(:mime_type_string)
  @uri = args[:uri] if args.key?(:uri)
end