Class protos.google.shopping.merchant.inventories.v1beta.LocalInventoryService (0.5.0)

Represents a LocalInventoryService

Inheritance

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

Package

@google-shopping/inventories

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

deleteLocalInventory(request, callback)

public deleteLocalInventory(request: google.shopping.merchant.inventories.v1beta.IDeleteLocalInventoryRequest, callback: google.shopping.merchant.inventories.v1beta.LocalInventoryService.DeleteLocalInventoryCallback): void;

Calls DeleteLocalInventory.

Parameters
Name Description
request IDeleteLocalInventoryRequest

DeleteLocalInventoryRequest message or plain object

callback DeleteLocalInventoryCallback

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

Returns
Type Description
void

deleteLocalInventory(request)

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

Calls DeleteLocalInventory.

Parameter
Name Description
request IDeleteLocalInventoryRequest

DeleteLocalInventoryRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

insertLocalInventory(request, callback)

public insertLocalInventory(request: google.shopping.merchant.inventories.v1beta.IInsertLocalInventoryRequest, callback: google.shopping.merchant.inventories.v1beta.LocalInventoryService.InsertLocalInventoryCallback): void;

Calls InsertLocalInventory.

Parameters
Name Description
request IInsertLocalInventoryRequest

InsertLocalInventoryRequest message or plain object

callback InsertLocalInventoryCallback

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

Returns
Type Description
void

insertLocalInventory(request)

public insertLocalInventory(request: google.shopping.merchant.inventories.v1beta.IInsertLocalInventoryRequest): Promise<google.shopping.merchant.inventories.v1beta.LocalInventory>;

Calls InsertLocalInventory.

Parameter
Name Description
request IInsertLocalInventoryRequest

InsertLocalInventoryRequest message or plain object

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

Promise

listLocalInventories(request, callback)

public listLocalInventories(request: google.shopping.merchant.inventories.v1beta.IListLocalInventoriesRequest, callback: google.shopping.merchant.inventories.v1beta.LocalInventoryService.ListLocalInventoriesCallback): void;

Calls ListLocalInventories.

Parameters
Name Description
request IListLocalInventoriesRequest

ListLocalInventoriesRequest message or plain object

callback ListLocalInventoriesCallback

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

Returns
Type Description
void

listLocalInventories(request)

public listLocalInventories(request: google.shopping.merchant.inventories.v1beta.IListLocalInventoriesRequest): Promise<google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse>;

Calls ListLocalInventories.

Parameter
Name Description
request IListLocalInventoriesRequest

ListLocalInventoriesRequest message or plain object

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

Promise