Class QuotaControllerGrpc.QuotaControllerStub (1.18.0)

public static final class QuotaControllerGrpc.QuotaControllerStub extends AbstractAsyncStub<QuotaControllerGrpc.QuotaControllerStub>

A stub to allow clients to do asynchronous rpc calls to service QuotaController.

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > QuotaControllerGrpc.QuotaControllerStub

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>

build(Channel channel, CallOptions callOptions)

protected QuotaControllerGrpc.QuotaControllerStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
QuotaControllerGrpc.QuotaControllerStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)