public virtual Task<AllocateQuotaResponse> AllocateQuota(AllocateQuotaRequest request, ServerCallContext context)
Attempts to allocate quota for the specified consumer. It should be called
before the operation is executed.
This method requires the servicemanagement.services.quota
permission on the specified service. For more information, see
Cloud IAM.
NOTE: The client must fail-open on server errors INTERNAL,
UNKNOWN, DEADLINE_EXCEEDED, and UNAVAILABLE. To ensure system
reliability, the server may inject these errors to prohibit any hard
dependency on the quota functionality.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `QuotaControllerBase` class is 2.4.0, but versions are available back to 1.0.0, all providing server-side implementations of the QuotaController."],["`QuotaControllerBase` is an abstract class derived from `Object` and has inherited members such as `GetHashCode()`, `GetType()`, `MemberwiseClone()`, and `ToString()`."],["The `AllocateQuota` method is a key functionality within `QuotaControllerBase`, designed to allocate quota for a specified consumer and requiring the `servicemanagement.services.quota` permission."],["The `AllocateQuota` method is virtual, and expects an `AllocateQuotaRequest` as well as a `ServerCallContext`, and returns an `AllocateQuotaResponse`."],["Clients interacting with the `AllocateQuota` method must fail-open on `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE` server errors."]]],[]]