The Google Cloud Storage location to read the input from.
↳ content
string
File content, represented as a stream of bytes. Note: As with all bytes fields, protobuffers use a pure binary representation, whereas JSON representations use base64. Currently, this field only works for BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles requests.
↳ mime_type
string
The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.
getGcsSource
The Google Cloud Storage location to read the input from.
Note: As with all bytes fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Currently, this field only works for BatchAnnotateFiles requests. It does
not work for AsyncBatchAnnotateFiles requests.
Returns
Type
Description
string
setContent
File content, represented as a stream of bytes.
Note: As with all bytes fields, protobuffers use a pure binary
representation, whereas JSON representations use base64.
Currently, this field only works for BatchAnnotateFiles requests. It does
not work for AsyncBatchAnnotateFiles requests.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMimeType
The type of the file. Currently only "application/pdf", "image/tiff" and
"image/gif" are supported. Wildcards are not supported.
Returns
Type
Description
string
setMimeType
The type of the file. Currently only "application/pdf", "image/tiff" and
"image/gif" are supported. Wildcards are not supported.
[[["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 Vision V1 Client - Class InputConfig (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-vision/latest/V1.InputConfig)\n- [2.0.2](/php/docs/reference/cloud-vision/2.0.2/V1.InputConfig)\n- [1.10.3](/php/docs/reference/cloud-vision/1.10.3/V1.InputConfig)\n- [1.9.4](/php/docs/reference/cloud-vision/1.9.4/V1.InputConfig)\n- [1.8.0](/php/docs/reference/cloud-vision/1.8.0/V1.InputConfig)\n- [1.7.6](/php/docs/reference/cloud-vision/1.7.6/V1.InputConfig)\n- [1.6.8](/php/docs/reference/cloud-vision/1.6.8/V1.InputConfig) \nReference documentation and code samples for the Cloud Vision V1 Client class InputConfig.\n\nThe desired input location and metadata.\n\nGenerated from protobuf message `google.cloud.vision.v1.InputConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Vision \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGcsSource\n\nThe Google Cloud Storage location to read the input from.\n\n### hasGcsSource\n\n### clearGcsSource\n\n### setGcsSource\n\nThe Google Cloud Storage location to read the input from.\n\n### getContent\n\nFile content, represented as a stream of bytes.\n\nNote: As with all `bytes` fields, protobuffers use a pure binary\nrepresentation, whereas JSON representations use base64.\nCurrently, this field only works for BatchAnnotateFiles requests. It does\nnot work for AsyncBatchAnnotateFiles requests.\n\n### setContent\n\nFile content, represented as a stream of bytes.\n\nNote: As with all `bytes` fields, protobuffers use a pure binary\nrepresentation, whereas JSON representations use base64.\nCurrently, this field only works for BatchAnnotateFiles requests. It does\nnot work for AsyncBatchAnnotateFiles requests.\n\n### getMimeType\n\nThe type of the file. Currently only \"application/pdf\", \"image/tiff\" and\n\"image/gif\" are supported. Wildcards are not supported.\n\n### setMimeType\n\nThe type of the file. Currently only \"application/pdf\", \"image/tiff\" and\n\"image/gif\" are supported. Wildcards are not supported."]]