Class QuotaControllerGrpc.QuotaControllerImplBase (1.8.0)

public abstract static class QuotaControllerGrpc.QuotaControllerImplBase implements BindableService

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()

public QuotaControllerImplBase()

Methods

allocateQuota(AllocateQuotaRequest request, StreamObserver<AllocateQuotaResponse> responseObserver)

public void allocateQuota(AllocateQuotaRequest request, 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
NameDescription
requestAllocateQuotaRequest
responseObserverio.grpc.stub.StreamObserver<AllocateQuotaResponse>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition