<?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.IndicatorFilter</code>
 */
class IndicatorFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По списку приборов учета
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 1;</code>
     */
    private $device_ids;
    /**
     * По типам измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.SignType sign_types = 2;</code>
     */
    private $sign_types;
    /**
     * По списку ключей индикаторов.
     * Устарело, использовать метод GetDeviceIndicator
     *
     * Generated from protobuf field <code>repeated int32 ids = 3 [deprecated = true, (.google.api.field_visibility) = {</code>
     * @deprecated
     */
    private $ids;
    /**
     * По серийным номерам привязанных ПУ
     *
     * Generated from protobuf field <code>repeated string device_serial_numbers = 4;</code>
     */
    private $device_serial_numbers;
    /**
     * По идентификаторам объектов строительства, привязанных ТУ
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 5;</code>
     */
    private $building_ids;
    /**
     * По Номерам помещений, привязанных ТУ
     *
     * 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;
    /**
     * По ID привязанных точек учета
     *
     * Generated from protobuf field <code>repeated string metric_point_ids = 8;</code>
     */
    private $metric_point_ids;
    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.VendorType indicator_vendor_types = 9;</code>
     */
    private $indicator_vendor_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 $sign_types
     *           По типам измерений
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $ids
     *           По списку ключей индикаторов.
     *           Устарело, использовать метод GetDeviceIndicator
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $device_serial_numbers
     *           По серийным номерам привязанных ПУ
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $building_ids
     *           По идентификаторам объектов строительства, привязанных ТУ
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_numbers
     *           По Номерам помещений, привязанных ТУ
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_labels
     *           По Лейблам помещений, привязанных ТУ
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $metric_point_ids
     *           По ID привязанных точек учета
     *     @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 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;
    }

    /**
     * По типам измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.SignType sign_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSignTypes()
    {
        return $this->sign_types;
    }

    /**
     * По типам измерений
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.SignType sign_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSignTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Indicator\SignType::class);
        $this->sign_types = $arr;

        return $this;
    }

    /**
     * По списку ключей индикаторов.
     * Устарело, использовать метод GetDeviceIndicator
     *
     * Generated from protobuf field <code>repeated int32 ids = 3 [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;
    }

    /**
     * По списку ключей индикаторов.
     * Устарело, использовать метод GetDeviceIndicator
     *
     * Generated from protobuf field <code>repeated int32 ids = 3 [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 string device_serial_numbers = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceSerialNumbers()
    {
        return $this->device_serial_numbers;
    }

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

        return $this;
    }

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

    /**
     * По идентификаторам объектов строительства, привязанных ТУ
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 5;</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 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;
    }

    /**
     * По ID привязанных точек учета
     *
     * Generated from protobuf field <code>repeated string metric_point_ids = 8;</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 = 8;</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;
    }

    /**
     * По посреднику получения показаний
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Indicator.VendorType indicator_vendor_types = 9;</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 = 9;</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;
    }

}

