<?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 setting for Task Logs.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig</code>
 */
class TaskLogsRetentionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The mode of storage for Airflow workers task logs. For details,
     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode storage_mode = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $storage_mode = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $storage_mode
     *           Optional. The mode of storage for Airflow workers task logs. For details,
     *           see go/composer-store-task-logs-in-cloud-logging-only-design-doc
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The mode of storage for Airflow workers task logs. For details,
     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode storage_mode = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getStorageMode()
    {
        return $this->storage_mode;
    }

    /**
     * Optional. The mode of storage for Airflow workers task logs. For details,
     * see go/composer-store-task-logs-in-cloud-logging-only-design-doc
     *
     * Generated from protobuf field <code>.google.cloud.orchestration.airflow.service.v1.TaskLogsRetentionConfig.TaskLogsStorageMode storage_mode = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setStorageMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Orchestration\Airflow\Service\V1\TaskLogsRetentionConfig\TaskLogsStorageMode::class);
        $this->storage_mode = $var;

        return $this;
    }

}

