Class RuleSetServiceConnection (2.13.0)

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

To create a concrete instance, see MakeRuleSetServiceConnection().

For mocking, see contentwarehouse_v1_mocks::MockRuleSetServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateRuleSet(google::cloud::contentwarehouse::v1::CreateRuleSetRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::CreateRuleSetRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

virtual GetRuleSet(google::cloud::contentwarehouse::v1::GetRuleSetRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::GetRuleSetRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

virtual UpdateRuleSet(google::cloud::contentwarehouse::v1::UpdateRuleSetRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::UpdateRuleSetRequest const &
Returns
Type Description
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

virtual DeleteRuleSet(google::cloud::contentwarehouse::v1::DeleteRuleSetRequest const &)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::DeleteRuleSetRequest const &
Returns
Type Description
Status

virtual ListRuleSets(google::cloud::contentwarehouse::v1::ListRuleSetsRequest)

Parameter
Name Description
request google::cloud::contentwarehouse::v1::ListRuleSetsRequest
Returns
Type Description
StreamRange< google::cloud::contentwarehouse::v1::RuleSet >