Represents a ProductService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.ProductServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ProductService service.
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.
Name | Description |
request |
IAddFulfillmentPlacesRequest
AddFulfillmentPlacesRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlacesCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
addFulfillmentPlaces(request)
public addFulfillmentPlaces(request: google.cloud.retail.v2alpha.IAddFulfillmentPlacesRequest): Promise<google.longrunning.Operation>;
Calls AddFulfillmentPlaces.
Name | Description |
request |
IAddFulfillmentPlacesRequest
AddFulfillmentPlacesRequest message or plain object |
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.
Name | Description |
request |
IAddLocalInventoriesRequest
AddLocalInventoriesRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.AddLocalInventoriesCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
addLocalInventories(request)
public addLocalInventories(request: google.cloud.retail.v2alpha.IAddLocalInventoriesRequest): Promise<google.longrunning.Operation>;
Calls AddLocalInventories.
Name | Description |
request |
IAddLocalInventoriesRequest
AddLocalInventoriesRequest message or plain object |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
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.cloud.retail.v2alpha.ProductService.CreateProductCallback): void;
Calls CreateProduct.
Name | Description |
request |
ICreateProductRequest
CreateProductRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.CreateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
createProduct(request)
public createProduct(request: google.cloud.retail.v2alpha.ICreateProductRequest): Promise<google.cloud.retail.v2alpha.Product>;
Calls CreateProduct.
Name | Description |
request |
ICreateProductRequest
CreateProductRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Product> | Promise |
deleteProduct(request, callback)
public deleteProduct(request: google.cloud.retail.v2alpha.IDeleteProductRequest, callback: google.cloud.retail.v2alpha.ProductService.DeleteProductCallback): void;
Calls DeleteProduct.
Name | Description |
request |
IDeleteProductRequest
DeleteProductRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.DeleteProductCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteProduct(request)
public deleteProduct(request: google.cloud.retail.v2alpha.IDeleteProductRequest): Promise<google.protobuf.Empty>;
Calls DeleteProduct.
Name | Description |
request |
IDeleteProductRequest
DeleteProductRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getProduct(request, callback)
public getProduct(request: google.cloud.retail.v2alpha.IGetProductRequest, callback: google.cloud.retail.v2alpha.ProductService.GetProductCallback): void;
Calls GetProduct.
Name | Description |
request |
IGetProductRequest
GetProductRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.GetProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
getProduct(request)
public getProduct(request: google.cloud.retail.v2alpha.IGetProductRequest): Promise<google.cloud.retail.v2alpha.Product>;
Calls GetProduct.
Name | Description |
request |
IGetProductRequest
GetProductRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Product> | Promise |
importProducts(request, callback)
public importProducts(request: google.cloud.retail.v2alpha.IImportProductsRequest, callback: google.cloud.retail.v2alpha.ProductService.ImportProductsCallback): void;
Calls ImportProducts.
Name | Description |
request |
google.cloud.retail.v2alpha.IImportProductsRequest
ImportProductsRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.ImportProductsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importProducts(request)
public importProducts(request: google.cloud.retail.v2alpha.IImportProductsRequest): Promise<google.longrunning.Operation>;
Calls ImportProducts.
Name | Description |
request |
google.cloud.retail.v2alpha.IImportProductsRequest
ImportProductsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
listProducts(request, callback)
public listProducts(request: google.cloud.retail.v2alpha.IListProductsRequest, callback: google.cloud.retail.v2alpha.ProductService.ListProductsCallback): void;
Calls ListProducts.
Name | Description |
request |
IListProductsRequest
ListProductsRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.ListProductsCallback
Node-style callback called with the error, if any, and ListProductsResponse |
Type | Description |
void |
listProducts(request)
public listProducts(request: google.cloud.retail.v2alpha.IListProductsRequest): Promise<google.cloud.retail.v2alpha.ListProductsResponse>;
Calls ListProducts.
Name | Description |
request |
IListProductsRequest
ListProductsRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.ListProductsResponse> | Promise |
purgeProducts(request, callback)
public purgeProducts(request: google.cloud.retail.v2alpha.IPurgeProductsRequest, callback: google.cloud.retail.v2alpha.ProductService.PurgeProductsCallback): void;
Calls PurgeProducts.
Name | Description |
request |
IPurgeProductsRequest
PurgeProductsRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.PurgeProductsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
purgeProducts(request)
public purgeProducts(request: google.cloud.retail.v2alpha.IPurgeProductsRequest): Promise<google.longrunning.Operation>;
Calls PurgeProducts.
Name | Description |
request |
IPurgeProductsRequest
PurgeProductsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
removeFulfillmentPlaces(request, callback)
public removeFulfillmentPlaces(request: google.cloud.retail.v2alpha.IRemoveFulfillmentPlacesRequest, callback: google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlacesCallback): void;
Calls RemoveFulfillmentPlaces.
Name | Description |
request |
IRemoveFulfillmentPlacesRequest
RemoveFulfillmentPlacesRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlacesCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
removeFulfillmentPlaces(request)
public removeFulfillmentPlaces(request: google.cloud.retail.v2alpha.IRemoveFulfillmentPlacesRequest): Promise<google.longrunning.Operation>;
Calls RemoveFulfillmentPlaces.
Name | Description |
request |
IRemoveFulfillmentPlacesRequest
RemoveFulfillmentPlacesRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
removeLocalInventories(request, callback)
public removeLocalInventories(request: google.cloud.retail.v2alpha.IRemoveLocalInventoriesRequest, callback: google.cloud.retail.v2alpha.ProductService.RemoveLocalInventoriesCallback): void;
Calls RemoveLocalInventories.
Name | Description |
request |
IRemoveLocalInventoriesRequest
RemoveLocalInventoriesRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.RemoveLocalInventoriesCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
removeLocalInventories(request)
public removeLocalInventories(request: google.cloud.retail.v2alpha.IRemoveLocalInventoriesRequest): Promise<google.longrunning.Operation>;
Calls RemoveLocalInventories.
Name | Description |
request |
IRemoveLocalInventoriesRequest
RemoveLocalInventoriesRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
setInventory(request, callback)
public setInventory(request: google.cloud.retail.v2alpha.ISetInventoryRequest, callback: google.cloud.retail.v2alpha.ProductService.SetInventoryCallback): void;
Calls SetInventory.
Name | Description |
request |
ISetInventoryRequest
SetInventoryRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.SetInventoryCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
setInventory(request)
public setInventory(request: google.cloud.retail.v2alpha.ISetInventoryRequest): Promise<google.longrunning.Operation>;
Calls SetInventory.
Name | Description |
request |
ISetInventoryRequest
SetInventoryRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateProduct(request, callback)
public updateProduct(request: google.cloud.retail.v2alpha.IUpdateProductRequest, callback: google.cloud.retail.v2alpha.ProductService.UpdateProductCallback): void;
Calls UpdateProduct.
Name | Description |
request |
IUpdateProductRequest
UpdateProductRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ProductService.UpdateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
updateProduct(request)
public updateProduct(request: google.cloud.retail.v2alpha.IUpdateProductRequest): Promise<google.cloud.retail.v2alpha.Product>;
Calls UpdateProduct.
Name | Description |
request |
IUpdateProductRequest
UpdateProductRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Product> | Promise |