Class: Google::Cloud::DiscoveryEngine::V1beta::Document::Content
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::Document::Content
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/document.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 Attribute Details
#mime_type ⇒ ::String
Returns 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.
100 101 102 103 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/document.rb', line 100 class Content include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_bytes ⇒ ::String
Returns 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.
100 101 102 103 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/document.rb', line 100 class Content include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#uri ⇒ ::String
Returns The URI of the content. Only Cloud Storage URIs (e.g.
gs://bucket-name/path/to/file
) are supported. The maximum file size
is 100 MB.
100 101 102 103 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/document.rb', line 100 class Content include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |