Class protos.google.cloud.retail.v2.ProductService (1.6.1)

Represents a ProductService

Inheritance

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

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ProductService service.

Parameters
NameDescription
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.v2.IAddFulfillmentPlacesRequest, callback: google.cloud.retail.v2.ProductService.AddFulfillmentPlacesCallback): void;

Calls AddFulfillmentPlaces.

Parameters
NameDescription
request google.cloud.retail.v2.IAddFulfillmentPlacesRequest

AddFulfillmentPlacesRequest message or plain object

callback google.cloud.retail.v2.ProductService.AddFulfillmentPlacesCallback

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

Returns
TypeDescription
void

addFulfillmentPlaces(request)

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

Calls AddFulfillmentPlaces.

Parameter
NameDescription
request google.cloud.retail.v2.IAddFulfillmentPlacesRequest

AddFulfillmentPlacesRequest message or plain object

Returns
TypeDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ProductService

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

createProduct(request, callback)

public createProduct(request: google.cloud.retail.v2.ICreateProductRequest, callback: google.cloud.retail.v2.ProductService.CreateProductCallback): void;

Calls CreateProduct.

Parameters
NameDescription
request ICreateProductRequest

CreateProductRequest message or plain object

callback google.cloud.retail.v2.ProductService.CreateProductCallback

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

Returns
TypeDescription
void

createProduct(request)

public createProduct(request: google.cloud.retail.v2.ICreateProductRequest): Promise<google.cloud.retail.v2.Product>;

Calls CreateProduct.

Parameter
NameDescription
request ICreateProductRequest

CreateProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.Product>

Promise

deleteProduct(request, callback)

public deleteProduct(request: google.cloud.retail.v2.IDeleteProductRequest, callback: google.cloud.retail.v2.ProductService.DeleteProductCallback): void;

Calls DeleteProduct.

Parameters
NameDescription
request google.cloud.retail.v2.IDeleteProductRequest

DeleteProductRequest message or plain object

callback google.cloud.retail.v2.ProductService.DeleteProductCallback

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

Returns
TypeDescription
void

deleteProduct(request)

public deleteProduct(request: google.cloud.retail.v2.IDeleteProductRequest): Promise<google.protobuf.Empty>;

Calls DeleteProduct.

Parameter
NameDescription
request google.cloud.retail.v2.IDeleteProductRequest

DeleteProductRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getProduct(request, callback)

public getProduct(request: google.cloud.retail.v2.IGetProductRequest, callback: google.cloud.retail.v2.ProductService.GetProductCallback): void;

Calls GetProduct.

Parameters
NameDescription
request IGetProductRequest

GetProductRequest message or plain object

callback google.cloud.retail.v2.ProductService.GetProductCallback

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

Returns
TypeDescription
void

getProduct(request)

public getProduct(request: google.cloud.retail.v2.IGetProductRequest): Promise<google.cloud.retail.v2.Product>;

Calls GetProduct.

Parameter
NameDescription
request IGetProductRequest

GetProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.Product>

Promise

importProducts(request, callback)

public importProducts(request: google.cloud.retail.v2.IImportProductsRequest, callback: google.cloud.retail.v2.ProductService.ImportProductsCallback): void;

Calls ImportProducts.

Parameters
NameDescription
request IImportProductsRequest

ImportProductsRequest message or plain object

callback google.cloud.retail.v2.ProductService.ImportProductsCallback

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

Returns
TypeDescription
void

importProducts(request)

public importProducts(request: google.cloud.retail.v2.IImportProductsRequest): Promise<google.longrunning.Operation>;

Calls ImportProducts.

Parameter
NameDescription
request IImportProductsRequest

ImportProductsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listProducts(request, callback)

public listProducts(request: google.cloud.retail.v2.IListProductsRequest, callback: google.cloud.retail.v2.ProductService.ListProductsCallback): void;

Calls ListProducts.

Parameters
NameDescription
request google.cloud.retail.v2.IListProductsRequest

ListProductsRequest message or plain object

callback google.cloud.retail.v2.ProductService.ListProductsCallback

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

Returns
TypeDescription
void

listProducts(request)

public listProducts(request: google.cloud.retail.v2.IListProductsRequest): Promise<google.cloud.retail.v2.ListProductsResponse>;

Calls ListProducts.

Parameter
NameDescription
request google.cloud.retail.v2.IListProductsRequest

ListProductsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ListProductsResponse>

Promise

removeFulfillmentPlaces(request, callback)

public removeFulfillmentPlaces(request: google.cloud.retail.v2.IRemoveFulfillmentPlacesRequest, callback: google.cloud.retail.v2.ProductService.RemoveFulfillmentPlacesCallback): void;

Calls RemoveFulfillmentPlaces.

Parameters
NameDescription
request google.cloud.retail.v2.IRemoveFulfillmentPlacesRequest

RemoveFulfillmentPlacesRequest message or plain object

callback google.cloud.retail.v2.ProductService.RemoveFulfillmentPlacesCallback

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

Returns
TypeDescription
void

removeFulfillmentPlaces(request)

public removeFulfillmentPlaces(request: google.cloud.retail.v2.IRemoveFulfillmentPlacesRequest): Promise<google.longrunning.Operation>;

Calls RemoveFulfillmentPlaces.

Parameter
NameDescription
request google.cloud.retail.v2.IRemoveFulfillmentPlacesRequest

RemoveFulfillmentPlacesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

setInventory(request, callback)

public setInventory(request: google.cloud.retail.v2.ISetInventoryRequest, callback: google.cloud.retail.v2.ProductService.SetInventoryCallback): void;

Calls SetInventory.

Parameters
NameDescription
request ISetInventoryRequest

SetInventoryRequest message or plain object

callback google.cloud.retail.v2.ProductService.SetInventoryCallback

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

Returns
TypeDescription
void

setInventory(request)

public setInventory(request: google.cloud.retail.v2.ISetInventoryRequest): Promise<google.longrunning.Operation>;

Calls SetInventory.

Parameter
NameDescription
request ISetInventoryRequest

SetInventoryRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateProduct(request, callback)

public updateProduct(request: google.cloud.retail.v2.IUpdateProductRequest, callback: google.cloud.retail.v2.ProductService.UpdateProductCallback): void;

Calls UpdateProduct.

Parameters
NameDescription
request google.cloud.retail.v2.IUpdateProductRequest

UpdateProductRequest message or plain object

callback google.cloud.retail.v2.ProductService.UpdateProductCallback

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

Returns
TypeDescription
void

updateProduct(request)

public updateProduct(request: google.cloud.retail.v2.IUpdateProductRequest): Promise<google.cloud.retail.v2.Product>;

Calls UpdateProduct.

Parameter
NameDescription
request google.cloud.retail.v2.IUpdateProductRequest

UpdateProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.Product>

Promise