<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/access_control/v1/keyapis_access_control_room_user_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.RoomUserFilter</code>
 */
class RoomUserFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 1;</code>
     */
    private $orpons;
    /**
     * По номерам квартир
     *
     * Generated from protobuf field <code>repeated string room_numbers = 2;</code>
     */
    private $room_numbers;
    /**
     * По идентификаторам пользователей
     *
     * Generated from protobuf field <code>repeated int32 user_ids = 3;</code>
     */
    private $user_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @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 $user_ids
     *           По идентификаторам пользователей
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlRoomUserV1::initOnce();
        parent::__construct($data);
    }

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

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

    /**
     * По номерам квартир
     *
     * Generated from protobuf field <code>repeated string room_numbers = 2;</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 user_ids = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getUserIds()
    {
        return $this->user_ids;
    }

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

        return $this;
    }

}

