Monitoring/src/V3/UptimeCheckConfig.php
public function setSelectedRegions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Monitoring\V3\UptimeCheckRegion::class);
        $this->selected_regions = $arr;

        return $this;
    }
public function setSelectedRegions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Monitoring\V3\UptimeCheckRegion::class);
        $this->selected_regions = $arr;

        return $this;
    }
public function setSelectedRegions ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: ENUM , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckRegion :: class ) ; $ this -> selected_regions = $ arr ; return $ this ; }
The list of regions from which the check will be run.
Some regions contain one location, and others contain more than one.
If this field is specified, enough regions to include a minimum of
3 locations must be provided, or an error message is returned.
Not specifying this field will result in uptime checks running from all
regions.

Generated from protobuf field <code>repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The list of regions from which the check will be run . Some regions contain one location and others contain more than one . If this field is specified enough regions to include a minimum of 3 locations must be provided or an error message is returned . Not specifying this field will result in uptime checks running from all regions .