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

namespace Keyapis\Device\V1;

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

/**
 * Результат задачи на конфигурирование устройства.
 * Очередь key.device.configure_device_result
 *
 * Generated from protobuf message <code>keyapis.device.v1.ConfigureDeviceResultTask</code>
 */
class ConfigureDeviceResultTask extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор запроса
     *
     * Generated from protobuf field <code>string request_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $request_id = '';
    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $device_id = 0;
    /**
     * Дата конфигурации устройства
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp configured_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $configured_at = null;
    /**
     * Аппаратная версия
     *
     * Generated from protobuf field <code>string hardware_version = 4;</code>
     */
    protected $hardware_version = '';
    /**
     * Версия прошивки
     *
     * Generated from protobuf field <code>string firmware_version = 5;</code>
     */
    protected $firmware_version = '';
    /**
     * Модель
     *
     * Generated from protobuf field <code>string model = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $model = '';
    /**
     * Результат настроек
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceResultTask.Settings settings = 7;</code>
     */
    protected $settings = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $request_id
     *           Идентификатор запроса
     *     @type int $device_id
     *           Идентификатор устройства
     *     @type \Google\Protobuf\Timestamp $configured_at
     *           Дата конфигурации устройства
     *     @type string $hardware_version
     *           Аппаратная версия
     *     @type string $firmware_version
     *           Версия прошивки
     *     @type string $model
     *           Модель
     *     @type \Keyapis\Device\V1\ConfigureDeviceResultTask\Settings $settings
     *           Результат настроек
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceEventsV1::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Идентификатор устройства
     *
     * Generated from protobuf field <code>int32 device_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getDeviceId()
    {
        return $this->device_id;
    }

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

        return $this;
    }

    /**
     * Дата конфигурации устройства
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp configured_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getConfiguredAt()
    {
        return $this->configured_at;
    }

    public function hasConfiguredAt()
    {
        return isset($this->configured_at);
    }

    public function clearConfiguredAt()
    {
        unset($this->configured_at);
    }

    /**
     * Дата конфигурации устройства
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp configured_at = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setConfiguredAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->configured_at = $var;

        return $this;
    }

    /**
     * Аппаратная версия
     *
     * Generated from protobuf field <code>string hardware_version = 4;</code>
     * @return string
     */
    public function getHardwareVersion()
    {
        return $this->hardware_version;
    }

    /**
     * Аппаратная версия
     *
     * Generated from protobuf field <code>string hardware_version = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setHardwareVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->hardware_version = $var;

        return $this;
    }

    /**
     * Версия прошивки
     *
     * Generated from protobuf field <code>string firmware_version = 5;</code>
     * @return string
     */
    public function getFirmwareVersion()
    {
        return $this->firmware_version;
    }

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

        return $this;
    }

    /**
     * Модель
     *
     * Generated from protobuf field <code>string model = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * Модель
     *
     * Generated from protobuf field <code>string model = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->model = $var;

        return $this;
    }

    /**
     * Результат настроек
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceResultTask.Settings settings = 7;</code>
     * @return \Keyapis\Device\V1\ConfigureDeviceResultTask\Settings|null
     */
    public function getSettings()
    {
        return $this->settings;
    }

    public function hasSettings()
    {
        return isset($this->settings);
    }

    public function clearSettings()
    {
        unset($this->settings);
    }

    /**
     * Результат настроек
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceResultTask.Settings settings = 7;</code>
     * @param \Keyapis\Device\V1\ConfigureDeviceResultTask\Settings $var
     * @return $this
     */
    public function setSettings($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ConfigureDeviceResultTask\Settings::class);
        $this->settings = $var;

        return $this;
    }

}

