Class QuotaControllerGrpc.QuotaControllerBlockingStub (1.9.0)

public static final class QuotaControllerGrpc.QuotaControllerBlockingStub extends AbstractBlockingStub<QuotaControllerGrpc.QuotaControllerBlockingStub>

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.AbstractBlockingStub > QuotaControllerGrpc.QuotaControllerBlockingStub

Methods

allocateQuota(AllocateQuotaRequest request)

public 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
NameDescription
requestAllocateQuotaRequest
Returns
TypeDescription
AllocateQuotaResponse

build(Channel channel, CallOptions callOptions)

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