ProductSearch

google.cloud.vision.v1p3beta1. ProductSearch

Represents a ProductSearch

Constructor

new ProductSearch(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new ProductSearch service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {ProductSearch}

Creates new ProductSearch service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

addProductToProductSet(request, callback) → {undefined}

Calls AddProductToProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IAddProductToProductSetRequest

AddProductToProductSetRequest message or plain object

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

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

addProductToProductSet(request) → {Promise.<google.protobuf.Empty>}

Calls AddProductToProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IAddProductToProductSetRequest

AddProductToProductSetRequest message or plain object

createProduct(request, callback) → {undefined}

Calls CreateProduct.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.ICreateProductRequest

CreateProductRequest message or plain object

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

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

createProduct(request) → {Promise.<google.cloud.vision.v1p3beta1.Product>}

Calls CreateProduct.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.ICreateProductRequest

CreateProductRequest message or plain object

createProductSet(request, callback) → {undefined}

Calls CreateProductSet.

Parameters:
Name Type Description
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

createProductSet(request) → {Promise.<google.cloud.vision.v1p3beta1.ProductSet>}

Calls CreateProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.ICreateProductSetRequest

CreateProductSetRequest message or plain object

createReferenceImage(request, callback) → {undefined}

Calls CreateReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.ICreateReferenceImageRequest

CreateReferenceImageRequest message or plain object

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

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

createReferenceImage(request) → {Promise.<google.cloud.vision.v1p3beta1.ReferenceImage>}

Calls CreateReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.ICreateReferenceImageRequest

CreateReferenceImageRequest message or plain object

deleteProduct(request, callback) → {undefined}

Calls DeleteProduct.

Parameters:
Name Type Description
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

deleteProduct(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteProduct.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IDeleteProductRequest

DeleteProductRequest message or plain object

deleteProductSet(request, callback) → {undefined}

Calls DeleteProductSet.

Parameters:
Name Type Description
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

deleteProductSet(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IDeleteProductSetRequest

DeleteProductSetRequest message or plain object

deleteReferenceImage(request, callback) → {undefined}

Calls DeleteReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IDeleteReferenceImageRequest

DeleteReferenceImageRequest message or plain object

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

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

deleteReferenceImage(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IDeleteReferenceImageRequest

DeleteReferenceImageRequest message or plain object

getProduct(request, callback) → {undefined}

Calls GetProduct.

Parameters:
Name Type Description
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

getProduct(request) → {Promise.<google.cloud.vision.v1p3beta1.Product>}

Calls GetProduct.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IGetProductRequest

GetProductRequest message or plain object

getProductSet(request, callback) → {undefined}

Calls GetProductSet.

Parameters:
Name Type Description
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

getProductSet(request) → {Promise.<google.cloud.vision.v1p3beta1.ProductSet>}

Calls GetProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IGetProductSetRequest

GetProductSetRequest message or plain object

getReferenceImage(request, callback) → {undefined}

Calls GetReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IGetReferenceImageRequest

GetReferenceImageRequest message or plain object

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

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

getReferenceImage(request) → {Promise.<google.cloud.vision.v1p3beta1.ReferenceImage>}

Calls GetReferenceImage.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IGetReferenceImageRequest

GetReferenceImageRequest message or plain object

importProductSets(request, callback) → {undefined}

Calls ImportProductSets.

Parameters:
Name Type Description
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

importProductSets(request) → {Promise.<google.longrunning.Operation>}

Calls ImportProductSets.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IImportProductSetsRequest

ImportProductSetsRequest message or plain object

listProducts(request, callback) → {undefined}

Calls ListProducts.

Parameters:
Name Type Description
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

listProducts(request) → {Promise.<google.cloud.vision.v1p3beta1.ListProductsResponse>}

Calls ListProducts.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListProductsRequest

ListProductsRequest message or plain object

listProductSets(request, callback) → {undefined}

Calls ListProductSets.

Parameters:
Name Type Description
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

listProductSets(request) → {Promise.<google.cloud.vision.v1p3beta1.ListProductSetsResponse>}

Calls ListProductSets.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListProductSetsRequest

ListProductSetsRequest message or plain object

listProductsInProductSet(request, callback) → {undefined}

Calls ListProductsInProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListProductsInProductSetRequest

ListProductsInProductSetRequest message or plain object

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

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

listProductsInProductSet(request) → {Promise.<google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse>}

Calls ListProductsInProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListProductsInProductSetRequest

ListProductsInProductSetRequest message or plain object

listReferenceImages(request, callback) → {undefined}

Calls ListReferenceImages.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListReferenceImagesRequest

ListReferenceImagesRequest message or plain object

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

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

listReferenceImages(request) → {Promise.<google.cloud.vision.v1p3beta1.ListReferenceImagesResponse>}

Calls ListReferenceImages.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IListReferenceImagesRequest

ListReferenceImagesRequest message or plain object

removeProductFromProductSet(request, callback) → {undefined}

Calls RemoveProductFromProductSet.

Parameters:
Name Type Description
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

removeProductFromProductSet(request) → {Promise.<google.protobuf.Empty>}

Calls RemoveProductFromProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IRemoveProductFromProductSetRequest

RemoveProductFromProductSetRequest message or plain object

updateProduct(request, callback) → {undefined}

Calls UpdateProduct.

Parameters:
Name Type Description
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

updateProduct(request) → {Promise.<google.cloud.vision.v1p3beta1.Product>}

Calls UpdateProduct.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IUpdateProductRequest

UpdateProductRequest message or plain object

updateProductSet(request, callback) → {undefined}

Calls UpdateProductSet.

Parameters:
Name Type Description
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

updateProductSet(request) → {Promise.<google.cloud.vision.v1p3beta1.ProductSet>}

Calls UpdateProductSet.

Parameters:
Name Type Description
request google.cloud.vision.v1p3beta1.IUpdateProductSetRequest

UpdateProductSetRequest message or plain object

Type Definitions

AddProductToProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#addProductToProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

CreateProductCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#createProduct.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.Product <optional>

Product

CreateProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#createProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ProductSet <optional>

ProductSet

CreateReferenceImageCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#createReferenceImage.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ReferenceImage <optional>

ReferenceImage

DeleteProductCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#deleteProduct.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#deleteProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteReferenceImageCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#deleteReferenceImage.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetProductCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#getProduct.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.Product <optional>

Product

GetProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#getProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ProductSet <optional>

ProductSet

GetReferenceImageCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#getReferenceImage.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ReferenceImage <optional>

ReferenceImage

ImportProductSetsCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#importProductSets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

ListProductsCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#listProducts.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ListProductsResponse <optional>

ListProductsResponse

ListProductSetsCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#listProductSets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ListProductSetsResponse <optional>

ListProductSetsResponse

ListProductsInProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#listProductsInProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse <optional>

ListProductsInProductSetResponse

ListReferenceImagesCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#listReferenceImages.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ListReferenceImagesResponse <optional>

ListReferenceImagesResponse

RemoveProductFromProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#removeProductFromProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

UpdateProductCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#updateProduct.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.Product <optional>

Product

UpdateProductSetCallback(error, responseopt)

Callback as used by google.cloud.vision.v1p3beta1.ProductSearch#updateProductSet.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.vision.v1p3beta1.ProductSet <optional>

ProductSet