Class protos.google.shopping.merchant.lfp.v1beta.LfpSaleService (0.2.0)

Represents a LfpSaleService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.lfp.v1beta.LfpSaleService

Package

@google-shopping/lfp

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

insertLfpSale(request, callback)

public insertLfpSale(request: google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest, callback: google.shopping.merchant.lfp.v1beta.LfpSaleService.InsertLfpSaleCallback): void;

Calls InsertLfpSale.

Parameters
Name Description
request IInsertLfpSaleRequest

InsertLfpSaleRequest message or plain object

callback InsertLfpSaleCallback

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

Returns
Type Description
void

insertLfpSale(request)

public insertLfpSale(request: google.shopping.merchant.lfp.v1beta.IInsertLfpSaleRequest): Promise<google.shopping.merchant.lfp.v1beta.LfpSale>;

Calls InsertLfpSale.

Parameter
Name Description
request IInsertLfpSaleRequest

InsertLfpSaleRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.lfp.v1beta.LfpSale>

Promise