<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/access_control/v1/keyapis_access_control_building_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.BuildingFilter</code>
 */
class BuildingFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По идентификаторам МРФ
     *
     * Generated from protobuf field <code>repeated int32 mrf_ids = 1;</code>
     */
    private $mrf_ids;
    /**
     * По идентификаторам РФ
     *
     * Generated from protobuf field <code>repeated int32 rf_ids = 2;</code>
     */
    private $rf_ids;
    /**
     * По идентификаторам устройств
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 3;</code>
     */
    private $device_ids;
    /**
     * По идентификаторам квартирограмм
     *
     * Generated from protobuf field <code>repeated int32 flatgramm_ids = 4;</code>
     */
    private $flatgramm_ids;
    /**
     * По орпонам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 5;</code>
     */
    private $orpons;
    /**
     * По тексту.
     * Если значение не передано, поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Улица
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 6;</code>
     */
    protected $text = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $mrf_ids
     *           По идентификаторам МРФ
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $rf_ids
     *           По идентификаторам РФ
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $device_ids
     *           По идентификаторам устройств
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $flatgramm_ids
     *           По идентификаторам квартирограмм
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По орпонам
     *     @type \Google\Protobuf\StringValue $text
     *           По тексту.
     *           Если значение не передано, поиск по нему не производится.
     *           # Диапазон: 3..64.
     *           # Поиск производится по полям:
     *           # - Улица
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlBuildingV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * По идентификаторам устройств
     *
     * Generated from protobuf field <code>repeated int32 device_ids = 3;</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 int32 flatgramm_ids = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFlatgrammIds()
    {
        return $this->flatgramm_ids;
    }

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

    /**
     * По орпонам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 5;</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;
    }

    /**
     * По тексту.
     * Если значение не передано, поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Улица
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getText()
    {
        return $this->text;
    }

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

    /**
     * Returns the unboxed value from <code>getText()</code>

     * По тексту.
     * Если значение не передано, поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Улица
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 6;</code>
     * @return string|null
     */
    public function getTextUnwrapped()
    {
        return $this->readWrapperValue("text");
    }

    /**
     * По тексту.
     * Если значение не передано, поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Улица
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->text = $var;

        return $this;
    }

    /**
     * Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

     * По тексту.
     * Если значение не передано, поиск по нему не производится.
     * # Диапазон: 3..64.
     * # Поиск производится по полям:
     * # - Улица
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue text = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTextUnwrapped($var)
    {
        $this->writeWrapperValue("text", $var);
        return $this;}

}

