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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $holder_types
     *           По типам владельца
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $pay_types
     *           По типам оплаты
     *     @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
     *           По идентификаторам пользователей
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $company_ids
     *           По идентификаторам компаний
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $keys
     *           По кодам ключа
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlRfidV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По типам владельца
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.Rfid.HolderType holder_types = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getHolderTypes()
    {
        return $this->holder_types;
    }

    /**
     * По типам владельца
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.Rfid.HolderType holder_types = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setHolderTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\AccessControl\V1\Rfid\HolderType::class);
        $this->holder_types = $arr;

        return $this;
    }

    /**
     * По типам оплаты
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.Rfid.PayType pay_types = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPayTypes()
    {
        return $this->pay_types;
    }

    /**
     * По типам оплаты
     *
     * Generated from protobuf field <code>repeated .keyapis.access_control.v1.Rfid.PayType pay_types = 2;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPayTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\AccessControl\V1\Rfid\PayType::class);
        $this->pay_types = $arr;

        return $this;
    }

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

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

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

    /**
     * По идентификаторам пользователей
     *
     * Generated from protobuf field <code>repeated int32 user_ids = 5;</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;
    }

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

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

        return $this;
    }

    /**
     * По кодам ключа
     *
     * Generated from protobuf field <code>repeated string keys = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getKeys()
    {
        return $this->keys;
    }

    /**
     * По кодам ключа
     *
     * Generated from protobuf field <code>repeated string keys = 7;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setKeys($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->keys = $arr;

        return $this;
    }

}

