# Cloud Vision V1p3beta1 API - Class Google::Cloud::Vision::V1p3beta1::ProductSearchResults (v0.20.0)

0.20.0 (latest) 0.19.1 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.1 0.12.2 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.0 0.5.5 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

### #index_time

    def index_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Protobuf-Timestamp)) --- Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.

### #index_time=

    def index_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Protobuf-Timestamp)) --- Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Protobuf-Timestamp)) --- Timestamp of the index which provided these results. Products added to the product set and products removed from the product set after this time are not reflected in the current results.

### #product_grouped_results

    def product_grouped_results() -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult>

**Returns**

- (::Array\<[::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-ProductSearchResults-GroupedResult)\>) --- List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

### #product_grouped_results=

    def product_grouped_results=(value) -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-ProductSearchResults-GroupedResult)\>) --- List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.
**Returns**

- (::Array\<[::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::GroupedResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-ProductSearchResults-GroupedResult)\>) --- List of results grouped by products detected in the query image. Each entry corresponds to one bounding polygon in the query image, and contains the matching products specific to that region. There may be duplicate product matches in the union of all the per-product results.

### #results

    def results() -> ::Array<::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result>

**Returns**

- (::Array\<[::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-ProductSearchResults-Result)\>) --- List of results, one for each product match.
**Returns**

- (::Array\<[::Google::Cloud::Vision::V1p3beta1::ProductSearchResults::Result](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p3beta1/latest/Google-Cloud-Vision-V1p3beta1-ProductSearchResults-Result)\>) --- List of results, one for each product match.