Class: Google::Cloud::Vision::V1p3beta1::ProductSearchParams
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1p3beta1::ProductSearchParams
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vision/v1p3beta1/product_search.rb
Overview
Parameters for a product search request.
Instance Attribute Summary collapse
-
#bounding_poly ⇒ ::Google::Cloud::Vision::V1p3beta1::BoundingPoly
The bounding polygon around the area of interest in the image.
-
#catalog_name ⇒ ::String
The resource name of the catalog to search.
-
#category ⇒ ::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory
The category to search in.
-
#filter ⇒ ::String
The filtering expression.
-
#normalized_bounding_poly ⇒ ::Google::Cloud::Vision::V1p3beta1::NormalizedBoundingPoly
The bounding polygon around the area of interest in the image.
-
#product_categories ⇒ ::Array<::String>
The list of product categories to search in.
-
#product_category ⇒ ::String
The product category to search in.
-
#product_set ⇒ ::String
The resource name of a ProductSet to be searched for similar images.
-
#view ⇒ ::Google::Cloud::Vision::V1p3beta1::ProductSearchResultsView
Specifies the verbosity of the product search results.
Instance Attribute Details
#bounding_poly ⇒ ::Google::Cloud::Vision::V1p3beta1::BoundingPoly
Returns The bounding polygon around the area of interest in the image. Optional. If it is not specified, system discretion will be applied.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#catalog_name ⇒ ::String
Returns The resource name of the catalog to search.
Format is: productSearch/catalogs/CATALOG_NAME
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#category ⇒ ::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory
Returns The category to search in.
Optional. It is inferred by the system if it is not specified.
[Deprecated] Use product_category
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#filter ⇒ ::String
Returns The filtering expression. This can be used to restrict search results based on Product labels. We currently support an AND of OR of key-value expressions, where each expression within an OR must have the same key.
For example, "(color = red OR color = blue) AND brand = Google" is acceptable, but not "(color = red OR brand = Google)" or "color: red".
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#normalized_bounding_poly ⇒ ::Google::Cloud::Vision::V1p3beta1::NormalizedBoundingPoly
Returns The bounding polygon around the area of interest in the image.
Optional. If it is not specified, system discretion will be applied.
[Deprecated] Use bounding_poly
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#product_categories ⇒ ::Array<::String>
Returns The list of product categories to search in. Currently, we only consider the first category, and either "homegoods" or "apparel" should be specified.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#product_category ⇒ ::String
Returns The product category to search in.
Optional. It is inferred by the system if it is not specified.
Supported values are bag
, shoe
, sunglasses
, dress
, outerwear
,
skirt
, top
, shorts
, and pants
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#product_set ⇒ ::String
Returns The resource name of a ProductSet to be searched for similar images.
Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#view ⇒ ::Google::Cloud::Vision::V1p3beta1::ProductSearchResultsView
Returns Specifies the verbosity of the product search results.
Optional. Defaults to BASIC
.
75 76 77 78 |
# File 'proto_docs/google/cloud/vision/v1p3beta1/product_search.rb', line 75 class ProductSearchParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |