<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_dictionary_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.DictionaryDeviceModel</code>
 */
class DictionaryDeviceModel extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор
     *
     * Generated from protobuf field <code>int32 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Дата создания
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $created_at = null;
    /**
     * Дата последнего изменения.
     * Заполняется и обновляется сервером.
     * Заполняется при создании и изменении
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp changed_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $changed_at = null;
    /**
     * Модель счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     */
    protected $title = null;
    /**
     * Протокол счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue protocol = 5;</code>
     */
    protected $protocol = null;
    /**
     * Тип модели
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue model_kind = 6;</code>
     */
    protected $model_kind = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор
     *     @type \Google\Protobuf\Timestamp $created_at
     *           Дата создания
     *     @type \Google\Protobuf\Timestamp $changed_at
     *           Дата последнего изменения.
     *           Заполняется и обновляется сервером.
     *           Заполняется при создании и изменении
     *     @type \Google\Protobuf\StringValue $title
     *           Модель счетчика
     *     @type \Google\Protobuf\StringValue $protocol
     *           Протокол счетчика
     *     @type \Google\Protobuf\StringValue $model_kind
     *           Тип модели
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDictionaryV1::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>.google.protobuf.Timestamp created_at = 2 [(.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 = 2 [(.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 = 3 [(.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 = 3 [(.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;
    }

    /**
     * Модель счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getTitle()
    {
        return $this->title;
    }

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

     * Модель счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @return string|null
     */
    public function getTitleUnwrapped()
    {
        return $this->readWrapperValue("title");
    }

    /**
     * Модель счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue title = 4;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->title = $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 title = 4;</code>
     * @param string|null $var
     * @return $this
     */
    public function setTitleUnwrapped($var)
    {
        $this->writeWrapperValue("title", $var);
        return $this;}

    /**
     * Протокол счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue protocol = 5;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getProtocol()
    {
        return $this->protocol;
    }

    public function hasProtocol()
    {
        return isset($this->protocol);
    }

    public function clearProtocol()
    {
        unset($this->protocol);
    }

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

     * Протокол счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue protocol = 5;</code>
     * @return string|null
     */
    public function getProtocolUnwrapped()
    {
        return $this->readWrapperValue("protocol");
    }

    /**
     * Протокол счетчика
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue protocol = 5;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setProtocol($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->protocol = $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 protocol = 5;</code>
     * @param string|null $var
     * @return $this
     */
    public function setProtocolUnwrapped($var)
    {
        $this->writeWrapperValue("protocol", $var);
        return $this;}

    /**
     * Тип модели
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue model_kind = 6;</code>
     * @return \Google\Protobuf\StringValue|null
     */
    public function getModelKind()
    {
        return $this->model_kind;
    }

    public function hasModelKind()
    {
        return isset($this->model_kind);
    }

    public function clearModelKind()
    {
        unset($this->model_kind);
    }

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

     * Тип модели
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue model_kind = 6;</code>
     * @return string|null
     */
    public function getModelKindUnwrapped()
    {
        return $this->readWrapperValue("model_kind");
    }

    /**
     * Тип модели
     *
     * Generated from protobuf field <code>.google.protobuf.StringValue model_kind = 6;</code>
     * @param \Google\Protobuf\StringValue $var
     * @return $this
     */
    public function setModelKind($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\StringValue::class);
        $this->model_kind = $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 model_kind = 6;</code>
     * @param string|null $var
     * @return $this
     */
    public function setModelKindUnwrapped($var)
    {
        $this->writeWrapperValue("model_kind", $var);
        return $this;}

}

