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