Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentContent
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentContent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Unstructured data linked to this document.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
The MIME type of the content.
-
#raw_bytes ⇒ String
The content represented as a stream of bytes.
-
#uri ⇒ String
The URI of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DocumentContent
constructor
A new instance of GoogleCloudDiscoveryengineV1DocumentContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DocumentContent
Returns a new instance of GoogleCloudDiscoveryengineV1DocumentContent.
3850 3851 3852 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3850 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
The MIME type of the content. Supported types: * application/pdf
(PDF, only
native PDFs are supported for now) * text/html
(HTML) * application/vnd.
openxmlformats-officedocument.wordprocessingml.document
(DOCX) * application/
vnd.openxmlformats-officedocument.presentationml.presentation
(PPTX) * text/
plain
(TXT) See https://www.iana.org/assignments/media-types/media-types.
xhtml.
Corresponds to the JSON property mimeType
3830 3831 3832 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3830 def mime_type @mime_type end |
#raw_bytes ⇒ String
The content represented as a stream of bytes. The maximum length is 1,000,000
bytes (1 MB / ~0.95 MiB). Note: As with all bytes
fields, this field is
represented as pure binary in Protocol Buffers and base64-encoded string in
JSON. For example, abc123!?$*&()'-=@~
should be represented as
YWJjMTIzIT8kKiYoKSctPUB+
in JSON. See https://developers.google.com/protocol-
buffers/docs/proto3#json.
Corresponds to the JSON property rawBytes
NOTE: Values are automatically base64 encoded/decoded in the client library.
3841 3842 3843 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3841 def raw_bytes @raw_bytes end |
#uri ⇒ String
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/
to/file
) are supported. The maximum file size is 2.5 MB for text-based
formats, 200 MB for other formats.
Corresponds to the JSON property uri
3848 3849 3850 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3848 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3855 3856 3857 3858 3859 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3855 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @raw_bytes = args[:raw_bytes] if args.key?(:raw_bytes) @uri = args[:uri] if args.key?(:uri) end |