Reference documentation and code samples for the Cloud Vision V1 API module Google::Cloud::Vision::V1::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
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
resources, named
projects//locations//products/
Each Product has a collection of
ReferenceImage resources, named
projects//locations//products//referenceImages/*
To load this service and instantiate a REST client:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Module Google::Cloud::Vision::V1::ProductSearch (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSearch)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-ProductSearch)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-ProductSearch)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-ProductSearch)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-ProductSearch)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-ProductSearch)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-ProductSearch)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-ProductSearch)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-ProductSearch) \nReference documentation and code samples for the Cloud Vision V1 API module Google::Cloud::Vision::V1::ProductSearch.\n\nManages Products and ProductSets of reference images for use in product\nsearch. It uses the following resource model:\n\n- The API has a collection of [ProductSet](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSet \"Google::Cloud::Vision::V1::ProductSet (class)\") resources, named `projects/`*/locations/*`/productSets/*`, which acts as a way to put different products into groups to limit identification.\n\nIn parallel,\n\n- The API has a collection of [Product](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Product \"Google::Cloud::Vision::V1::Product (class)\")\n resources, named\n `projects/`*/locations/* `/products/`\n\n- Each [Product](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Product \"Google::Cloud::Vision::V1::Product (class)\") has a collection of\n [ReferenceImage](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ReferenceImage \"Google::Cloud::Vision::V1::ReferenceImage (class)\") resources, named\n `projects//locations/`*/products/*`/referenceImages/*`\n\nTo load this service and instantiate a REST client: \n\n require \"google/cloud/vision/v1/product_search/rest\"\n client = ::Google::Cloud::Vision::V1::ProductSearch::Rest::Client.new"]]