<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/storage.proto

namespace Google\Cloud\Dlp\V2;

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

/**
 * Message representing a single file or path in Cloud Storage.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.CloudStoragePath</code>
 */
class CloudStoragePath extends \Google\Protobuf\Internal\Message
{
    /**
     * A URL representing a file or path (no wildcards) in Cloud Storage.
     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
     *
     * Generated from protobuf field <code>string path = 1;</code>
     */
    protected $path = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $path
     *           A URL representing a file or path (no wildcards) in Cloud Storage.
     *           Example: `gs://[BUCKET_NAME]/dictionary.txt`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce();
        parent::__construct($data);
    }

    /**
     * A URL representing a file or path (no wildcards) in Cloud Storage.
     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
     *
     * Generated from protobuf field <code>string path = 1;</code>
     * @return string
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * A URL representing a file or path (no wildcards) in Cloud Storage.
     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
     *
     * Generated from protobuf field <code>string path = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->path = $var;

        return $this;
    }

}

