Class protos.google.shopping.merchant.lfp.v1.LfpMerchantStateService (0.10.0)

Represents a LfpMerchantStateService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.lfp.v1.LfpMerchantStateService

Package

@google-shopping/lfp

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getLfpMerchantState(request, callback)

public getLfpMerchantState(request: google.shopping.merchant.lfp.v1.IGetLfpMerchantStateRequest, callback: google.shopping.merchant.lfp.v1.LfpMerchantStateService.GetLfpMerchantStateCallback): void;

Calls GetLfpMerchantState.

Parameters
Name Description
request IGetLfpMerchantStateRequest

GetLfpMerchantStateRequest message or plain object

callback GetLfpMerchantStateCallback

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

Returns
Type Description
void

getLfpMerchantState(request)

public getLfpMerchantState(request: google.shopping.merchant.lfp.v1.IGetLfpMerchantStateRequest): Promise<google.shopping.merchant.lfp.v1.LfpMerchantState>;

Calls GetLfpMerchantState.

Parameter
Name Description
request IGetLfpMerchantStateRequest

GetLfpMerchantStateRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.lfp.v1.LfpMerchantState>

Promise