<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/orchestration/airflow/service/v1/environments.proto

namespace Google\Cloud\Orchestration\Airflow\Service\V1;

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

/**
 * The configuration for scheduled snapshot creation mechanism.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig</code>
 */
class ScheduledSnapshotsConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Whether scheduled snapshots creation is enabled.
     *
     * Generated from protobuf field <code>bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $enabled = false;
    /**
     * Optional. The Cloud Storage location for storing automatically created
     * snapshots.
     *
     * Generated from protobuf field <code>string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $snapshot_location = '';
    /**
     * Optional. The cron expression representing the time when snapshots creation
     * mechanism runs. This field is subject to additional validation around
     * frequency of execution.
     *
     * Generated from protobuf field <code>string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $snapshot_creation_schedule = '';
    /**
     * Optional. Time zone that sets the context to interpret
     * snapshot_creation_schedule.
     *
     * Generated from protobuf field <code>string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $time_zone = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enabled
     *           Optional. Whether scheduled snapshots creation is enabled.
     *     @type string $snapshot_location
     *           Optional. The Cloud Storage location for storing automatically created
     *           snapshots.
     *     @type string $snapshot_creation_schedule
     *           Optional. The cron expression representing the time when snapshots creation
     *           mechanism runs. This field is subject to additional validation around
     *           frequency of execution.
     *     @type string $time_zone
     *           Optional. Time zone that sets the context to interpret
     *           snapshot_creation_schedule.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Whether scheduled snapshots creation is enabled.
     *
     * Generated from protobuf field <code>bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

    /**
     * Optional. Whether scheduled snapshots creation is enabled.
     *
     * Generated from protobuf field <code>bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

    /**
     * Optional. The Cloud Storage location for storing automatically created
     * snapshots.
     *
     * Generated from protobuf field <code>string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSnapshotLocation()
    {
        return $this->snapshot_location;
    }

    /**
     * Optional. The Cloud Storage location for storing automatically created
     * snapshots.
     *
     * Generated from protobuf field <code>string snapshot_location = 6 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSnapshotLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->snapshot_location = $var;

        return $this;
    }

    /**
     * Optional. The cron expression representing the time when snapshots creation
     * mechanism runs. This field is subject to additional validation around
     * frequency of execution.
     *
     * Generated from protobuf field <code>string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSnapshotCreationSchedule()
    {
        return $this->snapshot_creation_schedule;
    }

    /**
     * Optional. The cron expression representing the time when snapshots creation
     * mechanism runs. This field is subject to additional validation around
     * frequency of execution.
     *
     * Generated from protobuf field <code>string snapshot_creation_schedule = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSnapshotCreationSchedule($var)
    {
        GPBUtil::checkString($var, True);
        $this->snapshot_creation_schedule = $var;

        return $this;
    }

    /**
     * Optional. Time zone that sets the context to interpret
     * snapshot_creation_schedule.
     *
     * Generated from protobuf field <code>string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getTimeZone()
    {
        return $this->time_zone;
    }

    /**
     * Optional. Time zone that sets the context to interpret
     * snapshot_creation_schedule.
     *
     * Generated from protobuf field <code>string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setTimeZone($var)
    {
        GPBUtil::checkString($var, True);
        $this->time_zone = $var;

        return $this;
    }

}

