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

namespace Keyapis\Device\V1;

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

/**
 * Запрос на изменение статуса конфигурации устройства
 *
 * Generated from protobuf message <code>keyapis.device.v1.PostDeviceConfigurationStatusRequest</code>
 */
class PostDeviceConfigurationStatusRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Статус конфигурации устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.DeviceConfigurationStatus data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\Device\V1\DeviceConfigurationStatus $data
     *           Статус конфигурации устройства
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Статус конфигурации устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.DeviceConfigurationStatus data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Keyapis\Device\V1\DeviceConfigurationStatus|null
     */
    public function getData()
    {
        return $this->data;
    }

    public function hasData()
    {
        return isset($this->data);
    }

    public function clearData()
    {
        unset($this->data);
    }

    /**
     * Статус конфигурации устройства
     *
     * Generated from protobuf field <code>.keyapis.device.v1.DeviceConfigurationStatus data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Keyapis\Device\V1\DeviceConfigurationStatus $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\DeviceConfigurationStatus::class);
        $this->data = $var;

        return $this;
    }

}

