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

namespace Keyapis\AccessControl\V1;

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

/**
 * Фильтр связок помещение-устройство
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.RoomDeviceFilter</code>
 */
class RoomDeviceFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По идентификаторам квартирограмм
     *
     * Generated from protobuf field <code>repeated int32 flatgramm_ids = 1;</code>
     */
    private $flatgramm_ids;
    /**
     * По ОРПОН
     *
     * Generated from protobuf field <code>repeated int64 orpons = 2;</code>
     */
    private $orpons;
    /**
     * По номерам квартир
     *
     * Generated from protobuf field <code>repeated string room_numbers = 3;</code>
     */
    private $room_numbers;
    /**
     * По идентификаторам привязанных устройств
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 4;</code>
     */
    private $device_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $flatgramm_ids
     *           По идентификаторам квартирограмм
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По ОРПОН
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $room_numbers
     *           По номерам квартир
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           По идентификаторам привязанных устройств
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlRoomDeviceV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    /**
     * По ОРПОН
     *
     * Generated from protobuf field <code>repeated int64 orpons = 2;</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 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 int32 device_ids = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDeviceIds()
    {
        return $this->device_ids;
    }

    /**
     * По идентификаторам привязанных устройств
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 4;</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;
    }

}

