Class ControlServiceConnection (2.30.0)

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

To create a concrete instance, see MakeControlServiceConnection().

For mocking, see retail_v2_mocks::MockControlServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateControl(google::cloud::retail::v2::CreateControlRequest const &)

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

virtual DeleteControl(google::cloud::retail::v2::DeleteControlRequest const &)

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

virtual UpdateControl(google::cloud::retail::v2::UpdateControlRequest const &)

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

virtual GetControl(google::cloud::retail::v2::GetControlRequest const &)

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

virtual ListControls(google::cloud::retail::v2::ListControlsRequest)

Parameter
Name Description
request google::cloud::retail::v2::ListControlsRequest
Returns
Type Description
StreamRange< google::cloud::retail::v2::Control >