See https://www.iana.org/assignments/media-types/media-types.xhtml.
#raw_bytes
defraw_bytes()->::String
Returns
(::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.
Note: The following fields are mutually exclusive: raw_bytes, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#raw_bytes=
defraw_bytes=(value)->::String
Parameter
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 as
YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See
https://developers.google.com/protocol-buffers/docs/proto3#json.
Note: The following fields are mutually exclusive: raw_bytes, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::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.
Note: The following fields are mutually exclusive: raw_bytes, uri. If a field in that set is populated, all other fields in the set will automatically be cleared.
#uri
defuri()->::String
Returns
(::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.
Note: The following fields are mutually exclusive: uri, raw_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.
#uri=
defuri=(value)->::String
Parameter
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, 200 MB for other formats.
Note: The following fields are mutually exclusive: uri, raw_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::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.
Note: The following fields are mutually exclusive: uri, raw_bytes. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Document::Content (v0.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.21.0 (latest)](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.20.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.20.1/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.19.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.19.1/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.18.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.18.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.17.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.17.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.16.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.16.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.15.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.15.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.14.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.14.2/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.13.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.13.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.12.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.12.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.11.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.11.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.10.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.10.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.9.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.9.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.8.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.8.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.7.2](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.7.2/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.6.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.6.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.5.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.5.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.4.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.4.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.3.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.3.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.2.1](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.2.1/Google-Cloud-DiscoveryEngine-V1beta-Document-Content)\n- [0.1.0](/ruby/docs/reference/google-cloud-discovery_engine-v1beta/0.1.0/Google-Cloud-DiscoveryEngine-V1beta-Document-Content) \nReference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Document::Content.\n\nUnstructured data linked to this document. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #mime_type\n\n def mime_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The MIME type of the content. Supported types:\n\n - `application/pdf` (PDF, only native PDFs are supported for now)\n - `text/html` (HTML)\n - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)\n - `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)\n - `text/plain` (TXT)\n\n See https://www.iana.org/assignments/media-types/media-types.xhtml.\n\n### #mime_type=\n\n def mime_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The MIME type of the content. Supported types:\n\n\n - `application/pdf` (PDF, only native PDFs are supported for now)\n - `text/html` (HTML)\n - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)\n - `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)\n - `text/plain` (TXT)\n\nSee https://www.iana.org/assignments/media-types/media-types.xhtml. \n**Returns**\n\n- (::String) --- The MIME type of the content. Supported types:\n\n - `application/pdf` (PDF, only native PDFs are supported for now)\n - `text/html` (HTML)\n - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)\n - `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)\n - `text/plain` (TXT)\n\n See https://www.iana.org/assignments/media-types/media-types.xhtml.\n\n### #raw_bytes\n\n def raw_bytes() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / \\~0.95 MiB).\n\n Note: As with all `bytes` fields, this field is represented as pure\n binary in Protocol Buffers and base64-encoded string in JSON. For\n example, `abc123!?$*&()'-=@~` should be represented as\n `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See\n https://developers.google.com/protocol-buffers/docs/proto3#json.\n\n Note: The following fields are mutually exclusive: `raw_bytes`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #raw_bytes=\n\n def raw_bytes=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / \\~0.95 MiB).\n\n\n Note: As with all `bytes` fields, this field is represented as pure\n binary in Protocol Buffers and base64-encoded string in JSON. For\n example, `abc123!?$*&()'-=@~` should be represented as\n `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See\n https://developers.google.com/protocol-buffers/docs/proto3#json.\n\nNote: The following fields are mutually exclusive: `raw_bytes`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / \\~0.95 MiB).\n\n Note: As with all `bytes` fields, this field is represented as pure\n binary in Protocol Buffers and base64-encoded string in JSON. For\n example, `abc123!?$*&()'-=@~` should be represented as\n `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See\n https://developers.google.com/protocol-buffers/docs/proto3#json.\n\n Note: The following fields are mutually exclusive: `raw_bytes`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n\n Note: The following fields are mutually exclusive: `uri`, `raw_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **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, 200 MB for other formats.\n\n\nNote: The following fields are mutually exclusive: `uri`, `raw_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::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.\n\n\n Note: The following fields are mutually exclusive: `uri`, `raw_bytes`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]