Cloud Vision V1 Client - Class AsyncAnnotateFileRequest (1.7.6)

Reference documentation and code samples for the Cloud Vision V1 Client class AsyncAnnotateFileRequest.

An offline file annotation request.

Generated from protobuf message google.cloud.vision.v1.AsyncAnnotateFileRequest

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ input_config Google\Cloud\Vision\V1\InputConfig

Required. Information about the input file.

↳ features array<Google\Cloud\Vision\V1\Feature>

Required. Requested features.

↳ image_context Google\Cloud\Vision\V1\ImageContext

Additional context that may accompany the image(s) in the file.

↳ output_config Google\Cloud\Vision\V1\OutputConfig

Required. The desired output location and metadata (e.g. format).

getInputConfig

Required. Information about the input file.

Returns
TypeDescription
Google\Cloud\Vision\V1\InputConfig|null

hasInputConfig

clearInputConfig

setInputConfig

Required. Information about the input file.

Parameter
NameDescription
var Google\Cloud\Vision\V1\InputConfig
Returns
TypeDescription
$this

getFeatures

Required. Requested features.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFeatures

Required. Requested features.

Parameter
NameDescription
var array<Google\Cloud\Vision\V1\Feature>
Returns
TypeDescription
$this

getImageContext

Additional context that may accompany the image(s) in the file.

Returns
TypeDescription
Google\Cloud\Vision\V1\ImageContext|null

hasImageContext

clearImageContext

setImageContext

Additional context that may accompany the image(s) in the file.

Parameter
NameDescription
var Google\Cloud\Vision\V1\ImageContext
Returns
TypeDescription
$this

getOutputConfig

Required. The desired output location and metadata (e.g. format).

Returns
TypeDescription
Google\Cloud\Vision\V1\OutputConfig|null

hasOutputConfig

clearOutputConfig

setOutputConfig

Required. The desired output location and metadata (e.g. format).

Parameter
NameDescription
var Google\Cloud\Vision\V1\OutputConfig
Returns
TypeDescription
$this