Class CompletionServiceConnection (2.32.0-rc)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::retail::v2::CompleteQueryRequest const &
Returns
Type Description
StatusOr< google::cloud::retail::v2::CompleteQueryResponse >

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

Parameter
Name Description
request google::cloud::retail::v2::ImportCompletionDataRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::ImportCompletionDataResponse > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::ImportCompletionDataRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

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

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::ImportCompletionDataResponse > >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >