<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/maps/routeoptimization/v1/route_optimization_service.proto

namespace Google\Maps\RouteOptimization\V1;

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

/**
 * A Universal Resource Identifier that points to a resource that can be read
 * and written by the Route Optimization API.
 *
 * Generated from protobuf message <code>google.maps.routeoptimization.v1.Uri</code>
 */
class Uri extends \Google\Protobuf\Internal\Message
{
    /**
     * The URI of the resource. The resource may not yet exist.
     * The contents of the resource are encoded as either JSON
     * or textproto. Only Google Cloud Storage resources are supported. If the
     * resource is encoded as JSON, the resource name must be suffixed with
     * `.json`. If the resource is encoded as textproto, the resource name must
     * be suffixed with `.txtpb`. For example, a Google Cloud Storage URI to
     * a JSON encoded file might look like: `gs://bucket/path/input/object.json`.
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     */
    protected $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $uri
     *           The URI of the resource. The resource may not yet exist.
     *           The contents of the resource are encoded as either JSON
     *           or textproto. Only Google Cloud Storage resources are supported. If the
     *           resource is encoded as JSON, the resource name must be suffixed with
     *           `.json`. If the resource is encoded as textproto, the resource name must
     *           be suffixed with `.txtpb`. For example, a Google Cloud Storage URI to
     *           a JSON encoded file might look like: `gs://bucket/path/input/object.json`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Maps\Routeoptimization\V1\RouteOptimizationService::initOnce();
        parent::__construct($data);
    }

    /**
     * The URI of the resource. The resource may not yet exist.
     * The contents of the resource are encoded as either JSON
     * or textproto. Only Google Cloud Storage resources are supported. If the
     * resource is encoded as JSON, the resource name must be suffixed with
     * `.json`. If the resource is encoded as textproto, the resource name must
     * be suffixed with `.txtpb`. For example, a Google Cloud Storage URI to
     * a JSON encoded file might look like: `gs://bucket/path/input/object.json`.
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * The URI of the resource. The resource may not yet exist.
     * The contents of the resource are encoded as either JSON
     * or textproto. Only Google Cloud Storage resources are supported. If the
     * resource is encoded as JSON, the resource name must be suffixed with
     * `.json`. If the resource is encoded as textproto, the resource name must
     * be suffixed with `.txtpb`. For example, a Google Cloud Storage URI to
     * a JSON encoded file might look like: `gs://bucket/path/input/object.json`.
     *
     * 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;
    }

}

