<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datastream/v1/datastream_resources.proto

namespace Google\Cloud\Datastream\V1;

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

/**
 * Cloud Storage bucket profile.
 *
 * Generated from protobuf message <code>google.cloud.datastream.v1.GcsProfile</code>
 */
class GcsProfile extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The Cloud Storage bucket name.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $bucket = '';
    /**
     * The root path inside the Cloud Storage bucket.
     *
     * Generated from protobuf field <code>string root_path = 2;</code>
     */
    private $root_path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $bucket
     *           Required. The Cloud Storage bucket name.
     *     @type string $root_path
     *           The root path inside the Cloud Storage bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datastream\V1\DatastreamResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The Cloud Storage bucket name.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getBucket()
    {
        return $this->bucket;
    }

    /**
     * Required. The Cloud Storage bucket name.
     *
     * Generated from protobuf field <code>string bucket = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setBucket($var)
    {
        GPBUtil::checkString($var, True);
        $this->bucket = $var;

        return $this;
    }

    /**
     * The root path inside the Cloud Storage bucket.
     *
     * Generated from protobuf field <code>string root_path = 2;</code>
     * @return string
     */
    public function getRootPath()
    {
        return $this->root_path;
    }

    /**
     * The root path inside the Cloud Storage bucket.
     *
     * Generated from protobuf field <code>string root_path = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRootPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->root_path = $var;

        return $this;
    }

}

