Class protos.google.cloud.vision.v1p3beta1.ProductSearch

Represents a ProductSearch

Inheritance

$protobuf.rpc.Service > protos.google.cloud.vision.v1p3beta1.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.v1p3beta1.IAddProductToProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSetCallback): void;

Calls AddProductToProductSet.

Parameters
NameDescription
request IAddProductToProductSetRequest

AddProductToProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSetCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

addProductToProductSet(request)

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

Calls AddProductToProductSet.

Parameter
NameDescription
request 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.v1p3beta1.ICreateProductRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.CreateProductCallback): void;

Calls CreateProduct.

Parameters
NameDescription
request ICreateProductRequest

CreateProductRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.CreateProductCallback

Node-style callback called with the error, if any, and Product

Returns
TypeDescription
void

createProduct(request)

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

Calls CreateProduct.

Parameter
NameDescription
request ICreateProductRequest

CreateProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.Product>

Promise

createProductSet(request, callback)

public createProductSet(request: google.cloud.vision.v1p3beta1.ICreateProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSetCallback): void;

Calls CreateProductSet.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.ICreateProductSetRequest

CreateProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSetCallback

Node-style callback called with the error, if any, and ProductSet

Returns
TypeDescription
void

createProductSet(request)

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

Calls CreateProductSet.

Parameter
NameDescription
request google.cloud.vision.v1p3beta1.ICreateProductSetRequest

CreateProductSetRequest message or plain object

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

Promise

createReferenceImage(request, callback)

public createReferenceImage(request: google.cloud.vision.v1p3beta1.ICreateReferenceImageRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImageCallback): void;

Calls CreateReferenceImage.

Parameters
NameDescription
request ICreateReferenceImageRequest

CreateReferenceImageRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImageCallback

Node-style callback called with the error, if any, and ReferenceImage

Returns
TypeDescription
void

createReferenceImage(request)

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

Calls CreateReferenceImage.

Parameter
NameDescription
request ICreateReferenceImageRequest

CreateReferenceImageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ReferenceImage>

Promise

deleteProduct(request, callback)

public deleteProduct(request: google.cloud.vision.v1p3beta1.IDeleteProductRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductCallback): void;

Calls DeleteProduct.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IDeleteProductRequest

DeleteProductRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteProduct(request)

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

Calls DeleteProduct.

Parameter
NameDescription
request google.cloud.vision.v1p3beta1.IDeleteProductRequest

DeleteProductRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteProductSet(request, callback)

public deleteProductSet(request: google.cloud.vision.v1p3beta1.IDeleteProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSetCallback): void;

Calls DeleteProductSet.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IDeleteProductSetRequest

DeleteProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSetCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteProductSet(request)

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

Calls DeleteProductSet.

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

DeleteProductSetRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteReferenceImage(request, callback)

public deleteReferenceImage(request: google.cloud.vision.v1p3beta1.IDeleteReferenceImageRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImageCallback): void;

Calls DeleteReferenceImage.

Parameters
NameDescription
request IDeleteReferenceImageRequest

DeleteReferenceImageRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImageCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteReferenceImage(request)

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

Calls DeleteReferenceImage.

Parameter
NameDescription
request IDeleteReferenceImageRequest

DeleteReferenceImageRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getProduct(request, callback)

public getProduct(request: google.cloud.vision.v1p3beta1.IGetProductRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.GetProductCallback): void;

Calls GetProduct.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IGetProductRequest

GetProductRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.GetProductCallback

Node-style callback called with the error, if any, and Product

Returns
TypeDescription
void

getProduct(request)

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

Calls GetProduct.

Parameter
NameDescription
request google.cloud.vision.v1p3beta1.IGetProductRequest

GetProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.Product>

Promise

getProductSet(request, callback)

public getProductSet(request: google.cloud.vision.v1p3beta1.IGetProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.GetProductSetCallback): void;

Calls GetProductSet.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IGetProductSetRequest

GetProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.GetProductSetCallback

Node-style callback called with the error, if any, and ProductSet

Returns
TypeDescription
void

getProductSet(request)

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

Calls GetProductSet.

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

GetProductSetRequest message or plain object

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

Promise

getReferenceImage(request, callback)

public getReferenceImage(request: google.cloud.vision.v1p3beta1.IGetReferenceImageRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImageCallback): void;

Calls GetReferenceImage.

Parameters
NameDescription
request IGetReferenceImageRequest

GetReferenceImageRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImageCallback

Node-style callback called with the error, if any, and ReferenceImage

Returns
TypeDescription
void

getReferenceImage(request)

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

Calls GetReferenceImage.

Parameter
NameDescription
request IGetReferenceImageRequest

GetReferenceImageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ReferenceImage>

Promise

importProductSets(request, callback)

public importProductSets(request: google.cloud.vision.v1p3beta1.IImportProductSetsRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSetsCallback): void;

Calls ImportProductSets.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IImportProductSetsRequest

ImportProductSetsRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSetsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

importProductSets(request)

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

Calls ImportProductSets.

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

ImportProductSetsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listProducts(request, callback)

public listProducts(request: google.cloud.vision.v1p3beta1.IListProductsRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.ListProductsCallback): void;

Calls ListProducts.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IListProductsRequest

ListProductsRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.ListProductsCallback

Node-style callback called with the error, if any, and ListProductsResponse

Returns
TypeDescription
void

listProducts(request)

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

Calls ListProducts.

Parameter
NameDescription
request google.cloud.vision.v1p3beta1.IListProductsRequest

ListProductsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ListProductsResponse>

Promise

listProductSets(request, callback)

public listProductSets(request: google.cloud.vision.v1p3beta1.IListProductSetsRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.ListProductSetsCallback): void;

Calls ListProductSets.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IListProductSetsRequest

ListProductSetsRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.ListProductSetsCallback

Node-style callback called with the error, if any, and ListProductSetsResponse

Returns
TypeDescription
void

listProductSets(request)

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

Calls ListProductSets.

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

ListProductSetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ListProductSetsResponse>

Promise

listProductsInProductSet(request, callback)

public listProductsInProductSet(request: google.cloud.vision.v1p3beta1.IListProductsInProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSetCallback): void;

Calls ListProductsInProductSet.

Parameters
NameDescription
request IListProductsInProductSetRequest

ListProductsInProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSetCallback

Node-style callback called with the error, if any, and ListProductsInProductSetResponse

Returns
TypeDescription
void

listProductsInProductSet(request)

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

Calls ListProductsInProductSet.

Parameter
NameDescription
request IListProductsInProductSetRequest

ListProductsInProductSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>

Promise

listReferenceImages(request, callback)

public listReferenceImages(request: google.cloud.vision.v1p3beta1.IListReferenceImagesRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImagesCallback): void;

Calls ListReferenceImages.

Parameters
NameDescription
request IListReferenceImagesRequest

ListReferenceImagesRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImagesCallback

Node-style callback called with the error, if any, and ListReferenceImagesResponse

Returns
TypeDescription
void

listReferenceImages(request)

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

Calls ListReferenceImages.

Parameter
NameDescription
request IListReferenceImagesRequest

ListReferenceImagesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>

Promise

removeProductFromProductSet(request, callback)

public removeProductFromProductSet(request: google.cloud.vision.v1p3beta1.IRemoveProductFromProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSetCallback): void;

Calls RemoveProductFromProductSet.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IRemoveProductFromProductSetRequest

RemoveProductFromProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSetCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

removeProductFromProductSet(request)

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

Calls RemoveProductFromProductSet.

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

RemoveProductFromProductSetRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

updateProduct(request, callback)

public updateProduct(request: google.cloud.vision.v1p3beta1.IUpdateProductRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductCallback): void;

Calls UpdateProduct.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IUpdateProductRequest

UpdateProductRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductCallback

Node-style callback called with the error, if any, and Product

Returns
TypeDescription
void

updateProduct(request)

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

Calls UpdateProduct.

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

UpdateProductRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.vision.v1p3beta1.Product>

Promise

updateProductSet(request, callback)

public updateProductSet(request: google.cloud.vision.v1p3beta1.IUpdateProductSetRequest, callback: google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSetCallback): void;

Calls UpdateProductSet.

Parameters
NameDescription
request google.cloud.vision.v1p3beta1.IUpdateProductSetRequest

UpdateProductSetRequest message or plain object

callback google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSetCallback

Node-style callback called with the error, if any, and ProductSet

Returns
TypeDescription
void

updateProductSet(request)

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

Calls UpdateProductSet.

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

UpdateProductSetRequest message or plain object

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

Promise