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

namespace Keyapis\Vc\V1\CameraLocationData;

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

/**
 * Дом
 *
 * Generated from protobuf message <code>keyapis.vc.v1.CameraLocationData.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>int32 rf_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $rf_id = 0;
    /**
     * Идентификатор МРФ
     *
     * Generated from protobuf field <code>int32 mrf_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $mrf_id = 0;
    /**
     * ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $orpon = 0;
    /**
     * Город
     *
     * Generated from protobuf field <code>string city = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $city = '';
    /**
     * Улица
     *
     * Generated from protobuf field <code>string street = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $street = '';
    /**
     * Номер дома
     *
     * Generated from protobuf field <code>string number = 7;</code>
     */
    protected $number = '';
    /**
     * Корпус
     *
     * Generated from protobuf field <code>string part = 8;</code>
     */
    protected $part = '';
    /**
     * Идентификатор компании
     *
     * Generated from protobuf field <code>int32 company_id = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $company_id = 0;
    /**
     * Префикс
     *
     * Generated from protobuf field <code>string prefix = 10;</code>
     */
    protected $prefix = '';
    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $created_at = null;
    /**
     * Дата удаления.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deleted_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $deleted_at = null;
    /**
     * Идентификатор квартирограммы
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 13 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $flatgramm_id = 0;
    /**
     * ОРПОН города, в котором находится дом
     *
     * Generated from protobuf field <code>int64 city_orpon = 14;</code>
     */
    protected $city_orpon = 0;
    /**
     * Идентификатор в федеральной информационной адресной системе.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string fias = 15;</code>
     */
    protected $fias = '';
    /**
     * Наименования района.
     * # Диапазон: 0..200
     *
     * Generated from protobuf field <code>string district = 16;</code>
     */
    protected $district = '';
    /**
     * Уникальный номер адреса.
     * # Диапазон: 0..9999999999
     *
     * Generated from protobuf field <code>string unom = 17;</code>
     */
    protected $unom = '';
    /**
     * ОРПОН региона
     *
     * Generated from protobuf field <code>int64 region_orpon = 18;</code>
     */
    protected $region_orpon = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор дома
     *     @type int $rf_id
     *           Идентификатор РФ
     *     @type int $mrf_id
     *           Идентификатор МРФ
     *     @type int|string $orpon
     *           ОРПОН
     *     @type string $city
     *           Город
     *     @type string $street
     *           Улица
     *     @type string $number
     *           Номер дома
     *     @type string $part
     *           Корпус
     *     @type int $company_id
     *           Идентификатор компании
     *     @type string $prefix
     *           Префикс
     *     @type \Google\Protobuf\Timestamp $created_at
     *           Дата создания.
     *           # Тип: DateTime
     *     @type \Google\Protobuf\Timestamp $deleted_at
     *           Дата удаления.
     *           # Тип: DateTime
     *     @type int $flatgramm_id
     *           Идентификатор квартирограммы
     *     @type int|string $city_orpon
     *           ОРПОН города, в котором находится дом
     *     @type string $fias
     *           Идентификатор в федеральной информационной адресной системе.
     *           Тип: Guid
     *     @type string $district
     *           Наименования района.
     *           # Диапазон: 0..200
     *     @type string $unom
     *           Уникальный номер адреса.
     *           # Диапазон: 0..9999999999
     *     @type int|string $region_orpon
     *           ОРПОН региона
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraLocationDataV1::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>int32 rf_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getRfId()
    {
        return $this->rf_id;
    }

    /**
     * Идентификатор РФ
     *
     * Generated from protobuf field <code>int32 rf_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setRfId($var)
    {
        GPBUtil::checkInt32($var);
        $this->rf_id = $var;

        return $this;
    }

    /**
     * Идентификатор МРФ
     *
     * Generated from protobuf field <code>int32 mrf_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getMrfId()
    {
        return $this->mrf_id;
    }

    /**
     * Идентификатор МРФ
     *
     * Generated from protobuf field <code>int32 mrf_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setMrfId($var)
    {
        GPBUtil::checkInt32($var);
        $this->mrf_id = $var;

        return $this;
    }

    /**
     * ОРПОН
     *
     * Generated from protobuf field <code>int64 orpon = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getOrpon()
    {
        return $this->orpon;
    }

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

        return $this;
    }

    /**
     * Город
     *
     * Generated from protobuf field <code>string city = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCity()
    {
        return $this->city;
    }

    /**
     * Город
     *
     * Generated from protobuf field <code>string city = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCity($var)
    {
        GPBUtil::checkString($var, True);
        $this->city = $var;

        return $this;
    }

    /**
     * Улица
     *
     * Generated from protobuf field <code>string street = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getStreet()
    {
        return $this->street;
    }

    /**
     * Улица
     *
     * Generated from protobuf field <code>string street = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setStreet($var)
    {
        GPBUtil::checkString($var, True);
        $this->street = $var;

        return $this;
    }

    /**
     * Номер дома
     *
     * Generated from protobuf field <code>string number = 7;</code>
     * @return string
     */
    public function getNumber()
    {
        return $this->number;
    }

    /**
     * Номер дома
     *
     * Generated from protobuf field <code>string number = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->number = $var;

        return $this;
    }

    /**
     * Корпус
     *
     * Generated from protobuf field <code>string part = 8;</code>
     * @return string
     */
    public function getPart()
    {
        return $this->part;
    }

    /**
     * Корпус
     *
     * Generated from protobuf field <code>string part = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setPart($var)
    {
        GPBUtil::checkString($var, True);
        $this->part = $var;

        return $this;
    }

    /**
     * Идентификатор компании
     *
     * Generated from protobuf field <code>int32 company_id = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getCompanyId()
    {
        return $this->company_id;
    }

    /**
     * Идентификатор компании
     *
     * Generated from protobuf field <code>int32 company_id = 9 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setCompanyId($var)
    {
        GPBUtil::checkInt32($var);
        $this->company_id = $var;

        return $this;
    }

    /**
     * Префикс
     *
     * Generated from protobuf field <code>string prefix = 10;</code>
     * @return string
     */
    public function getPrefix()
    {
        return $this->prefix;
    }

    /**
     * Префикс
     *
     * Generated from protobuf field <code>string prefix = 10;</code>
     * @param string $var
     * @return $this
     */
    public function setPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->prefix = $var;

        return $this;
    }

    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 11 [(.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);
    }

    /**
     * Дата создания.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 11 [(.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;
    }

    /**
     * Дата удаления.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deleted_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getDeletedAt()
    {
        return $this->deleted_at;
    }

    public function hasDeletedAt()
    {
        return isset($this->deleted_at);
    }

    public function clearDeletedAt()
    {
        unset($this->deleted_at);
    }

    /**
     * Дата удаления.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp deleted_at = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setDeletedAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->deleted_at = $var;

        return $this;
    }

    /**
     * Идентификатор квартирограммы
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 13 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getFlatgrammId()
    {
        return $this->flatgramm_id;
    }

    /**
     * Идентификатор квартирограммы
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 13 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setFlatgrammId($var)
    {
        GPBUtil::checkInt32($var);
        $this->flatgramm_id = $var;

        return $this;
    }

    /**
     * ОРПОН города, в котором находится дом
     *
     * Generated from protobuf field <code>int64 city_orpon = 14;</code>
     * @return int|string
     */
    public function getCityOrpon()
    {
        return $this->city_orpon;
    }

    /**
     * ОРПОН города, в котором находится дом
     *
     * Generated from protobuf field <code>int64 city_orpon = 14;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCityOrpon($var)
    {
        GPBUtil::checkInt64($var);
        $this->city_orpon = $var;

        return $this;
    }

    /**
     * Идентификатор в федеральной информационной адресной системе.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string fias = 15;</code>
     * @return string
     */
    public function getFias()
    {
        return $this->fias;
    }

    /**
     * Идентификатор в федеральной информационной адресной системе.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string fias = 15;</code>
     * @param string $var
     * @return $this
     */
    public function setFias($var)
    {
        GPBUtil::checkString($var, True);
        $this->fias = $var;

        return $this;
    }

    /**
     * Наименования района.
     * # Диапазон: 0..200
     *
     * Generated from protobuf field <code>string district = 16;</code>
     * @return string
     */
    public function getDistrict()
    {
        return $this->district;
    }

    /**
     * Наименования района.
     * # Диапазон: 0..200
     *
     * Generated from protobuf field <code>string district = 16;</code>
     * @param string $var
     * @return $this
     */
    public function setDistrict($var)
    {
        GPBUtil::checkString($var, True);
        $this->district = $var;

        return $this;
    }

    /**
     * Уникальный номер адреса.
     * # Диапазон: 0..9999999999
     *
     * Generated from protobuf field <code>string unom = 17;</code>
     * @return string
     */
    public function getUnom()
    {
        return $this->unom;
    }

    /**
     * Уникальный номер адреса.
     * # Диапазон: 0..9999999999
     *
     * Generated from protobuf field <code>string unom = 17;</code>
     * @param string $var
     * @return $this
     */
    public function setUnom($var)
    {
        GPBUtil::checkString($var, True);
        $this->unom = $var;

        return $this;
    }

    /**
     * ОРПОН региона
     *
     * Generated from protobuf field <code>int64 region_orpon = 18;</code>
     * @return int|string
     */
    public function getRegionOrpon()
    {
        return $this->region_orpon;
    }

    /**
     * ОРПОН региона
     *
     * Generated from protobuf field <code>int64 region_orpon = 18;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRegionOrpon($var)
    {
        GPBUtil::checkInt64($var);
        $this->region_orpon = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Building::class, \Keyapis\Vc\V1\CameraLocationData_Building::class);

