Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
↳ mime_type
string
Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document - application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
getContent
Document's content represented as a stream of bytes.
Returns
Type
Description
string
hasContent
setContent
Document's content represented as a stream of bytes.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGcsSource
Google Cloud Storage location. This must be a single file.
If not specified it will be determined using the file extension for
gcs_source provided files. For a file provided through bytes content the
mime_type must be provided.
Currently supported mime types are:
If not specified it will be determined using the file extension for
gcs_source provided files. For a file provided through bytes content the
mime_type must be provided.
Currently supported mime types are:
[[["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,["# Cloud Translation V3 Client - Class DocumentInputConfig (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.DocumentInputConfig)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.DocumentInputConfig)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.DocumentInputConfig)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.DocumentInputConfig)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.DocumentInputConfig)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.DocumentInputConfig)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.DocumentInputConfig)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.DocumentInputConfig)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.DocumentInputConfig)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.DocumentInputConfig)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.DocumentInputConfig)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.DocumentInputConfig) \nReference documentation and code samples for the Cloud Translation V3 Client class DocumentInputConfig.\n\nA document translation request input config.\n\nGenerated from protobuf message `google.cloud.translation.v3.DocumentInputConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getContent\n\nDocument's content represented as a stream of bytes.\n\n### hasContent\n\n### setContent\n\nDocument's content represented as a stream of bytes.\n\n### getGcsSource\n\nGoogle Cloud Storage location. This must be a single file.\n\nFor example: gs://example_bucket/example_file.pdf\n\n### hasGcsSource\n\n### setGcsSource\n\nGoogle Cloud Storage location. This must be a single file.\n\nFor example: gs://example_bucket/example_file.pdf\n\n### getMimeType\n\nSpecifies the input document's mime_type.\n\nIf not specified it will be determined using the file extension for\ngcs_source provided files. For a file provided through bytes content the\nmime_type must be provided.\nCurrently supported mime types are:\n\n- application/pdf\n- application/vnd.openxmlformats-officedocument.wordprocessingml.document\n- application/vnd.openxmlformats-officedocument.presentationml.presentation\n- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n### setMimeType\n\nSpecifies the input document's mime_type.\n\nIf not specified it will be determined using the file extension for\ngcs_source provided files. For a file provided through bytes content the\nmime_type must be provided.\nCurrently supported mime types are:\n\n- application/pdf\n- application/vnd.openxmlformats-officedocument.wordprocessingml.document\n- application/vnd.openxmlformats-officedocument.presentationml.presentation\n- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n### getSource"]]