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

namespace Keyapis\Device\V1\ControlDeviceTask;

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

/**
 * Автосбор
 *
 * Generated from protobuf message <code>keyapis.device.v1.ControlDeviceTask.Autocollect</code>
 */
class Autocollect extends \Google\Protobuf\Internal\Message
{
    /**
     * Статус настройки автосбор
     *
     * 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
     *           Статус настройки автосбор
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceEventsV1::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Статус настройки автосбор
     *
     * 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;
    }

}

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

