Reference documentation and code samples for the Google Cloud Document Ai V1 Client class RawDocument.
Payload message of raw document content (bytes).
Generated from protobuf messagegoogle.cloud.documentai.v1.RawDocument
Namespace
Google \ Cloud \ DocumentAI \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ content
string
Inline document content.
↳ mime_type
string
An IANA MIME type (RFC6838) indicating the nature and format of thecontent.
↳ display_name
string
The display name of the document, it supports all Unicode characters except the following:*,?,[,],%,{,},',\",,~,=and:are reserved. If not specified, a default ID is generated.
getContent
Inline document content.
Returns
Type
Description
string
setContent
Inline document content.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMimeType
An IANA MIME type (RFC6838) indicating the nature and format of thecontent.
Returns
Type
Description
string
setMimeType
An IANA MIME type (RFC6838) indicating the nature and format of thecontent.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
The display name of the document, it supports all Unicode characters except
the following:*,?,[,],%,{,},',\",,~,=and:are reserved.
If not specified, a default ID is generated.
Returns
Type
Description
string
setDisplayName
The display name of the document, it supports all Unicode characters except
the following:*,?,[,],%,{,},',\",,~,=and:are reserved.
[[["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,["# Google Cloud Document Ai V1 Client - Class RawDocument (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.RawDocument)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.RawDocument)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.RawDocument)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.RawDocument)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.RawDocument)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.RawDocument)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.RawDocument)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.RawDocument)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.RawDocument)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.RawDocument)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.RawDocument)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.RawDocument)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.RawDocument)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.RawDocument)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.RawDocument)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.RawDocument)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.RawDocument) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class RawDocument.\n\nPayload message of raw document content (bytes).\n\nGenerated from protobuf message `google.cloud.documentai.v1.RawDocument`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getContent\n\nInline document content.\n\n### setContent\n\nInline document content.\n\n### getMimeType\n\nAn IANA MIME type (RFC6838) indicating the nature and format of the\n[content](/php/docs/reference/cloud-document-ai/latest/V1.RawDocument#_Google_Cloud_DocumentAI_V1_RawDocument__getContent__).\n\n### setMimeType\n\nAn IANA MIME type (RFC6838) indicating the nature and format of the\n[content](/php/docs/reference/cloud-document-ai/latest/V1.RawDocument#_Google_Cloud_DocumentAI_V1_RawDocument__getContent__).\n\n### getDisplayName\n\nThe display name of the document, it supports all Unicode characters except\nthe following:\n`*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\\\"`, `,`\n`~`, `=` and `:` are reserved.\n\nIf not specified, a default ID is generated.\n\n### setDisplayName\n\nThe display name of the document, it supports all Unicode characters except\nthe following:\n`*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\\\"`, `,`\n`~`, `=` and `:` are reserved.\n\nIf not specified, a default ID is generated."]]