Class protos.google.api.servicecontrol.v1.QuotaController (3.3.0)

Represents a QuotaController

Inheritance

$protobuf.rpc.Service > protos.google.api.servicecontrol.v1.QuotaController

Package

@google-cloud/service-control

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new QuotaController service.

Parameters
NameDescription
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
NameDescription
request IAllocateQuotaRequest

AllocateQuotaRequest message or plain object

callback AllocateQuotaCallback

Node-style callback called with the error, if any, and AllocateQuotaResponse

Returns
TypeDescription
void

allocateQuota(request)

public allocateQuota(request: google.api.servicecontrol.v1.IAllocateQuotaRequest): Promise<google.api.servicecontrol.v1.AllocateQuotaResponse>;

Calls AllocateQuota.

Parameter
NameDescription
request IAllocateQuotaRequest

AllocateQuotaRequest message or plain object

Returns
TypeDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
QuotaController

RPC service. Useful where requests and/or responses are streamed.