Vision/src/V1/ProductSearchResults.php
public function setProductGroupedResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\ProductSearchResults\GroupedResult::class);
        $this->product_grouped_results = $arr;

        return $this;
    }
public function setProductGroupedResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\ProductSearchResults\GroupedResult::class);
        $this->product_grouped_results = $arr;

        return $this;
    }
public function setProductGroupedResults ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Vision \ V1 \ ProductSearchResults \ GroupedResult :: class ) ; $ this -> product_grouped_results = $ arr ; return $ this ; }
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.

Generated from protobuf field <code>repeated .google.cloud.vision.v1.ProductSearchResults.GroupedResult product_grouped_results = 6;</code>
@param \Google\Cloud\Vision\V1\ProductSearchResults\GroupedResult[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
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 .