Class QuotaControllerGrpc.QuotaControllerBlockingStub (1.54.0)

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

A stub to allow clients to do synchronous 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.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
Name Description
request AllocateQuotaRequest
Returns
Type Description
AllocateQuotaResponse

build(Channel channel, CallOptions callOptions)

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