Class QuotaControllerConnection (2.22.0)

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

To create a concrete instance, see MakeQuotaControllerConnection().

For mocking, see servicecontrol_v1_mocks::MockQuotaControllerConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual AllocateQuota(google::api::servicecontrol::v1::AllocateQuotaRequest const &)

Parameter
NameDescription
request google::api::servicecontrol::v1::AllocateQuotaRequest const &
Returns
TypeDescription
StatusOr< google::api::servicecontrol::v1::AllocateQuotaResponse >