<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: deviceapis/device/v1/deviceapis_device_room_v1.proto

namespace Deviceapis\Device\V1;

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

/**
 * Фильтр квартир.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ
 *
 * Generated from protobuf message <code>deviceapis.device.v1.RoomFilter</code>
 */
class RoomFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По номерам квартир.
     * При пустом массиве удалятся все квартиры
     *
     * Generated from protobuf field <code>repeated string room_numbers = 1;</code>
     */
    private $room_numbers;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_numbers
     *           По номерам квартир.
     *           При пустом массиве удалятся все квартиры
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Deviceapis\Device\V1\DeviceapisDeviceRoomV1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * По номерам квартир.
     * При пустом массиве удалятся все квартиры
     *
     * Generated from protobuf field <code>repeated string room_numbers = 1;</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;
    }

}

