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.



1751
1752
1753
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1751

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)


1739
1740
1741
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1739

def data
  @data
end

#mime_typeString

The mime type of the document. Corresponds to the JSON property mime_type

Returns:

  • (String)


1744
1745
1746
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1744

def mime_type
  @mime_type
end

#uriString

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

Returns:

  • (String)


1749
1750
1751
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1749

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1756
1757
1758
1759
1760
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1756

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