Class ControlServiceConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::retail::v2::CreateControlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Control >

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

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

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

Parameter
NameDescription
request google::cloud::retail::v2::UpdateControlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Control >

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

Parameter
NameDescription
request google::cloud::retail::v2::GetControlRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::Control >

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

Parameter
NameDescription
request google::cloud::retail::v2::ListControlsRequest
Returns
TypeDescription
StreamRange< google::cloud::retail::v2::Control >