Class protos.google.shopping.merchant.quota.v1.AccountLimitsService (0.9.0)

Represents an AccountLimitsService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.quota.v1.AccountLimitsService

Package

@google-shopping/quota

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new AccountLimitsService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AccountLimitsService;

Creates new AccountLimitsService 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
AccountLimitsService

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

getAccountLimit(request, callback)

public getAccountLimit(request: google.shopping.merchant.quota.v1.IGetAccountLimitRequest, callback: google.shopping.merchant.quota.v1.AccountLimitsService.GetAccountLimitCallback): void;

Calls GetAccountLimit.

Parameters
Name Description
request IGetAccountLimitRequest

GetAccountLimitRequest message or plain object

callback GetAccountLimitCallback

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

Returns
Type Description
void

getAccountLimit(request)

public getAccountLimit(request: google.shopping.merchant.quota.v1.IGetAccountLimitRequest): Promise<google.shopping.merchant.quota.v1.AccountLimit>;

Calls GetAccountLimit.

Parameter
Name Description
request IGetAccountLimitRequest

GetAccountLimitRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.quota.v1.AccountLimit>

Promise

listAccountLimits(request, callback)

public listAccountLimits(request: google.shopping.merchant.quota.v1.IListAccountLimitsRequest, callback: google.shopping.merchant.quota.v1.AccountLimitsService.ListAccountLimitsCallback): void;

Calls ListAccountLimits.

Parameters
Name Description
request IListAccountLimitsRequest

ListAccountLimitsRequest message or plain object

callback ListAccountLimitsCallback

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

Returns
Type Description
void

listAccountLimits(request)

public listAccountLimits(request: google.shopping.merchant.quota.v1.IListAccountLimitsRequest): Promise<google.shopping.merchant.quota.v1.ListAccountLimitsResponse>;

Calls ListAccountLimits.

Parameter
Name Description
request IListAccountLimitsRequest

ListAccountLimitsRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.quota.v1.ListAccountLimitsResponse>

Promise