Class ModelServiceConnection (2.15.1)

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

To create a concrete instance, see MakeModelServiceConnection().

For mocking, see retail_v2_mocks::MockModelServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateModel(google::cloud::retail::v2::CreateModelRequest const &)

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

virtual GetModel(google::cloud::retail::v2::GetModelRequest const &)

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

virtual PauseModel(google::cloud::retail::v2::PauseModelRequest const &)

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

virtual ResumeModel(google::cloud::retail::v2::ResumeModelRequest const &)

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

virtual DeleteModel(google::cloud::retail::v2::DeleteModelRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::DeleteModelRequest const &
Returns
Type Description
Status

virtual ListModels(google::cloud::retail::v2::ListModelsRequest)

Parameter
Name Description
request google::cloud::retail::v2::ListModelsRequest
Returns
Type Description
StreamRange< google::cloud::retail::v2::Model >

virtual UpdateModel(google::cloud::retail::v2::UpdateModelRequest const &)

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

virtual TuneModel(google::cloud::retail::v2::TuneModelRequest const &)

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