Reference documentation and code samples for the Cloud Vision V1 Client class AnnotateFileResponse.
Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
Generated from protobuf message google.cloud.vision.v1.AnnotateFileResponse
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ input_config
↳ responses
array< AnnotateImageResponse
>
Individual responses to images found within the file. This field will be empty if the error
field is set.
↳ total_pages
int
This field gives the total number of pages in the file.
↳ error
Google\Rpc\Status
If set, represents the error message for the failed request. The responses
field will not be set in this case.
getInputConfig
Information about the file for which this response is generated.
hasInputConfig
clearInputConfig
setInputConfig
Information about the file for which this response is generated.
$this
getResponses
Individual responses to images found within the file. This field will be
empty if the error
field is set.
setResponses
Individual responses to images found within the file. This field will be
empty if the error
field is set.
$this
getTotalPages
This field gives the total number of pages in the file.
int
setTotalPages
This field gives the total number of pages in the file.
var
int
$this
getError
If set, represents the error message for the failed request. The responses
field will not be set in this case.
hasError
clearError
setError
If set, represents the error message for the failed request. The responses
field will not be set in this case.
$this

