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

namespace Google\Cloud\NetworkManagement\V1\Endpoint;

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

/**
 * Wrapper for Cloud Run revision attributes.
 *
 * Generated from protobuf message <code>google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpoint</code>
 */
class CloudRunRevisionEndpoint extends \Google\Protobuf\Internal\Message
{
    /**
     * A [Cloud Run](https://cloud.google.com/run)
     * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
     * URI. The format is:
     * projects/{project}/locations/{location}/revisions/{revision}
     *
     * 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
     *           A [Cloud Run](https://cloud.google.com/run)
     *           [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
     *           URI. The format is:
     *           projects/{project}/locations/{location}/revisions/{revision}
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Networkmanagement\V1\ConnectivityTest::initOnce();
        parent::__construct($data);
    }

    /**
     * A [Cloud Run](https://cloud.google.com/run)
     * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
     * URI. The format is:
     * projects/{project}/locations/{location}/revisions/{revision}
     *
     * Generated from protobuf field <code>string uri = 1;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * A [Cloud Run](https://cloud.google.com/run)
     * [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get)
     * URI. The format is:
     * projects/{project}/locations/{location}/revisions/{revision}
     *
     * 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;
    }

}


