public static interface QuotaControllerGrpc.AsyncService
[Google Quota Control API](/service-control/overview) Allows clients to allocate and release quota against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
| Modifier and Type | Method and Description |
|---|---|
default void |
allocateQuota(AllocateQuotaRequest request,
io.grpc.stub.StreamObserver<AllocateQuotaResponse> responseObserver)
Attempts to allocate quota for the specified consumer.
|
default void allocateQuota(AllocateQuotaRequest request, io.grpc.stub.StreamObserver<AllocateQuotaResponse> responseObserver)
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](https://cloud.google.com/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.
Copyright © 2024 Google LLC. All rights reserved.