Represents a ProductSearch
Inheritance
$protobuf.rpc.Service > protos.google.cloud.vision.v1.ProductSearchPackage
@google-cloud/visionConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ProductSearch service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
addProductToProductSet(request, callback)
public addProductToProductSet(request: google.cloud.vision.v1.IAddProductToProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.AddProductToProductSetCallback): void;
Calls AddProductToProductSet.
Name | Description |
request |
google.cloud.vision.v1.IAddProductToProductSetRequest
AddProductToProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.AddProductToProductSetCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
addProductToProductSet(request)
public addProductToProductSet(request: google.cloud.vision.v1.IAddProductToProductSetRequest): Promise<google.protobuf.Empty>;
Calls AddProductToProductSet.
Name | Description |
request |
google.cloud.vision.v1.IAddProductToProductSetRequest
AddProductToProductSetRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ProductSearch;
Creates new ProductSearch 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 |
ProductSearch | RPC service. Useful where requests and/or responses are streamed. |
createProduct(request, callback)
public createProduct(request: google.cloud.vision.v1.ICreateProductRequest, callback: google.cloud.vision.v1.ProductSearch.CreateProductCallback): void;
Calls CreateProduct.
Name | Description |
request |
google.cloud.vision.v1.ICreateProductRequest
CreateProductRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.CreateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
createProduct(request)
public createProduct(request: google.cloud.vision.v1.ICreateProductRequest): Promise<google.cloud.vision.v1.Product>;
Calls CreateProduct.
Name | Description |
request |
google.cloud.vision.v1.ICreateProductRequest
CreateProductRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.Product> | Promise |
createProductSet(request, callback)
public createProductSet(request: google.cloud.vision.v1.ICreateProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.CreateProductSetCallback): void;
Calls CreateProductSet.
Name | Description |
request |
ICreateProductSetRequest
CreateProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.CreateProductSetCallback
Node-style callback called with the error, if any, and ProductSet |
Type | Description |
void |
createProductSet(request)
public createProductSet(request: google.cloud.vision.v1.ICreateProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;
Calls CreateProductSet.
Name | Description |
request |
ICreateProductSetRequest
CreateProductSetRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ProductSet> | Promise |
createReferenceImage(request, callback)
public createReferenceImage(request: google.cloud.vision.v1.ICreateReferenceImageRequest, callback: google.cloud.vision.v1.ProductSearch.CreateReferenceImageCallback): void;
Calls CreateReferenceImage.
Name | Description |
request |
google.cloud.vision.v1.ICreateReferenceImageRequest
CreateReferenceImageRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.CreateReferenceImageCallback
Node-style callback called with the error, if any, and ReferenceImage |
Type | Description |
void |
createReferenceImage(request)
public createReferenceImage(request: google.cloud.vision.v1.ICreateReferenceImageRequest): Promise<google.cloud.vision.v1.ReferenceImage>;
Calls CreateReferenceImage.
Name | Description |
request |
google.cloud.vision.v1.ICreateReferenceImageRequest
CreateReferenceImageRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ReferenceImage> | Promise |
deleteProduct(request, callback)
public deleteProduct(request: google.cloud.vision.v1.IDeleteProductRequest, callback: google.cloud.vision.v1.ProductSearch.DeleteProductCallback): void;
Calls DeleteProduct.
Name | Description |
request |
IDeleteProductRequest
DeleteProductRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.DeleteProductCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteProduct(request)
public deleteProduct(request: google.cloud.vision.v1.IDeleteProductRequest): Promise<google.protobuf.Empty>;
Calls DeleteProduct.
Name | Description |
request |
IDeleteProductRequest
DeleteProductRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
deleteProductSet(request, callback)
public deleteProductSet(request: google.cloud.vision.v1.IDeleteProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.DeleteProductSetCallback): void;
Calls DeleteProductSet.
Name | Description |
request |
google.cloud.vision.v1.IDeleteProductSetRequest
DeleteProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.DeleteProductSetCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteProductSet(request)
public deleteProductSet(request: google.cloud.vision.v1.IDeleteProductSetRequest): Promise<google.protobuf.Empty>;
Calls DeleteProductSet.
Name | Description |
request |
google.cloud.vision.v1.IDeleteProductSetRequest
DeleteProductSetRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
deleteReferenceImage(request, callback)
public deleteReferenceImage(request: google.cloud.vision.v1.IDeleteReferenceImageRequest, callback: google.cloud.vision.v1.ProductSearch.DeleteReferenceImageCallback): void;
Calls DeleteReferenceImage.
Name | Description |
request |
google.cloud.vision.v1.IDeleteReferenceImageRequest
DeleteReferenceImageRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.DeleteReferenceImageCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteReferenceImage(request)
public deleteReferenceImage(request: google.cloud.vision.v1.IDeleteReferenceImageRequest): Promise<google.protobuf.Empty>;
Calls DeleteReferenceImage.
Name | Description |
request |
google.cloud.vision.v1.IDeleteReferenceImageRequest
DeleteReferenceImageRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getProduct(request, callback)
public getProduct(request: google.cloud.vision.v1.IGetProductRequest, callback: google.cloud.vision.v1.ProductSearch.GetProductCallback): void;
Calls GetProduct.
Name | Description |
request |
IGetProductRequest
GetProductRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.GetProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
getProduct(request)
public getProduct(request: google.cloud.vision.v1.IGetProductRequest): Promise<google.cloud.vision.v1.Product>;
Calls GetProduct.
Name | Description |
request |
IGetProductRequest
GetProductRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.Product> | Promise |
getProductSet(request, callback)
public getProductSet(request: google.cloud.vision.v1.IGetProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.GetProductSetCallback): void;
Calls GetProductSet.
Name | Description |
request |
google.cloud.vision.v1.IGetProductSetRequest
GetProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.GetProductSetCallback
Node-style callback called with the error, if any, and ProductSet |
Type | Description |
void |
getProductSet(request)
public getProductSet(request: google.cloud.vision.v1.IGetProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;
Calls GetProductSet.
Name | Description |
request |
google.cloud.vision.v1.IGetProductSetRequest
GetProductSetRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ProductSet> | Promise |
getReferenceImage(request, callback)
public getReferenceImage(request: google.cloud.vision.v1.IGetReferenceImageRequest, callback: google.cloud.vision.v1.ProductSearch.GetReferenceImageCallback): void;
Calls GetReferenceImage.
Name | Description |
request |
IGetReferenceImageRequest
GetReferenceImageRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.GetReferenceImageCallback
Node-style callback called with the error, if any, and ReferenceImage |
Type | Description |
void |
getReferenceImage(request)
public getReferenceImage(request: google.cloud.vision.v1.IGetReferenceImageRequest): Promise<google.cloud.vision.v1.ReferenceImage>;
Calls GetReferenceImage.
Name | Description |
request |
IGetReferenceImageRequest
GetReferenceImageRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ReferenceImage> | Promise |
importProductSets(request, callback)
public importProductSets(request: google.cloud.vision.v1.IImportProductSetsRequest, callback: google.cloud.vision.v1.ProductSearch.ImportProductSetsCallback): void;
Calls ImportProductSets.
Name | Description |
request |
google.cloud.vision.v1.IImportProductSetsRequest
ImportProductSetsRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.ImportProductSetsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importProductSets(request)
public importProductSets(request: google.cloud.vision.v1.IImportProductSetsRequest): Promise<google.longrunning.Operation>;
Calls ImportProductSets.
Name | Description |
request |
google.cloud.vision.v1.IImportProductSetsRequest
ImportProductSetsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
listProducts(request, callback)
public listProducts(request: google.cloud.vision.v1.IListProductsRequest, callback: google.cloud.vision.v1.ProductSearch.ListProductsCallback): void;
Calls ListProducts.
Name | Description |
request |
IListProductsRequest
ListProductsRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.ListProductsCallback
Node-style callback called with the error, if any, and ListProductsResponse |
Type | Description |
void |
listProducts(request)
public listProducts(request: google.cloud.vision.v1.IListProductsRequest): Promise<google.cloud.vision.v1.ListProductsResponse>;
Calls ListProducts.
Name | Description |
request |
IListProductsRequest
ListProductsRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ListProductsResponse> | Promise |
listProductSets(request, callback)
public listProductSets(request: google.cloud.vision.v1.IListProductSetsRequest, callback: google.cloud.vision.v1.ProductSearch.ListProductSetsCallback): void;
Calls ListProductSets.
Name | Description |
request |
google.cloud.vision.v1.IListProductSetsRequest
ListProductSetsRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.ListProductSetsCallback
Node-style callback called with the error, if any, and ListProductSetsResponse |
Type | Description |
void |
listProductSets(request)
public listProductSets(request: google.cloud.vision.v1.IListProductSetsRequest): Promise<google.cloud.vision.v1.ListProductSetsResponse>;
Calls ListProductSets.
Name | Description |
request |
google.cloud.vision.v1.IListProductSetsRequest
ListProductSetsRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ListProductSetsResponse> | Promise |
listProductsInProductSet(request, callback)
public listProductsInProductSet(request: google.cloud.vision.v1.IListProductsInProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.ListProductsInProductSetCallback): void;
Calls ListProductsInProductSet.
Name | Description |
request |
google.cloud.vision.v1.IListProductsInProductSetRequest
ListProductsInProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.ListProductsInProductSetCallback
Node-style callback called with the error, if any, and ListProductsInProductSetResponse |
Type | Description |
void |
listProductsInProductSet(request)
public listProductsInProductSet(request: google.cloud.vision.v1.IListProductsInProductSetRequest): Promise<google.cloud.vision.v1.ListProductsInProductSetResponse>;
Calls ListProductsInProductSet.
Name | Description |
request |
google.cloud.vision.v1.IListProductsInProductSetRequest
ListProductsInProductSetRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ListProductsInProductSetResponse> | Promise |
listReferenceImages(request, callback)
public listReferenceImages(request: google.cloud.vision.v1.IListReferenceImagesRequest, callback: google.cloud.vision.v1.ProductSearch.ListReferenceImagesCallback): void;
Calls ListReferenceImages.
Name | Description |
request |
IListReferenceImagesRequest
ListReferenceImagesRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.ListReferenceImagesCallback
Node-style callback called with the error, if any, and ListReferenceImagesResponse |
Type | Description |
void |
listReferenceImages(request)
public listReferenceImages(request: google.cloud.vision.v1.IListReferenceImagesRequest): Promise<google.cloud.vision.v1.ListReferenceImagesResponse>;
Calls ListReferenceImages.
Name | Description |
request |
IListReferenceImagesRequest
ListReferenceImagesRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ListReferenceImagesResponse> | Promise |
purgeProducts(request, callback)
public purgeProducts(request: google.cloud.vision.v1.IPurgeProductsRequest, callback: google.cloud.vision.v1.ProductSearch.PurgeProductsCallback): void;
Calls PurgeProducts.
Name | Description |
request |
google.cloud.vision.v1.IPurgeProductsRequest
PurgeProductsRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.PurgeProductsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
purgeProducts(request)
public purgeProducts(request: google.cloud.vision.v1.IPurgeProductsRequest): Promise<google.longrunning.Operation>;
Calls PurgeProducts.
Name | Description |
request |
google.cloud.vision.v1.IPurgeProductsRequest
PurgeProductsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
removeProductFromProductSet(request, callback)
public removeProductFromProductSet(request: google.cloud.vision.v1.IRemoveProductFromProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSetCallback): void;
Calls RemoveProductFromProductSet.
Name | Description |
request |
google.cloud.vision.v1.IRemoveProductFromProductSetRequest
RemoveProductFromProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSetCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
removeProductFromProductSet(request)
public removeProductFromProductSet(request: google.cloud.vision.v1.IRemoveProductFromProductSetRequest): Promise<google.protobuf.Empty>;
Calls RemoveProductFromProductSet.
Name | Description |
request |
google.cloud.vision.v1.IRemoveProductFromProductSetRequest
RemoveProductFromProductSetRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
updateProduct(request, callback)
public updateProduct(request: google.cloud.vision.v1.IUpdateProductRequest, callback: google.cloud.vision.v1.ProductSearch.UpdateProductCallback): void;
Calls UpdateProduct.
Name | Description |
request |
google.cloud.vision.v1.IUpdateProductRequest
UpdateProductRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.UpdateProductCallback
Node-style callback called with the error, if any, and Product |
Type | Description |
void |
updateProduct(request)
public updateProduct(request: google.cloud.vision.v1.IUpdateProductRequest): Promise<google.cloud.vision.v1.Product>;
Calls UpdateProduct.
Name | Description |
request |
google.cloud.vision.v1.IUpdateProductRequest
UpdateProductRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.Product> | Promise |
updateProductSet(request, callback)
public updateProductSet(request: google.cloud.vision.v1.IUpdateProductSetRequest, callback: google.cloud.vision.v1.ProductSearch.UpdateProductSetCallback): void;
Calls UpdateProductSet.
Name | Description |
request |
google.cloud.vision.v1.IUpdateProductSetRequest
UpdateProductSetRequest message or plain object |
callback |
google.cloud.vision.v1.ProductSearch.UpdateProductSetCallback
Node-style callback called with the error, if any, and ProductSet |
Type | Description |
void |
updateProductSet(request)
public updateProductSet(request: google.cloud.vision.v1.IUpdateProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;
Calls UpdateProductSet.
Name | Description |
request |
google.cloud.vision.v1.IUpdateProductSetRequest
UpdateProductSetRequest message or plain object |
Type | Description |
Promise<google.cloud.vision.v1.ProductSet> | Promise |