Class QuotaControllerGrpc.QuotaControllerImplBase (1.11.0)

publicabstractstaticclass QuotaControllerGrpc.QuotaControllerImplBaseimplementsBindableService

Google Quota Control API Allows clients to allocate and release quota against a managed service.

Inheritance

java.lang.Object > QuotaControllerGrpc.QuotaControllerImplBase

Implements

io.grpc.BindableService

Constructors

QuotaControllerImplBase()

publicQuotaControllerImplBase()

Methods

allocateQuota(AllocateQuotaRequest request, StreamObserver<AllocateQuotaResponse> responseObserver)

publicvoidallocateQuota(AllocateQuotaRequestrequest,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. 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.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<AllocateQuotaResponse>

bindService()

publicfinalServerServiceDefinitionbindService()
Returns
Type Description
io.grpc.ServerServiceDefinition

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.