Represents a LfpInventoryService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.lfp.v1beta.LfpInventoryServicePackage
@google-shopping/lfpConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new LfpInventoryService 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): LfpInventoryService;Creates new LfpInventoryService 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 |
LfpInventoryService |
RPC service. Useful where requests and/or responses are streamed. |
insertLfpInventory(request, callback)
public insertLfpInventory(request: google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest, callback: google.shopping.merchant.lfp.v1beta.LfpInventoryService.InsertLfpInventoryCallback): void;Calls InsertLfpInventory.
| Parameters | |
|---|---|
| Name | Description |
request |
IInsertLfpInventoryRequest
InsertLfpInventoryRequest message or plain object |
callback |
InsertLfpInventoryCallback
Node-style callback called with the error, if any, and LfpInventory |
| Returns | |
|---|---|
| Type | Description |
void |
|
insertLfpInventory(request)
public insertLfpInventory(request: google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest): Promise<google.shopping.merchant.lfp.v1beta.LfpInventory>;Calls InsertLfpInventory.
| Parameter | |
|---|---|
| Name | Description |
request |
IInsertLfpInventoryRequest
InsertLfpInventoryRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.lfp.v1beta.LfpInventory> |
Promise |