<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_metric_point_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.MetricPointFilter</code>
 */
class MetricPointFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По типу энергоресурса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.MetricType device_metric_point_metric_types = 1;</code>
     */
    private $device_metric_point_metric_types;
    /**
     * По типу статуса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.StatusType device_metric_point_status_types = 2;</code>
     */
    private $device_metric_point_status_types;
    /**
     * По Номеру помещения
     *
     * Generated from protobuf field <code>repeated string room_numbers = 3;</code>
     */
    private $room_numbers;
    /**
     * По Лейблу помещения
     *
     * Generated from protobuf field <code>repeated string room_labels = 4;</code>
     */
    private $room_labels;
    /**
     * По идентификаторам объекта строительства
     *
     * Generated from protobuf field <code>repeated int32 building_ids = 5;</code>
     */
    private $building_ids;
    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated string fias_ids = 6;</code>
     */
    private $fias_ids;
    /**
     * По ID привязанных через индикаторы ПУ
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 7;</code>
     */
    private $device_ids;
    /**
     * По серийным номерам привязанных через индикаторы ПУ
     *
     * Generated from protobuf field <code>repeated string device_serial_numbers = 8;</code>
     */
    private $device_serial_numbers;
    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 9;</code>
     */
    private $orpons;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_metric_point_metric_types
     *           По типу энергоресурса
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_metric_point_status_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 $building_ids
     *           По идентификаторам объекта строительства
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $fias_ids
     *           По ФИАС
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           По ID привязанных через индикаторы ПУ
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $device_serial_numbers
     *           По серийным номерам привязанных через индикаторы ПУ
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По ОРПОНам
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlMetricPointV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типу энергоресурса
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Device.MetricPoint.MetricType device_metric_point_metric_types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceMetricPointMetricTypes()
    {
        return $this->device_metric_point_metric_types;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * По Номеру помещения
     *
     * Generated from protobuf field <code>repeated string room_numbers = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoomNumbers()
    {
        return $this->room_numbers;
    }

    /**
     * По Номеру помещения
     *
     * Generated from protobuf field <code>repeated string room_numbers = 3;</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 = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRoomLabels()
    {
        return $this->room_labels;
    }

    /**
     * По Лейблу помещения
     *
     * Generated from protobuf field <code>repeated string room_labels = 4;</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 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 fias_ids = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFiasIds()
    {
        return $this->fias_ids;
    }

    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated string fias_ids = 6;</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;
    }

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

    /**
     * По ID привязанных через индикаторы ПУ
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 7;</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 string device_serial_numbers = 8;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceSerialNumbers()
    {
        return $this->device_serial_numbers;
    }

    /**
     * По серийным номерам привязанных через индикаторы ПУ
     *
     * Generated from protobuf field <code>repeated string device_serial_numbers = 8;</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 int64 orpons = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOrpons()
    {
        return $this->orpons;
    }

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 9;</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;
    }

}

