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

namespace Keyapis\Device\V1\ConfigureDeviceTask;

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

/**
 * Параметр Sl3
 *
 * Generated from protobuf message <code>keyapis.device.v1.ConfigureDeviceTask.Sl3</code>
 */
class Sl3 extends \Google\Protobuf\Internal\Message
{
    /**
     * Статус настройки SL3
     *
     * Generated from protobuf field <code>bool is_enabled = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $is_enabled = false;
    /**
     * Профиль шифрования
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.EncryptionProfile encryption_profile = 2;</code>
     */
    protected $encryption_profile = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *           Статус настройки SL3
     *     @type \Keyapis\Device\V1\ConfigureDeviceTask\EncryptionProfile $encryption_profile
     *           Профиль шифрования
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceEventsV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Статус настройки SL3
     *
     * Generated from protobuf field <code>bool is_enabled = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

    /**
     * Статус настройки SL3
     *
     * Generated from protobuf field <code>bool is_enabled = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->is_enabled = $var;

        return $this;
    }

    /**
     * Профиль шифрования
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.EncryptionProfile encryption_profile = 2;</code>
     * @return \Keyapis\Device\V1\ConfigureDeviceTask\EncryptionProfile|null
     */
    public function getEncryptionProfile()
    {
        return $this->encryption_profile;
    }

    public function hasEncryptionProfile()
    {
        return isset($this->encryption_profile);
    }

    public function clearEncryptionProfile()
    {
        unset($this->encryption_profile);
    }

    /**
     * Профиль шифрования
     *
     * Generated from protobuf field <code>.keyapis.device.v1.ConfigureDeviceTask.EncryptionProfile encryption_profile = 2;</code>
     * @param \Keyapis\Device\V1\ConfigureDeviceTask\EncryptionProfile $var
     * @return $this
     */
    public function setEncryptionProfile($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\Device\V1\ConfigureDeviceTask\EncryptionProfile::class);
        $this->encryption_profile = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sl3::class, \Keyapis\Device\V1\ConfigureDeviceTask_Sl3::class);

