Class ModelServiceConnection (2.32.0-rc)

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 CreateModel(NoAwaitTag, google::cloud::retail::v2::CreateModelRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

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

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

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

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 >