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
The mime type of the document.
-
#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.
1639 1640 1641 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1639 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.
1627 1628 1629 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1627 def data @data end |
#mime_type ⇒ String
The mime type of the document.
Corresponds to the JSON property mime_type
1632 1633 1634 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1632 def mime_type @mime_type end |
#uri ⇒ String
The URI of the document.
Corresponds to the JSON property uri
1637 1638 1639 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1637 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1644 1645 1646 1647 1648 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1644 def update!(**args) @data = args[:data] if args.key?(:data) @mime_type = args[:mime_type] if args.key?(:mime_type) @uri = args[:uri] if args.key?(:uri) end |