Vision/src/V1/UpdateProductRequest.php
public function setProduct($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\Product::class);
        $this->product = $var;

        return $this;
    }
public function setProduct($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\Product::class);
        $this->product = $var;

        return $this;
    }
public function setProduct ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Vision \ V1 \ Product :: class ) ; $ this -> product = $ var ; return $ this ; }
The Product resource which replaces the one on the server.
product.name is immutable.

Generated from protobuf field <code>.google.cloud.vision.v1.Product product = 1;</code>
@param \Google\Cloud\Vision\V1\Product $var
@return $this
The Product resource which replaces the one on the server . product . name is immutable .