Class PredictionServiceConnection (2.31.0)

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

To create a concrete instance, see MakePredictionServiceConnection().

For mocking, see retail_v2_mocks::MockPredictionServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual Predict(google::cloud::retail::v2::PredictRequest const &)

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

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 >