Class ImageAnnotatorConnection (2.29.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in ImageAnnotatorClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ImageAnnotatorClient.

To create a concrete instance, see MakeImageAnnotatorConnection().

For mocking, see vision_v1_mocks::MockImageAnnotatorConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual BatchAnnotateImages(google::cloud::vision::v1::BatchAnnotateImagesRequest const &)

Parameter
Name Description
request google::cloud::vision::v1::BatchAnnotateImagesRequest const &
Returns
Type Description
StatusOr< google::cloud::vision::v1::BatchAnnotateImagesResponse >

virtual BatchAnnotateFiles(google::cloud::vision::v1::BatchAnnotateFilesRequest const &)

Parameter
Name Description
request google::cloud::vision::v1::BatchAnnotateFilesRequest const &
Returns
Type Description
StatusOr< google::cloud::vision::v1::BatchAnnotateFilesResponse >

virtual AsyncBatchAnnotateImages(google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const &)

Parameter
Name Description
request google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateImagesResponse > >

virtual AsyncBatchAnnotateImages(NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual AsyncBatchAnnotateImages(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateImagesResponse > >

virtual AsyncBatchAnnotateFiles(google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const &)

Parameter
Name Description
request google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const &
Returns
Type Description
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateFilesResponse > >

virtual AsyncBatchAnnotateFiles(NoAwaitTag, google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual AsyncBatchAnnotateFiles(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateFilesResponse > >