Talent/src/V4beta1/CommuteFilter.php
public function setCommuteMethod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\CommuteMethod::class);
        $this->commute_method = $var;

        return $this;
    }
public function setCommuteMethod($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\CommuteMethod::class);
        $this->commute_method = $var;

        return $this;
    }
public function setCommuteMethod ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Talent \ V4beta1 \ CommuteMethod :: class ) ; $ this -> commute_method = $ var ; return $ this ; }
Required.
The method of transportation for which to calculate the commute time.

Generated from protobuf field <code>.google.cloud.talent.v4beta1.CommuteMethod commute_method = 1;</code>
@param int $var
@return $this
Required . The method of transportation for which to calculate the commute time .