Represents a QuotaController
Inheritance
$protobuf.rpc.Service > protos.google.api.servicecontrol.v1.QuotaControllerPackage
@google-cloud/service-controlConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new QuotaController service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
allocateQuota(request, callback)
public allocateQuota(request: google.api.servicecontrol.v1.IAllocateQuotaRequest, callback: google.api.servicecontrol.v1.QuotaController.AllocateQuotaCallback): void;
Calls AllocateQuota.
Parameters | |
---|---|
Name | Description |
request |
IAllocateQuotaRequest
AllocateQuotaRequest message or plain object |
callback |
google.api.servicecontrol.v1.QuotaController.AllocateQuotaCallback
Node-style callback called with the error, if any, and AllocateQuotaResponse |
Returns | |
---|---|
Type | Description |
void |
allocateQuota(request)
public allocateQuota(request: google.api.servicecontrol.v1.IAllocateQuotaRequest): Promise<google.api.servicecontrol.v1.AllocateQuotaResponse>;
Calls AllocateQuota.
Parameter | |
---|---|
Name | Description |
request |
IAllocateQuotaRequest
AllocateQuotaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.api.servicecontrol.v1.AllocateQuotaResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): QuotaController;
Creates new QuotaController service using the specified rpc implementation.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
QuotaController | RPC service. Useful where requests and/or responses are streamed. |