Class protos.google.cloud.retail.v2alpha.ProductService (3.1.0)

Represents a ProductService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.ProductService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ProductService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addFulfillmentPlaces(request, callback)

public addFulfillmentPlaces(request: google.cloud.retail.v2alpha.IAddFulfillmentPlacesRequest, callback: google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlacesCallback): void;

Calls AddFulfillmentPlaces.

Parameters
Name Description
request IAddFulfillmentPlacesRequest

AddFulfillmentPlacesRequest message or plain object

callback AddFulfillmentPlacesCallback

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

Returns
Type Description
void

addFulfillmentPlaces(request)

public addFulfillmentPlaces(request: google.cloud.retail.v2alpha.IAddFulfillmentPlacesRequest): Promise<google.longrunning.Operation>;

Calls AddFulfillmentPlaces.

Parameter
Name Description
request IAddFulfillmentPlacesRequest

AddFulfillmentPlacesRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

addLocalInventories(request, callback)

public addLocalInventories(request: google.cloud.retail.v2alpha.IAddLocalInventoriesRequest, callback: google.cloud.retail.v2alpha.ProductService.AddLocalInventoriesCallback): void;

Calls AddLocalInventories.

Parameters
Name Description
request IAddLocalInventoriesRequest

AddLocalInventoriesRequest message or plain object

callback AddLocalInventoriesCallback

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

Returns
Type Description
void

addLocalInventories(request)

public addLocalInventories(request: google.cloud.retail.v2alpha.IAddLocalInventoriesRequest): Promise<google.longrunning.Operation>;

Calls AddLocalInventories.

Parameter
Name Description
request IAddLocalInventoriesRequest

AddLocalInventoriesRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ProductService;

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

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

createProduct(request, callback)

public createProduct(request: google.cloud.retail.v2alpha.ICreateProductRequest, callback: google.