Class ModelServiceConnection (2.19.0)

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
TypeDescription
Options

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

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

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

Parameter
NameDescription
request google::cloud::retail::v2::GetModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Model >

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

Parameter
NameDescription
request google::cloud::retail::v2::PauseModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Model >

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

Parameter
NameDescription
request google::cloud::retail::v2::ResumeModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Model >

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

Parameter
NameDescription
request google::cloud::retail::v2::DeleteModelRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::retail::v2::ListModelsRequest
Returns
TypeDescription
StreamRange< google::cloud::retail::v2::Model >

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

Parameter
NameDescription
request google::cloud::retail::v2::UpdateModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Model >

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

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