<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/model_monitoring.proto

namespace Google\Cloud\AIPlatform\V1\ModelMonitoringAlertConfig;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The config for email alert.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig</code>
 */
class EmailAlertConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The email addresses to send the alert.
     *
     * Generated from protobuf field <code>repeated string user_emails = 1;</code>
     */
    private $user_emails;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $user_emails
     *           The email addresses to send the alert.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelMonitoring::initOnce();
        parent::__construct($data);
    }

    /**
     * The email addresses to send the alert.
     *
     * Generated from protobuf field <code>repeated string user_emails = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserEmails()
    {
        return $this->user_emails;
    }

    /**
     * The email addresses to send the alert.
     *
     * Generated from protobuf field <code>repeated string user_emails = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUserEmails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->user_emails = $arr;

        return $this;
    }

}


