Vision/src/V1/ProductSearchParams.php
public function setProductCategories($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->product_categories = $arr;

        return $this;
    }
public function setProductCategories($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->product_categories = $arr;

        return $this;
    }
public function setProductCategories ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> product_categories = $ arr ; return $ this ; }
The list of product categories to search in. Currently, we only consider
the first category, and either "homegoods", "apparel", or "toys" should be
specified.

Generated from protobuf field <code>repeated string product_categories = 7;</code>
@param string[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The list of product categories to search in . Currently we only consider the first category and either homegoods apparel or toys should be specified .