<?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.Company</code>
 */
class Company extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор компании.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Идентификатор компании в системе Видеокомфорт
     *
     * Generated from protobuf field <code>int64 vc_company_id = 2;</code>
     */
    protected $vc_company_id = 0;
    /**
     * Наименование компании
     *
     * Generated from protobuf field <code>string name = 3;</code>
     */
    protected $name = '';
    /**
     * ИНН
     *
     * Generated from protobuf field <code>string inn = 4;</code>
     */
    protected $inn = '';
    /**
     * КПП
     *
     * Generated from protobuf field <code>string kpp = 5;</code>
     */
    protected $kpp = '';
    /**
     * ОГРН
     *
     * Generated from protobuf field <code>string ogrn = 6;</code>
     */
    protected $ogrn = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор компании.
     *           # Диапазон: 1..2147483647
     *     @type int|string $vc_company_id
     *           Идентификатор компании в системе Видеокомфорт
     *     @type string $name
     *           Наименование компании
     *     @type string $inn
     *           ИНН
     *     @type string $kpp
     *           КПП
     *     @type string $ogrn
     *           ОГРН
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Vc\V1\KeyapisVcCameraLocationDataV1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Идентификатор компании.
     * # Диапазон: 1..2147483647
     *
     * 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>int64 vc_company_id = 2;</code>
     * @return int|string
     */
    public function getVcCompanyId()
    {
        return $this->vc_company_id;
    }

    /**
     * Идентификатор компании в системе Видеокомфорт
     *
     * Generated from protobuf field <code>int64 vc_company_id = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setVcCompanyId($var)
    {
        GPBUtil::checkInt64($var);
        $this->vc_company_id = $var;

        return $this;
    }

    /**
     * Наименование компании
     *
     * Generated from protobuf field <code>string name = 3;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Наименование компании
     *
     * Generated from protobuf field <code>string name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * ИНН
     *
     * Generated from protobuf field <code>string inn = 4;</code>
     * @return string
     */
    public function getInn()
    {
        return $this->inn;
    }

    /**
     * ИНН
     *
     * Generated from protobuf field <code>string inn = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setInn($var)
    {
        GPBUtil::checkString($var, True);
        $this->inn = $var;

        return $this;
    }

    /**
     * КПП
     *
     * Generated from protobuf field <code>string kpp = 5;</code>
     * @return string
     */
    public function getKpp()
    {
        return $this->kpp;
    }

    /**
     * КПП
     *
     * Generated from protobuf field <code>string kpp = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setKpp($var)
    {
        GPBUtil::checkString($var, True);
        $this->kpp = $var;

        return $this;
    }

    /**
     * ОГРН
     *
     * Generated from protobuf field <code>string ogrn = 6;</code>
     * @return string
     */
    public function getOgrn()
    {
        return $this->ogrn;
    }

    /**
     * ОГРН
     *
     * Generated from protobuf field <code>string ogrn = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setOgrn($var)
    {
        GPBUtil::checkString($var, True);
        $this->ogrn = $var;

        return $this;
    }

}

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

