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

namespace Keyapis\TelemetryControl\V1;

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

/**
 * Фильтр для запроса приборов учета.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.DeviceFilter</code>
 */
class DeviceFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated string fias_ids = 1;</code>
     */
    private $fias_ids;
    /**
     * По типам приборов учета
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.Type types = 2;</code>
     */
    private $types;
    /**
     * По типам статусов
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.StatusType status_types = 3;</code>
     */
    private $status_types;
    /**
     * По модели счетчика
     *
     * Generated from protobuf field <code>repeated string models = 4;</code>
     */
    private $models;
    /**
     * По типам метрик
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.MetricType metric_point_metric_types = 5;</code>
     */
    private $metric_point_metric_types;
    /**
     * По номерам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_numbers = 6;</code>
     */
    private $room_numbers;
    /**
     * По лейблам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_labels = 7;</code>
     */
    private $room_labels;
    /**
     * По идентификаторам хабов
     *
     * Generated from protobuf field <code>repeated int32 parent_ids = 8;</code>
     */
    private $parent_ids;
    /**
     * По идентификаторам приборов учета.
     * Устарело, использовать метод GetDevice
     *
     * Generated from protobuf field <code>repeated int32 ids = 9 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @deprecated
     */
    private $ids;
    /**
     * По идентификатору объекта строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 10;</code>
     */
    private $building_ids;
    /**
     * По серийным номерам
     *
     * Generated from protobuf field <code>repeated string serial_numbers = 11;</code>
     */
    private $serial_numbers;
    /**
     * По ID точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string metric_point_ids = 12;</code>
     */
    private $metric_point_ids;
    /**
     * Смешанный поиск по полям serial_number, dev_eui, MAC-адрес, model, external_id
     *
     * Generated from protobuf field <code>repeated string serial_ids = 13;</code>
     */
    private $serial_ids;
    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 14;</code>
     */
    private $orpons;
    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.VendorType indicator_vendor_types = 15;</code>
     */
    private $indicator_vendor_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $fias_ids
     *           По ФИАС
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $types
     *           По типам приборов учета
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $status_types
     *           По типам статусов
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $models
     *           По модели счетчика
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $metric_point_metric_types
     *           По типам метрик
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_numbers
     *           По номерам помещений точек учета, привязанных через индикаторы
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_labels
     *           По лейблам помещений точек учета, привязанных через индикаторы
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $parent_ids
     *           По идентификаторам хабов
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $ids
     *           По идентификаторам приборов учета.
     *           Устарело, использовать метод GetDevice
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $building_ids
     *           По идентификатору объекта строительства
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $serial_numbers
     *           По серийным номерам
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $metric_point_ids
     *           По ID точек учета, привязанных через индикаторы
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $serial_ids
     *           Смешанный поиск по полям serial_number, dev_eui, MAC-адрес, model, external_id
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По ОРПОНам
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $indicator_vendor_types
     *           По посреднику получения показаний
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated string fias_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFiasIds()
    {
        return $this->fias_ids;
    }

    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated string fias_ids = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFiasIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->fias_ids = $arr;

        return $this;
    }

    /**
     * По типам приборов учета
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.Type types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTypes()
    {
        return $this->types;
    }

    /**
     * По типам приборов учета
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.Type types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Device\Type::class);
        $this->types = $arr;

        return $this;
    }

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

    /**
     * По типам статусов
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.StatusType status_types = 3;</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\TelemetryControl\V1\Device\StatusType::class);
        $this->status_types = $arr;

        return $this;
    }

    /**
     * По модели счетчика
     *
     * Generated from protobuf field <code>repeated string models = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getModels()
    {
        return $this->models;
    }

    /**
     * По модели счетчика
     *
     * Generated from protobuf field <code>repeated string models = 4;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setModels($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->models = $arr;

        return $this;
    }

    /**
     * По типам метрик
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.MetricType metric_point_metric_types = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricPointMetricTypes()
    {
        return $this->metric_point_metric_types;
    }

    /**
     * По типам метрик
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.MetricType metric_point_metric_types = 5;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricPointMetricTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Device\MetricPoint\MetricType::class);
        $this->metric_point_metric_types = $arr;

        return $this;
    }

    /**
     * По номерам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_numbers = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoomNumbers()
    {
        return $this->room_numbers;
    }

    /**
     * По номерам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_numbers = 6;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRoomNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->room_numbers = $arr;

        return $this;
    }

    /**
     * По лейблам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_labels = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoomLabels()
    {
        return $this->room_labels;
    }

    /**
     * По лейблам помещений точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string room_labels = 7;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRoomLabels($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->room_labels = $arr;

        return $this;
    }

    /**
     * По идентификаторам хабов
     *
     * Generated from protobuf field <code>repeated int32 parent_ids = 8;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getParentIds()
    {
        return $this->parent_ids;
    }

    /**
     * По идентификаторам хабов
     *
     * Generated from protobuf field <code>repeated int32 parent_ids = 8;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setParentIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->parent_ids = $arr;

        return $this;
    }

    /**
     * По идентификаторам приборов учета.
     * Устарело, использовать метод GetDevice
     *
     * Generated from protobuf field <code>repeated int32 ids = 9 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     * @deprecated
     */
    public function getIds()
    {
        @trigger_error('ids is deprecated.', E_USER_DEPRECATED);
        return $this->ids;
    }

    /**
     * По идентификаторам приборов учета.
     * Устарело, использовать метод GetDevice
     *
     * Generated from protobuf field <code>repeated int32 ids = 9 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     * @deprecated
     */
    public function setIds($var)
    {
        @trigger_error('ids is deprecated.', E_USER_DEPRECATED);
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->ids = $arr;

        return $this;
    }

    /**
     * По идентификатору объекта строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 10;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBuildingIds()
    {
        return $this->building_ids;
    }

    /**
     * По идентификатору объекта строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 10;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBuildingIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->building_ids = $arr;

        return $this;
    }

    /**
     * По серийным номерам
     *
     * Generated from protobuf field <code>repeated string serial_numbers = 11;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSerialNumbers()
    {
        return $this->serial_numbers;
    }

    /**
     * По серийным номерам
     *
     * Generated from protobuf field <code>repeated string serial_numbers = 11;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSerialNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->serial_numbers = $arr;

        return $this;
    }

    /**
     * По ID точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string metric_point_ids = 12;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMetricPointIds()
    {
        return $this->metric_point_ids;
    }

    /**
     * По ID точек учета, привязанных через индикаторы
     *
     * Generated from protobuf field <code>repeated string metric_point_ids = 12;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMetricPointIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->metric_point_ids = $arr;

        return $this;
    }

    /**
     * Смешанный поиск по полям serial_number, dev_eui, MAC-адрес, model, external_id
     *
     * Generated from protobuf field <code>repeated string serial_ids = 13;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSerialIds()
    {
        return $this->serial_ids;
    }

    /**
     * Смешанный поиск по полям serial_number, dev_eui, MAC-адрес, model, external_id
     *
     * Generated from protobuf field <code>repeated string serial_ids = 13;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSerialIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->serial_ids = $arr;

        return $this;
    }

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 14;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOrpons()
    {
        return $this->orpons;
    }

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 14;</code>
     * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOrpons($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
        $this->orpons = $arr;

        return $this;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.VendorType indicator_vendor_types = 15;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIndicatorVendorTypes()
    {
        return $this->indicator_vendor_types;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.VendorType indicator_vendor_types = 15;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIndicatorVendorTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Indicator\VendorType::class);
        $this->indicator_vendor_types = $arr;

        return $this;
    }

}

