Class RuleSetServiceConnection (2.22.0-rc)

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

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::CreateRuleSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::GetRuleSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::UpdateRuleSetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::contentwarehouse::v1::RuleSet >

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::DeleteRuleSetRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::contentwarehouse::v1::ListRuleSetsRequest
Returns
TypeDescription
StreamRange< google::cloud::contentwarehouse::v1::RuleSet >