Class QuotaControllerGrpc.QuotaControllerFutureStub (1.44.0)

public static final class QuotaControllerGrpc.QuotaControllerFutureStub extends AbstractFutureStub<QuotaControllerGrpc.QuotaControllerFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > QuotaControllerGrpc.QuotaControllerFutureStub

Methods

allocateQuota(AllocateQuotaRequest request)

public ListenableFuture<AllocateQuotaResponse> allocateQuota(AllocateQuotaRequest request)

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.

Parameter
Name Description
request AllocateQuotaRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AllocateQuotaResponse>

build(Channel channel, CallOptions callOptions)

protected QuotaControllerGrpc.QuotaControllerFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
QuotaControllerGrpc.QuotaControllerFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)