Represents a ProductService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2beta.ProductServicePackage
@google-cloud/retail!Constructors
(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
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.v2beta.ICreateProductRequest, callback: google.cloud.retail.v2beta.ProductService.CreateProductCallback): void;
Calls CreateProduct.
Name | Description |
request |
google.cloud.retail.v2beta.ICreateProductRequest
CreateProductRequest message or plain object |
callback |
google.cloud.retail.v2beta.ProductService.CreateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
createProduct(request)
public createProduct(request: google.cloud.retail.v2beta.ICreateProductRequest): Promise<google.cloud.retail.v2beta.Product>;
Calls CreateProduct.
Name | Description |
request |
google.cloud.retail.v2beta.ICreateProductRequest
CreateProductRequest message or plain object |
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.
Name | Description |
request |
IDeleteProductRequest
DeleteProductRequest message or plain object |
callback |
google.cloud.retail.v2beta.ProductService.DeleteProductCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteProduct(request)
public deleteProduct(request: google.cloud.retail.v2beta.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.v2beta.IGetProductRequest, callback: google.cloud.retail.v2beta.ProductService.GetProductCallback): void;
Calls GetProduct.
Name | Description |
request |
google.cloud.retail.v2beta.IGetProductRequest
GetProductRequest message or plain object |
callback |
google.cloud.retail.v2beta.ProductService.GetProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
getProduct(request)
public getProduct(request: google.cloud.retail.v2beta.IGetProductRequest): Promise<google.cloud.retail.v2beta.Product>;
Calls GetProduct.
Name | Description |
request |
google.cloud.retail.v2beta.IGetProductRequest
GetProductRequest message or plain object |
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.
Name | Description |
request |
google.cloud.retail.v2beta.IImportProductsRequest
ImportProductsRequest message or plain object |
callback |
google.cloud.retail.v2beta.ProductService.ImportProductsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importProducts(request)
public importProducts(request: google.cloud.retail.v2beta.IImportProductsRequest): Promise<google.longrunning.Operation>;
Calls ImportProducts.
Name | Description |
request |
google.cloud.retail.v2beta.IImportProductsRequest
ImportProductsRequest message or plain object |
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.
Name | Description |
request |
google.cloud.retail.v2beta.IUpdateProductRequest
UpdateProductRequest message or plain object |
callback |
google.cloud.retail.v2beta.ProductService.UpdateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
updateProduct(request)
public updateProduct(request: google.cloud.retail.v2beta.IUpdateProductRequest): Promise<google.cloud.retail.v2beta.Product>;
Calls UpdateProduct.
Name | Description |
request |
google.cloud.retail.v2beta.IUpdateProductRequest
UpdateProductRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2beta.Product> | Promise |