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

namespace Keyapis\Device\V1;

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

/**
 * Настройки автогенерации RFID
 *
 * Generated from protobuf message <code>keyapis.device.v1.RfidAutoGenerateSettings</code>
 */
class RfidAutoGenerateSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Признак включения автогенерации RFID
     *
     * Generated from protobuf field <code>bool is_enabled = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $is_enabled = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *           Признак включения автогенерации RFID
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceSystemV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Признак включения автогенерации RFID
     *
     * Generated from protobuf field <code>bool is_enabled = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

    /**
     * Признак включения автогенерации RFID
     *
     * 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;
    }

}

