Class protos.google.shopping.merchant.inventories.v1beta.RegionalInventoryService (0.4.0)

Represents a RegionalInventoryService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.inventories.v1beta.RegionalInventoryService

Package

@google-shopping/inventories

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionalInventoryService 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): RegionalInventoryService;

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

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

deleteRegionalInventory(request, callback)

public deleteRegionalInventory(request: google.shopping.merchant.inventories.v1beta.IDeleteRegionalInventoryRequest, callback: google.shopping.merchant.inventories.v1beta.RegionalInventoryService.DeleteRegionalInventoryCallback): void;

Calls DeleteRegionalInventory.

Parameters
Name Description
request IDeleteRegionalInventoryRequest

DeleteRegionalInventoryRequest message or plain object

callback DeleteRegionalInventoryCallback

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

Returns
Type Description
void

deleteRegionalInventory(request)

public deleteRegionalInventory(request: google.shopping.merchant.inventories.v1beta.IDeleteRegionalInventoryRequest): Promise<google.protobuf.Empty>;

Calls DeleteRegionalInventory.

Parameter
Name Description
request IDeleteRegionalInventoryRequest

DeleteRegionalInventoryRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

insertRegionalInventory(request, callback)

public insertRegionalInventory(request: google.shopping.merchant.inventories.v1beta.IInsertRegionalInventoryRequest, callback: google.shopping.merchant.inventories.v1beta.RegionalInventoryService.InsertRegionalInventoryCallback): void;

Calls InsertRegionalInventory.

Parameters
Name Description
request IInsertRegionalInventoryRequest

InsertRegionalInventoryRequest message or plain object

callback InsertRegionalInventoryCallback

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

Returns
Type Description
void

insertRegionalInventory(request)

public insertRegionalInventory(request: google.shopping.merchant.inventories.v1beta.IInsertRegionalInventoryRequest): Promise<google.shopping.merchant.inventories.v1beta.RegionalInventory>;

Calls InsertRegionalInventory.

Parameter
Name Description
request IInsertRegionalInventoryRequest

InsertRegionalInventoryRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.inventories.v1beta.RegionalInventory>

Promise

listRegionalInventories(request, callback)

public listRegionalInventories(request: google.shopping.merchant.inventories.v1beta.IListRegionalInventoriesRequest, callback: google.shopping.merchant.inventories.v1beta.RegionalInventoryService.ListRegionalInventoriesCallback): void;

Calls ListRegionalInventories.

Parameters
Name Description
request IListRegionalInventoriesRequest

ListRegionalInventoriesRequest message or plain object

callback ListRegionalInventoriesCallback

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

Returns
Type Description
void

listRegionalInventories(request)

public listRegionalInventories(request: google.shopping.merchant.inventories.v1beta.IListRegionalInventoriesRequest): Promise<google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse>;

Calls ListRegionalInventories.

Parameter
Name Description
request IListRegionalInventoriesRequest

ListRegionalInventoriesRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse>

Promise