<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/gcs.proto

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Google Cloud Storage location for the output.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.GcsDestination</code>
 */
class GcsDestination extends \Google\Protobuf\Internal\Message
{
    /**
     * The Google Cloud Storage URIs for the output. A URI is of the
     * form:
     *   gs://bucket/object-prefix-or-name
     * Whether a prefix or name is used depends on the use case. The requesting
     * user must have "write-permission" to the bucket.
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     */
    private $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uri
     *           The Google Cloud Storage URIs for the output. A URI is of the
     *           form:
     *             gs://bucket/object-prefix-or-name
     *           Whether a prefix or name is used depends on the use case. The requesting
     *           user must have "write-permission" to the bucket.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Gcs::initOnce();
        parent::__construct($data);
    }

    /**
     * The Google Cloud Storage URIs for the output. A URI is of the
     * form:
     *   gs://bucket/object-prefix-or-name
     * Whether a prefix or name is used depends on the use case. The requesting
     * user must have "write-permission" to the bucket.
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * The Google Cloud Storage URIs for the output. A URI is of the
     * form:
     *   gs://bucket/object-prefix-or-name
     * Whether a prefix or name is used depends on the use case. The requesting
     * user must have "write-permission" to the bucket.
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

