Package com.google.api.servicecontrol.v1
Class QuotaControllerGrpc.QuotaControllerFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<QuotaControllerGrpc.QuotaControllerFutureStub>
-
- com.google.api.servicecontrol.v1.QuotaControllerGrpc.QuotaControllerFutureStub
-
- Enclosing class:
- QuotaControllerGrpc
public static final class QuotaControllerGrpc.QuotaControllerFutureStub extends io.grpc.stub.AbstractFutureStub<QuotaControllerGrpc.QuotaControllerFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service QuotaController.[Google Quota Control API](/service-control/overview) Allows clients to allocate and release quota against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<AllocateQuotaResponse>
allocateQuota(AllocateQuotaRequest request)
Attempts to allocate quota for the specified consumer.protected QuotaControllerGrpc.QuotaControllerFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
-
Method Detail
-
build
protected QuotaControllerGrpc.QuotaControllerFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<QuotaControllerGrpc.QuotaControllerFutureStub>
-
allocateQuota
public com.google.common.util.concurrent.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](https://cloud.google.com/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.
-
-