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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This webpage documents the `QuotaControllerBase` class, which serves as the base for server-side implementations of `QuotaController` within the `Google.Cloud.ServiceControl.V1` namespace."],["The class includes a method called `AllocateQuota`, which attempts to allocate quota for a consumer and requires `servicemanagement.services.quota` permission."],["`AllocateQuota` is a virtual method that takes an `AllocateQuotaRequest` and `ServerCallContext` as parameters, and returns a `Task\u003cAllocateQuotaResponse\u003e`."],["The page lists the available versions of this library, ranging from version 1.0.0 to the latest 2.4.0."],["The client should fail-open on server errors such as `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE` when using `AllocateQuota`."]]],[]]