Monitoring/src/V3/UpdateAlertPolicyRequest.php
public function setAlertPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\AlertPolicy::class);
        $this->alert_policy = $var;

        return $this;
    }
public function setAlertPolicy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\AlertPolicy::class);
        $this->alert_policy = $var;

        return $this;
    }
public function setAlertPolicy ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ AlertPolicy :: class ) ; $ this -> alert_policy = $ var ; return $ this ; }
Required. The updated alerting policy or the updated values for the
fields listed in `update_mask`.
If `update_mask` is not empty, any fields in this policy that are
not in `update_mask` are ignored.

Generated from protobuf field <code>.google.monitoring.v3.AlertPolicy alert_policy = 3;</code>
@param \Google\Cloud\Monitoring\V3\AlertPolicy $var
@return $this
Required . The updated alerting policy or the updated values for the fields listed in update_mask . If update_mask is not empty any fields in this policy that are not in update_mask are ignored .