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

namespace Keyapis\Device\V1\DeviceConfigurationStatus\Payload;

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

/**
 * Автоколлект
 *
 * Generated from protobuf message <code>keyapis.device.v1.DeviceConfigurationStatus.Payload.Autocollect</code>
 */
class Autocollect extends \Google\Protobuf\Internal\Message
{
    /**
     * Дата включения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp enabled_at = 1;</code>
     */
    protected $enabled_at = null;
    /**
     * Дата отключения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_be_disabled_at = 2;</code>
     */
    protected $to_be_disabled_at = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $enabled_at
     *           Дата включения автосбора.
     *           # Тип: DateTime
     *     @type \Google\Protobuf\Timestamp $to_be_disabled_at
     *           Дата отключения автосбора.
     *           # Тип: DateTime
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\Device\V1\KeyapisDeviceDeviceV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Дата включения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp enabled_at = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getEnabledAt()
    {
        return $this->enabled_at;
    }

    public function hasEnabledAt()
    {
        return isset($this->enabled_at);
    }

    public function clearEnabledAt()
    {
        unset($this->enabled_at);
    }

    /**
     * Дата включения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp enabled_at = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setEnabledAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->enabled_at = $var;

        return $this;
    }

    /**
     * Дата отключения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_be_disabled_at = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getToBeDisabledAt()
    {
        return $this->to_be_disabled_at;
    }

    public function hasToBeDisabledAt()
    {
        return isset($this->to_be_disabled_at);
    }

    public function clearToBeDisabledAt()
    {
        unset($this->to_be_disabled_at);
    }

    /**
     * Дата отключения автосбора.
     * # Тип: DateTime
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp to_be_disabled_at = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setToBeDisabledAt($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->to_be_disabled_at = $var;

        return $this;
    }

}

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

