Class ImageAnnotatorConnection (2.16.0)

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 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 > >