Reference documentation and code samples for the Cloud Vision V1 Client class InputConfig.
The desired input location and metadata.
Generated from protobuf message google.cloud.vision.v1.InputConfig
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ gcs_source
↳ 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.
hasGcsSource
clearGcsSource
setGcsSource
The Google Cloud Storage location to read the input from.
$this
getContent
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.
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.
var
string
$this
getMimeType
The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.
string
setMimeType
The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported.
var
string
$this

