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."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eQuotaControllerBase\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.ServiceControl.V1\u003c/code\u003e namespace, which serves as the base for server-side implementations of the \u003ccode\u003eQuotaController\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a method called \u003ccode\u003eAllocateQuota\u003c/code\u003e, which is used to attempt to allocate quota for a specified consumer prior to an operation's execution and requires the \u003ccode\u003eservicemanagement.services.quota\u003c/code\u003e permission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocateQuota\u003c/code\u003e method accepts an \u003ccode\u003eAllocateQuotaRequest\u003c/code\u003e and a \u003ccode\u003eServerCallContext\u003c/code\u003e, returning an \u003ccode\u003eAllocateQuotaResponse\u003c/code\u003e wrapped in a task.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides a list of available versions for the \u003ccode\u003eQuotaControllerBase\u003c/code\u003e class, with version 2.4.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage specifies that the server may return \u003ccode\u003eINTERNAL\u003c/code\u003e, \u003ccode\u003eUNKNOWN\u003c/code\u003e, \u003ccode\u003eDEADLINE_EXCEEDED\u003c/code\u003e, and \u003ccode\u003eUNAVAILABLE\u003c/code\u003e errors, and the client should fail open if encountering these errors.\u003c/p\u003e\n"]]],[],null,[]]