# Cloud Vision V1p4beta1 API - Module Google::Cloud::Vision::V1p4beta1::ProductSearch (v0.16.0)

0.16.0 (latest) 0.15.1 0.14.1 0.13.0 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Vision V1p4beta1 API module Google::Cloud::Vision::V1p4beta1::ProductSearch.

Manages Products and ProductSets of reference images for use in product
search. It uses the following resource model:

- The API has a collection of [ProductSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-ProductSet "Google::Cloud::Vision::V1p4beta1::ProductSet (class)") resources, named `projects//locations//productSets/*`, which acts as a way to put different products into groups to limit identification.

In parallel,

- The API has a collection of
  [Product](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-Product "Google::Cloud::Vision::V1p4beta1::Product (class)") resources, named
  `projects//locations//products/`

- Each [Product](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-Product "Google::Cloud::Vision::V1p4beta1::Product (class)") has a collection of
  [ReferenceImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-ReferenceImage "Google::Cloud::Vision::V1p4beta1::ReferenceImage (class)") resources,
  named
  `projects//locations//products//referenceImages/*`

To load this service and instantiate a REST client:

    require "google/cloud/vision/v1p4beta1/product_search/rest"
    client = ::Google::Cloud::Vision::V1p4beta1::ProductSearch::Rest::Client.new