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

namespace Keyapis\TelemetryControl\V1;

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

/**
 * Фильтр для запроса объектов строительства.
 * При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ.
 * При передаче нескольких разных параметров фильтра они работают в выборке через И
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.BuildingFilter</code>
 */
class BuildingFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated .google.protobuf.StringValue fias_id = 1;</code>
     */
    private $fias_id;
    /**
     * По заголовку
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 2;</code>
     */
    protected $title = null;
    /**
     * По нижней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp after_created_at = 3;</code>
     */
    protected $after_created_at = null;
    /**
     * По верхней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp before_created_at = 4;</code>
     */
    protected $before_created_at = null;
    /**
     * По МРФ (Макрорегион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;</code>
     */
    private $mrf_types;
    /**
     * По РФ (Регион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;</code>
     */
    private $rf_types;
    /**
     * По статусам объекта строительства
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.StatusType status_types = 7;</code>
     */
    private $status_types;
    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 8;</code>
     */
    private $orpons;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Protobuf\StringValue>|\Google\Protobuf\Internal\RepeatedField $fias_id
     *           По ФИАС
     *     @type \Google\Protobuf\StringValue $title
     *           По заголовку
     *     @type \Google\Protobuf\Timestamp $after_created_at
     *           По нижней границе дате создания
     *     @type \Google\Protobuf\Timestamp $before_created_at
     *           По верхней границе дате создания
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $mrf_types
     *           По МРФ (Макрорегион)
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $rf_types
     *           По РФ (Регион)
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $status_types
     *           По статусам объекта строительства
     *     @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $orpons
     *           По ОРПОНам
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlBuildingV1::initOnce();
        parent::__construct($data);
    }

    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated .google.protobuf.StringValue fias_id = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFiasId()
    {
        return $this->fias_id;
    }

    /**
     * По ФИАС
     *
     * Generated from protobuf field <code>repeated .google.protobuf.StringValue fias_id = 1;</code>
     * @param array<\Google\Protobuf\StringValue>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFiasId($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\StringValue::class);
        $this->fias_id = $arr;

        return $this;
    }

    /**
     * По заголовку
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 2;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getTitle()
    {
        return $this->title;
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

     * По заголовку
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 2;</code>
     * @return string|null
     */
    public function getTitleUnwrapped()
    {
        return $this->readWrapperValue("title");
    }

    /**
     * По заголовку
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 2;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->title = $var;

        return $this;
    }

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

     * По заголовку
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 2;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTitleUnwrapped($var)
    {
        $this->writeWrapperValue("title", $var);
        return $this;}

    /**
     * По нижней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp after_created_at = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getAfterCreatedAt()
    {
        return $this->after_created_at;
    }

    public function hasAfterCreatedAt()
    {
        return isset($this->after_created_at);
    }

    public function clearAfterCreatedAt()
    {
        unset($this->after_created_at);
    }

    /**
     * По нижней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp after_created_at = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setAfterCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->after_created_at = $var;

        return $this;
    }

    /**
     * По верхней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp before_created_at = 4;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getBeforeCreatedAt()
    {
        return $this->before_created_at;
    }

    public function hasBeforeCreatedAt()
    {
        return isset($this->before_created_at);
    }

    public function clearBeforeCreatedAt()
    {
        unset($this->before_created_at);
    }

    /**
     * По верхней границе дате создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp before_created_at = 4;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setBeforeCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->before_created_at = $var;

        return $this;
    }

    /**
     * По МРФ (Макрорегион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMrfTypes()
    {
        return $this->mrf_types;
    }

    /**
     * По МРФ (Макрорегион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMrfTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Building\MrfType::class);
        $this->mrf_types = $arr;

        return $this;
    }

    /**
     * По РФ (Регион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRfTypes()
    {
        return $this->rf_types;
    }

    /**
     * По РФ (Регион)
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRfTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Building\RfType::class);
        $this->rf_types = $arr;

        return $this;
    }

    /**
     * По статусам объекта строительства
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.StatusType status_types = 7;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getStatusTypes()
    {
        return $this->status_types;
    }

    /**
     * По статусам объекта строительства
     *
     * Generated from protobuf field <code>repeated .keyapis.telemetry_control.v1.Building.StatusType status_types = 7;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setStatusTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\TelemetryControl\V1\Building\StatusType::class);
        $this->status_types = $arr;

        return $this;
    }

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

    /**
     * По ОРПОНам
     *
     * Generated from protobuf field <code>repeated int64 orpons = 8;</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;
    }

}

