Class ServingConfigServiceConnection (2.15.1)

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

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

Parameter
NameDescription
request google::cloud::retail::v2::CreateServingConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::ServingConfig >

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

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

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

Parameter
NameDescription
request google::cloud::retail::v2::UpdateServingConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::ServingConfig >

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

Parameter
NameDescription
request google::cloud::retail::v2::GetServingConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::ServingConfig >

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

Parameter
NameDescription
request google::cloud::retail::v2::ListServingConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::retail::v2::ServingConfig >

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

Parameter
NameDescription
request google::cloud::retail::v2::AddControlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::ServingConfig >

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

Parameter
NameDescription
request google::cloud::retail::v2::RemoveControlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::ServingConfig >