<?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.Building</code>
 */
class Building extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Наименование объекта строительства
     *
     * Generated from protobuf field <code>string title = 2;</code>
     */
    protected $title = '';
    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $created_at = null;
    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $changed_at = null;
    /**
     * Смещение временной зоны объекта строительства от UTC в минутах
     *
     * Generated from protobuf field <code>int32 utc_offset = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $utc_offset = 0;
    /**
     * ФИАС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue fias_id = 6;</code>
     */
    protected $fias_id = null;
    /**
     * Принадлежность объекта строительства к МРФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;</code>
     */
    protected $mrf_type = 0;
    /**
     * Принадлежность объекта строительства к РФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.RfType rf_type = 8;</code>
     */
    protected $rf_type = 0;
    /**
     * Статус объекта строительства
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.StatusType status_type = 9;</code>
     */
    protected $status_type = 0;
    /**
     * Адрес объекта строительства
     *
     * Generated from protobuf field <code>string full_address = 10;</code>
     */
    protected $full_address = '';
    /**
     * ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 11;</code>
     */
    protected $orpon = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор
     *     @type string $title
     *           Наименование объекта строительства
     *     @type \Google\Protobuf\Timestamp $created_at
     *           Дата создания
     *     @type \Google\Protobuf\Timestamp $changed_at
     *           Дата последнего изменения.
     *           Заполняется и обновляется сервером.
     *           Заполняется при создании и изменении.
     *           Является версией объекта
     *     @type int $utc_offset
     *           Смещение временной зоны объекта строительства от UTC в минутах
     *     @type \Google\Protobuf\StringValue $fias_id
     *           ФИАС
     *     @type int $mrf_type
     *           Принадлежность объекта строительства к МРФ
     *     @type int $rf_type
     *           Принадлежность объекта строительства к РФ
     *     @type int $status_type
     *           Статус объекта строительства
     *     @type string $full_address
     *           Адрес объекта строительства
     *     @type int|string $orpon
     *           ОРПОН
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlBuildingV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Наименование объекта строительства
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Наименование объекта строительства
     *
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function hasCreatedAt()
    {
        return isset($this->created_at);
    }

    public function clearCreatedAt()
    {
        unset($this->created_at);
    }

    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->created_at = $var;

        return $this;
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getChangedAt()
    {
        return $this->changed_at;
    }

    public function hasChangedAt()
    {
        return isset($this->changed_at);
    }

    public function clearChangedAt()
    {
        unset($this->changed_at);
    }

    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении.
     * Является версией объекта
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setChangedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->changed_at = $var;

        return $this;
    }

    /**
     * Смещение временной зоны объекта строительства от UTC в минутах
     *
     * Generated from protobuf field <code>int32 utc_offset = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getUtcOffset()
    {
        return $this->utc_offset;
    }

    /**
     * Смещение временной зоны объекта строительства от UTC в минутах
     *
     * Generated from protobuf field <code>int32 utc_offset = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setUtcOffset($var)
    {
        GPBUtil::checkInt32($var);
        $this->utc_offset = $var;

        return $this;
    }

    /**
     * ФИАС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue fias_id = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getFiasId()
    {
        return $this->fias_id;
    }

    public function hasFiasId()
    {
        return isset($this->fias_id);
    }

    public function clearFiasId()
    {
        unset($this->fias_id);
    }

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

     * ФИАС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue fias_id = 6;</code>
     * @return string|null
     */
    public function getFiasIdUnwrapped()
    {
        return $this->readWrapperValue("fias_id");
    }

    /**
     * ФИАС
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue fias_id = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setFiasId($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->fias_id = $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 fias_id = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setFiasIdUnwrapped($var)
    {
        $this->writeWrapperValue("fias_id", $var);
        return $this;}

    /**
     * Принадлежность объекта строительства к МРФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;</code>
     * @return int
     */
    public function getMrfType()
    {
        return $this->mrf_type;
    }

    /**
     * Принадлежность объекта строительства к МРФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setMrfType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Building\MrfType::class);
        $this->mrf_type = $var;

        return $this;
    }

    /**
     * Принадлежность объекта строительства к РФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.RfType rf_type = 8;</code>
     * @return int
     */
    public function getRfType()
    {
        return $this->rf_type;
    }

    /**
     * Принадлежность объекта строительства к РФ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.RfType rf_type = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setRfType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Building\RfType::class);
        $this->rf_type = $var;

        return $this;
    }

    /**
     * Статус объекта строительства
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.StatusType status_type = 9;</code>
     * @return int
     */
    public function getStatusType()
    {
        return $this->status_type;
    }

    /**
     * Статус объекта строительства
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.Building.StatusType status_type = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setStatusType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\Building\StatusType::class);
        $this->status_type = $var;

        return $this;
    }

    /**
     * Адрес объекта строительства
     *
     * Generated from protobuf field <code>string full_address = 10;</code>
     * @return string
     */
    public function getFullAddress()
    {
        return $this->full_address;
    }

    /**
     * Адрес объекта строительства
     *
     * Generated from protobuf field <code>string full_address = 10;</code>
     * @param string $var
     * @return $this
     */
    public function setFullAddress($var)
    {
        GPBUtil::checkString($var, True);
        $this->full_address = $var;

        return $this;
    }

    /**
     * ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 11;</code>
     * @return int|string
     */
    public function getOrpon()
    {
        return $this->orpon;
    }

    /**
     * ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 11;</code>
     * @param int|string $var
     * @return $this
     */
    public function setOrpon($var)
    {
        GPBUtil::checkInt64($var);
        $this->orpon = $var;

        return $this;
    }

}

