Class protos.google.cloud.vision.v1.ProductSearch (2.4.2)

Represents a ProductSearch

Inheritance

$protobuf.rpc.Service > protos.google.cloud.vision.v1.ProductSearch

Package

@google-cloud/vision

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ProductSearch service.

Parameters
NameDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

addProductToProductSet(request)

public addProductToProductSet(request: google.cloud.vision.v1.IAddProductToProductSetRequest): Promise<google.protobuf.Empty>;

Calls AddProductToProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IAddProductToProductSetRequest

AddProductToProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createProduct(request)

public createProduct(request: google.cloud.vision.v1.ICreateProductRequest): Promise<google.cloud.vision.v1.Product>;

Calls CreateProduct.

Parameter
NameDescription
request google.cloud.vision.v1.ICreateProductRequest

CreateProductRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createProductSet(request)

public createProductSet(request: google.cloud.vision.v1.ICreateProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;

Calls CreateProductSet.

Parameter
NameDescription
request ICreateProductSetRequest

CreateProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createReferenceImage(request)

public createReferenceImage(request: google.cloud.vision.v1.ICreateReferenceImageRequest): Promise<google.cloud.vision.v1.ReferenceImage>;

Calls CreateReferenceImage.

Parameter
NameDescription
request google.cloud.vision.v1.ICreateReferenceImageRequest

CreateReferenceImageRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteProduct(request)

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

Calls DeleteProduct.

Parameter
NameDescription
request IDeleteProductRequest

DeleteProductRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteProductSet(request)

public deleteProductSet(request: google.cloud.vision.v1.IDeleteProductSetRequest): Promise<google.protobuf.Empty>;

Calls DeleteProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IDeleteProductSetRequest

DeleteProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteReferenceImage(request)

public deleteReferenceImage(request: google.cloud.vision.v1.IDeleteReferenceImageRequest): Promise<google.protobuf.Empty>;

Calls DeleteReferenceImage.

Parameter
NameDescription
request google.cloud.vision.v1.IDeleteReferenceImageRequest

DeleteReferenceImageRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

getProduct(request)

public getProduct(request: google.cloud.vision.v1.IGetProductRequest): Promise<google.cloud.vision.v1.Product>;

Calls GetProduct.

Parameter
NameDescription
request IGetProductRequest

GetProductRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

getProductSet(request)

public getProductSet(request: google.cloud.vision.v1.IGetProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;

Calls GetProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IGetProductSetRequest

GetProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

getReferenceImage(request)

public getReferenceImage(request: google.cloud.vision.v1.IGetReferenceImageRequest): Promise<google.cloud.vision.v1.ReferenceImage>;

Calls GetReferenceImage.

Parameter
NameDescription
request IGetReferenceImageRequest

GetReferenceImageRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

importProductSets(request)

public importProductSets(request: google.cloud.vision.v1.IImportProductSetsRequest): Promise<google.longrunning.Operation>;

Calls ImportProductSets.

Parameter
NameDescription
request google.cloud.vision.v1.IImportProductSetsRequest

ImportProductSetsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listProducts(request)

public listProducts(request: google.cloud.vision.v1.IListProductsRequest): Promise<google.cloud.vision.v1.ListProductsResponse>;

Calls ListProducts.

Parameter
NameDescription
request IListProductsRequest

ListProductsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listProductSets(request)

public listProductSets(request: google.cloud.vision.v1.IListProductSetsRequest): Promise<google.cloud.vision.v1.ListProductSetsResponse>;

Calls ListProductSets.

Parameter
NameDescription
request google.cloud.vision.v1.IListProductSetsRequest

ListProductSetsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listProductsInProductSet(request)

public listProductsInProductSet(request: google.cloud.vision.v1.IListProductsInProductSetRequest): Promise<google.cloud.vision.v1.ListProductsInProductSetResponse>;

Calls ListProductsInProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IListProductsInProductSetRequest

ListProductsInProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listReferenceImages(request)

public listReferenceImages(request: google.cloud.vision.v1.IListReferenceImagesRequest): Promise<google.cloud.vision.v1.ListReferenceImagesResponse>;

Calls ListReferenceImages.

Parameter
NameDescription
request IListReferenceImagesRequest

ListReferenceImagesRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

purgeProducts(request)

public purgeProducts(request: google.cloud.vision.v1.IPurgeProductsRequest): Promise<google.longrunning.Operation>;

Calls PurgeProducts.

Parameter
NameDescription
request google.cloud.vision.v1.IPurgeProductsRequest

PurgeProductsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

removeProductFromProductSet(request)

public removeProductFromProductSet(request: google.cloud.vision.v1.IRemoveProductFromProductSetRequest): Promise<google.protobuf.Empty>;

Calls RemoveProductFromProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IRemoveProductFromProductSetRequest

RemoveProductFromProductSetRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

updateProduct(request)

public updateProduct(request: google.cloud.vision.v1.IUpdateProductRequest): Promise<google.cloud.vision.v1.Product>;

Calls UpdateProduct.

Parameter
NameDescription
request google.cloud.vision.v1.IUpdateProductRequest

UpdateProductRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

updateProductSet(request)

public updateProductSet(request: google.cloud.vision.v1.IUpdateProductSetRequest): Promise<google.cloud.vision.v1.ProductSet>;

Calls UpdateProductSet.

Parameter
NameDescription
request google.cloud.vision.v1.IUpdateProductSetRequest

UpdateProductSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1.ProductSet>

Promise