<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_status/v1/keyapis_telemetry_status_device_v1.proto

namespace Keyapis\TelemetryStatus\V1;

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

/**
 * Фильтр для запроса статусов доступности устройств.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * Generated from protobuf message <code>keyapis.telemetry_status.v1.DeviceStatusFilter</code>
 */
class DeviceStatusFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По списку приборов учета
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     */
    private $device_ids;
    /**
     * По cтатусам доступности
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_status.v1.DeviceStatus.StatusType status_types = 2;</code>
     */
    private $status_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           По списку приборов учета
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $status_types
     *           По cтатусам доступности
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryStatus\V1\KeyapisTelemetryStatusDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По списку приборов учета
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceIds()
    {
        return $this->device_ids;
    }

    /**
     * По списку приборов учета
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDeviceIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->device_ids = $arr;

        return $this;
    }

    /**
     * По cтатусам доступности
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_status.v1.DeviceStatus.StatusType status_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getStatusTypes()
    {
        return $this->status_types;
    }

    /**
     * По cтатусам доступности
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_status.v1.DeviceStatus.StatusType status_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setStatusTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryStatus\V1\DeviceStatus\StatusType::class);
        $this->status_types = $arr;

        return $this;
    }

}

