<?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;

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

/**
 * Данные o местонахождении камеры
 *
 * Generated from protobuf message <code>keyapis.vc.v1.CameraLocationData</code>
 */
class CameraLocationData extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор видеопотока в системе Видеокомфорт.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uid = '';
    /**
     * Тип устройства.
     * # Тип: byte
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.DeviceType device_type = 2;</code>
     */
    protected $device_type = 0;
    /**
     * Модель устройства
     *
     * Generated from protobuf field <code>string model = 3;</code>
     */
    protected $model = '';
    /**
     * Серийный номер устройства
     *
     * Generated from protobuf field <code>string serial_number = 4;</code>
     */
    protected $serial_number = '';
    /**
     * Версия аппаратного обеспечения
     *
     * Generated from protobuf field <code>string hw_version = 5;</code>
     */
    protected $hw_version = '';
    /**
     * Версия программного обеспечения
     *
     * Generated from protobuf field <code>string sw_version = 6;</code>
     */
    protected $sw_version = '';
    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac = 7;</code>
     */
    protected $mac = '';
    /**
     * Наименование устройства.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 8;</code>
     */
    protected $title = '';
    /**
     * Сетевой адрес.
     * # Диапазон: 0..250
     *
     * Generated from protobuf field <code>string host = 9;</code>
     */
    protected $host = '';
    /**
     * Статус устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.StatusType status_type = 10;</code>
     */
    protected $status_type = 0;
    /**
     * Номер подъезда.
     * # Диапазон: 1..100
     *
     * Generated from protobuf field <code>repeated int32 entrance_numbers = 11;</code>
     */
    private $entrance_numbers;
    /**
     * Идентификатор квартирограммы.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 12;</code>
     */
    protected $flatgramm_id = 0;
    /**
     * Компания владелец устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.Company company = 13;</code>
     */
    protected $company = null;
    /**
     * Массив домов камеры
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.CameraLocationData.Building buildings = 14;</code>
     */
    private $buildings;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uid
     *           Идентификатор видеопотока в системе Видеокомфорт.
     *           Тип: Guid
     *     @type int $device_type
     *           Тип устройства.
     *           # Тип: byte
     *     @type string $model
     *           Модель устройства
     *     @type string $serial_number
     *           Серийный номер устройства
     *     @type string $hw_version
     *           Версия аппаратного обеспечения
     *     @type string $sw_version
     *           Версия программного обеспечения
     *     @type string $mac
     *           MAC-адрес.
     *           # Диапазон: 17..17.
     *           # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *     @type string $title
     *           Наименование устройства.
     *           # Диапазон: 3..256
     *     @type string $host
     *           Сетевой адрес.
     *           # Диапазон: 0..250
     *     @type int $status_type
     *           Статус устройства
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $entrance_numbers
     *           Номер подъезда.
     *           # Диапазон: 1..100
     *     @type int $flatgramm_id
     *           Идентификатор квартирограммы.
     *           # Диапазон: 1..2147483647
     *     @type \Keyapis\Vc\V1\CameraLocationData\Company $company
     *           Компания владелец устройства
     *     @type array<\Keyapis\Vc\V1\CameraLocationData\Building>|\Google\Protobuf\Internal\RepeatedField $buildings
     *           Массив домов камеры
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraLocationDataV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор видеопотока в системе Видеокомфорт.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Идентификатор видеопотока в системе Видеокомфорт.
     * Тип: Guid
     *
     * Generated from protobuf field <code>string uid = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->uid = $var;

        return $this;
    }

    /**
     * Тип устройства.
     * # Тип: byte
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.DeviceType device_type = 2;</code>
     * @return int
     */
    public function getDeviceType()
    {
        return $this->device_type;
    }

    /**
     * Тип устройства.
     * # Тип: byte
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.DeviceType device_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDeviceType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Vc\V1\CameraLocationData\DeviceType::class);
        $this->device_type = $var;

        return $this;
    }

    /**
     * Модель устройства
     *
     * Generated from protobuf field <code>string model = 3;</code>
     * @return string
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * Модель устройства
     *
     * Generated from protobuf field <code>string model = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->model = $var;

        return $this;
    }

    /**
     * Серийный номер устройства
     *
     * Generated from protobuf field <code>string serial_number = 4;</code>
     * @return string
     */
    public function getSerialNumber()
    {
        return $this->serial_number;
    }

    /**
     * Серийный номер устройства
     *
     * Generated from protobuf field <code>string serial_number = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setSerialNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->serial_number = $var;

        return $this;
    }

    /**
     * Версия аппаратного обеспечения
     *
     * Generated from protobuf field <code>string hw_version = 5;</code>
     * @return string
     */
    public function getHwVersion()
    {
        return $this->hw_version;
    }

    /**
     * Версия аппаратного обеспечения
     *
     * Generated from protobuf field <code>string hw_version = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setHwVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->hw_version = $var;

        return $this;
    }

    /**
     * Версия программного обеспечения
     *
     * Generated from protobuf field <code>string sw_version = 6;</code>
     * @return string
     */
    public function getSwVersion()
    {
        return $this->sw_version;
    }

    /**
     * Версия программного обеспечения
     *
     * Generated from protobuf field <code>string sw_version = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setSwVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->sw_version = $var;

        return $this;
    }

    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac = 7;</code>
     * @return string
     */
    public function getMac()
    {
        return $this->mac;
    }

    /**
     * MAC-адрес.
     * # Диапазон: 17..17.
     * # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
     *
     * Generated from protobuf field <code>string mac = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setMac($var)
    {
        GPBUtil::checkString($var, True);
        $this->mac = $var;

        return $this;
    }

    /**
     * Наименование устройства.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 8;</code>
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Наименование устройства.
     * # Диапазон: 3..256
     *
     * Generated from protobuf field <code>string title = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $var;

        return $this;
    }

    /**
     * Сетевой адрес.
     * # Диапазон: 0..250
     *
     * Generated from protobuf field <code>string host = 9;</code>
     * @return string
     */
    public function getHost()
    {
        return $this->host;
    }

    /**
     * Сетевой адрес.
     * # Диапазон: 0..250
     *
     * Generated from protobuf field <code>string host = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setHost($var)
    {
        GPBUtil::checkString($var, True);
        $this->host = $var;

        return $this;
    }

    /**
     * Статус устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.StatusType status_type = 10;</code>
     * @return int
     */
    public function getStatusType()
    {
        return $this->status_type;
    }

    /**
     * Статус устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.StatusType status_type = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setStatusType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\Vc\V1\CameraLocationData\StatusType::class);
        $this->status_type = $var;

        return $this;
    }

    /**
     * Номер подъезда.
     * # Диапазон: 1..100
     *
     * Generated from protobuf field <code>repeated int32 entrance_numbers = 11;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEntranceNumbers()
    {
        return $this->entrance_numbers;
    }

    /**
     * Номер подъезда.
     * # Диапазон: 1..100
     *
     * Generated from protobuf field <code>repeated int32 entrance_numbers = 11;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEntranceNumbers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->entrance_numbers = $arr;

        return $this;
    }

    /**
     * Идентификатор квартирограммы.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 12;</code>
     * @return int
     */
    public function getFlatgrammId()
    {
        return $this->flatgramm_id;
    }

    /**
     * Идентификатор квартирограммы.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 flatgramm_id = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setFlatgrammId($var)
    {
        GPBUtil::checkInt32($var);
        $this->flatgramm_id = $var;

        return $this;
    }

    /**
     * Компания владелец устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.Company company = 13;</code>
     * @return \Keyapis\Vc\V1\CameraLocationData\Company|null
     */
    public function getCompany()
    {
        return $this->company;
    }

    public function hasCompany()
    {
        return isset($this->company);
    }

    public function clearCompany()
    {
        unset($this->company);
    }

    /**
     * Компания владелец устройства
     *
     * Generated from protobuf field <code>.keyapis.vc.v1.CameraLocationData.Company company = 13;</code>
     * @param \Keyapis\Vc\V1\CameraLocationData\Company $var
     * @return $this
     */
    public function setCompany($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Vc\V1\CameraLocationData\Company::class);
        $this->company = $var;

        return $this;
    }

    /**
     * Массив домов камеры
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.CameraLocationData.Building buildings = 14;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBuildings()
    {
        return $this->buildings;
    }

    /**
     * Массив домов камеры
     *
     * Generated from protobuf field <code>repeated .keyapis.vc.v1.CameraLocationData.Building buildings = 14;</code>
     * @param array<\Keyapis\Vc\V1\CameraLocationData\Building>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBuildings($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Keyapis\Vc\V1\CameraLocationData\Building::class);
        $this->buildings = $arr;

        return $this;
    }

}

