Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1DocumentContent
- 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
-
#data ⇒ String
The document content.
-
#mime_type_string ⇒ String
Flexible MIME type string of the document, superseding mime_type = 1.
-
#uri ⇒ String
The URI of the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1DocumentContent
constructor
A new instance of GenaiVertexV1beta1DocumentContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#data ⇒ String
The document content.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
2149 2150 2151 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2149 def data @data end |
#mime_type_string ⇒ String
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
2156 2157 2158 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2156 def mime_type_string @mime_type_string end |
#uri ⇒ String
The URI of the document.
Corresponds to the JSON property uri
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 |