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

namespace Keyapis\IotConnect\V1;

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

/**
 * Объект Модель устройства
 *
 * Generated from protobuf message <code>keyapis.iot_connect.v1.Model</code>
 */
class Model extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор модели
     *
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Производитель
     *
     * Generated from protobuf field <code>string manufacturer = 2;</code>
     */
    protected $manufacturer = '';
    /**
     * Название модели
     *
     * Generated from protobuf field <code>string model = 3;</code>
     */
    protected $model = '';
    /**
     * Версия оборудования
     *
     * Generated from protobuf field <code>string hw_version = 4;</code>
     */
    protected $hw_version = '';
    /**
     * Версия прошивки
     *
     * Generated from protobuf field <code>string sw_version = 5;</code>
     */
    protected $sw_version = '';
    /**
     * Описание
     *
     * Generated from protobuf field <code>string description = 6;</code>
     */
    protected $description = '';
    /**
     * Категория устройства
     *
     * Generated from protobuf field <code>string category = 7;</code>
     */
    protected $category = '';
    /**
     * Список функций
     *
     * Generated from protobuf field <code>repeated .keyapis.iot_connect.v1.Model.FeatureType feature_types = 8 [json_name = "features"];</code>
     */
    private $feature_types;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *           Идентификатор модели
     *     @type string $manufacturer
     *           Производитель
     *     @type string $model
     *           Название модели
     *     @type string $hw_version
     *           Версия оборудования
     *     @type string $sw_version
     *           Версия прошивки
     *     @type string $description
     *           Описание
     *     @type string $category
     *           Категория устройства
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $feature_types
     *           Список функций
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\IotConnect\V1\KeyapisIotConnectCallbackV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Производитель
     *
     * Generated from protobuf field <code>string manufacturer = 2;</code>
     * @return string
     */
    public function getManufacturer()
    {
        return $this->manufacturer;
    }

    /**
     * Производитель
     *
     * Generated from protobuf field <code>string manufacturer = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setManufacturer($var)
    {
        GPBUtil::checkString($var, True);
        $this->manufacturer = $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 hw_version = 4;</code>
     * @return string
     */
    public function getHwVersion()
    {
        return $this->hw_version;
    }

    /**
     * Версия оборудования
     *
     * Generated from protobuf field <code>string hw_version = 4;</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 = 5;</code>
     * @return string
     */
    public function getSwVersion()
    {
        return $this->sw_version;
    }

    /**
     * Версия прошивки
     *
     * Generated from protobuf field <code>string sw_version = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setSwVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->sw_version = $var;

        return $this;
    }

    /**
     * Описание
     *
     * Generated from protobuf field <code>string description = 6;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Описание
     *
     * Generated from protobuf field <code>string description = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * Категория устройства
     *
     * Generated from protobuf field <code>string category = 7;</code>
     * @return string
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Категория устройства
     *
     * Generated from protobuf field <code>string category = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setCategory($var)
    {
        GPBUtil::checkString($var, True);
        $this->category = $var;

        return $this;
    }

    /**
     * Список функций
     *
     * Generated from protobuf field <code>repeated .keyapis.iot_connect.v1.Model.FeatureType feature_types = 8 [json_name = "features"];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getFeatureTypes()
    {
        return $this->feature_types;
    }

    /**
     * Список функций
     *
     * Generated from protobuf field <code>repeated .keyapis.iot_connect.v1.Model.FeatureType feature_types = 8 [json_name = "features"];</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setFeatureTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Keyapis\IotConnect\V1\Model\FeatureType::class);
        $this->feature_types = $arr;

        return $this;
    }

}

