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

namespace Google\Cloud\Dialogflow\Cx\V3;

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

/**
 * Google Cloud Storage location for a Dialogflow operation that writes or
 * exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.GcsDestination</code>
 */
class GcsDestination extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The Google Cloud Storage URI for the exported objects. A URI is
     * of the form: `gs://bucket/object-name-or-prefix` Whether a full object
     * name, or just a prefix, its usage depends on the Dialogflow operation.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uri
     *           Required. The Google Cloud Storage URI for the exported objects. A URI is
     *           of the form: `gs://bucket/object-name-or-prefix` Whether a full object
     *           name, or just a prefix, its usage depends on the Dialogflow operation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Gcs::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The Google Cloud Storage URI for the exported objects. A URI is
     * of the form: `gs://bucket/object-name-or-prefix` Whether a full object
     * name, or just a prefix, its usage depends on the Dialogflow operation.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * Required. The Google Cloud Storage URI for the exported objects. A URI is
     * of the form: `gs://bucket/object-name-or-prefix` Whether a full object
     * name, or just a prefix, its usage depends on the Dialogflow operation.
     *
     * Generated from protobuf field <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

