Class ImageAnnotatorConnection (2.22.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::vision::v1::BatchAnnotateImagesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::vision::v1::BatchAnnotateImagesResponse >

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

Parameter
NameDescription
request google::cloud::vision::v1::BatchAnnotateFilesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::vision::v1::BatchAnnotateFilesResponse >

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

Parameter
NameDescription
request google::cloud::vision::v1::AsyncBatchAnnotateImagesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateImagesResponse > >

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

Parameter
NameDescription
request google::cloud::vision::v1::AsyncBatchAnnotateFilesRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::vision::v1::AsyncBatchAnnotateFilesResponse > >