Module: Google::Cloud::Vision::V1::ProductSearch

Defined in:
lib/google/cloud/vision/v1/product_search.rb,
lib/google/cloud/vision/v1/product_search/paths.rb,
lib/google/cloud/vision/v1/product_search/client.rb,
lib/google/cloud/vision/v1/product_search/operations.rb,
lib/google/cloud/vision/v1/product_search/credentials.rb

Overview

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 client:

require "google/cloud/vision/v1/product_search"
client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new

Defined Under Namespace

Modules: Paths Classes: Client, Credentials, Operations