Class ServingConfigServiceConnection (2.29.0-rc)

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

To create a concrete instance, see MakeServingConfigServiceConnection().

For mocking, see retail_v2_mocks::MockServingConfigServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateServingConfig(google::cloud::retail::v2::CreateServingConfigRequest const &)

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

virtual DeleteServingConfig(google::cloud::retail::v2::DeleteServingConfigRequest const &)

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

virtual UpdateServingConfig(google::cloud::retail::v2::UpdateServingConfigRequest const &)

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

virtual GetServingConfig(google::cloud::retail::v2::GetServingConfigRequest const &)

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

virtual ListServingConfigs(google::cloud::retail::v2::ListServingConfigsRequest)

Parameter
Name Description
request google::cloud::retail::v2::ListServingConfigsRequest
Returns
Type Description
StreamRange< google::cloud::retail::v2::ServingConfig >

virtual AddControl(google::cloud::retail::v2::AddControlRequest const &)

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

virtual RemoveControl(google::cloud::retail::v2::RemoveControlRequest const &)

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