Class CompletionServiceConnection (2.19.0)

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

To create a concrete instance, see MakeCompletionServiceConnection().

For mocking, see retail_v2_mocks::MockCompletionServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CompleteQuery(google::cloud::retail::v2::CompleteQueryRequest const &)

Parameter
NameDescription
request google::cloud::retail::v2::CompleteQueryRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::CompleteQueryResponse >

virtual ImportCompletionData(google::cloud::retail::v2::ImportCompletionDataRequest const &)

Parameter
NameDescription
request google::cloud::retail::v2::ImportCompletionDataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::ImportCompletionDataResponse > >