<?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 data storage in the environment.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.StorageConfig</code>
 */
class StorageConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The name of the Cloud Storage bucket used by the environment. No
     * `gs://` prefix.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $bucket = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $bucket
     *           Optional. The name of the Cloud Storage bucket used by the environment. No
     *           `gs://` prefix.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The name of the Cloud Storage bucket used by the environment. No
     * `gs://` prefix.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getBucket()
    {
        return $this->bucket;
    }

    /**
     * Optional. The name of the Cloud Storage bucket used by the environment. No
     * `gs://` prefix.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setBucket($var)
    {
        GPBUtil::checkString($var, True);
        $this->bucket = $var;

        return $this;
    }

}

