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 documentation covers the \u003ccode\u003eQuotaController.QuotaControllerBase\u003c/code\u003e class within the Google Cloud Service Control v1 API, specifically in the \u003ccode\u003eGoogle.Cloud.ServiceControl.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuotaController.QuotaControllerBase\u003c/code\u003e class serves as the base for server-side implementations of the QuotaController.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides details on the \u003ccode\u003eAllocateQuota\u003c/code\u003e method, which is used to attempt quota allocation before executing an operation and includes parameters for the request and context.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation contains a version history of the package from 1.0.0 to 2.4.0 with 2.4.0 being the latest version, all of which are accessible through provided hyperlinks.\u003c/p\u003e\n"],["\u003cp\u003eInherited members from the object class such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e are part of this class.\u003c/p\u003e\n"]]],[],null,[]]