Monitoring/src/V3/ListAlertPoliciesResponse.php
public function setAlertPolicies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\AlertPolicy::class);
        $this->alert_policies = $arr;

        return $this;
    }
public function setAlertPolicies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\AlertPolicy::class);
        $this->alert_policies = $arr;

        return $this;
    }
public function setAlertPolicies ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Monitoring \ V3 \ AlertPolicy :: class ) ; $ this -> alert_policies = $ arr ; return $ this ; }
The returned alert policies.

Generated from protobuf field <code>repeated .google.monitoring.v3.AlertPolicy alert_policies = 3;</code>
@param \Google\Cloud\Monitoring\V3\AlertPolicy[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The returned alert policies .