Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::ProductSearchResults.
Results for a product search request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#category
def category() -> ::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory
Returns
-
(::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory) — Product category.
[Deprecated] Use
product_category
.
#category=
def category=(value) -> ::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory
Parameter
-
value (::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory) — Product category.
[Deprecated] Use
product_category
.
Returns
-
(::Google::Cloud::Vision::V1p3beta1::ProductSearchCategory) — Product category.
[Deprecated] Use
product_category
.
#index_time
def index_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
#index_time=
def index_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
Returns
- (::Google::Protobuf::Timestamp) — Timestamp of the index which provided these results. Changes made after this time are not reflected in the current results.
#product_category
def product_category() -> ::String
Returns
-
(::String) — Product category.
Supported values are
bag
andshoe
. [Deprecated]product_category
is provided in each Product.
#product_category=
def product_category=(value) -> ::String
Parameter
-
value (::String) — Product category.
Supported values are
bag
andshoe
. [Deprecated]product_category
is provided in each Product.
Returns
-
(::String) — Product category.
Supported values are
bag
andshoe
. [Deprecated]product_category
is provided in each Product.
#products
def products() -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>
Returns
- (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>) — List of detected products.
#products=
def products=(value) -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>
Parameter
- value (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>) — List of detected products.
Returns
- (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::ProductInfo>) — List of detected products.
#results
def results() -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>
Returns
- (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>) — List of results, one for each product match.
#results=
def results=(value) -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>
Parameter
- value (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>) — List of results, one for each product match.
Returns
- (::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>) — List of results, one for each product match.