Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Document::Content.
Unstructured data linked to this document.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#mime_type
def mime_type() -> ::String
-
(::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.
#mime_type=
def mime_type=(value) -> ::String
-
value (::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.
-
(::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.
#raw_bytes
def raw_bytes() -> ::String
-
(::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 asYWJjMTIzIT8kKiYoKSctPUB+
in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
#raw_bytes=
def raw_bytes=(value) -> ::String
-
value (::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 asYWJjMTIzIT8kKiYoKSctPUB+
in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
-
(::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 asYWJjMTIzIT8kKiYoKSctPUB+
in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
#uri
def uri() -> ::String
-
(::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, 100 MB for other formats.
#uri=
def uri=(value) -> ::String
-
value (::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, 100 MB for other formats.
-
(::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, 100 MB for other formats.