<?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>
     */
    protected $uri = '';
    /**
     * Output only. The URI of the Cloud Run service that the revision belongs
     * to. The format is:
     * projects/{project}/locations/{location}/services/{service}
     *
     * Generated from protobuf field <code>string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $service_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}
     *     @type string $service_uri
     *           Output only. The URI of the Cloud Run service that the revision belongs
     *           to. The format is:
     *           projects/{project}/locations/{location}/services/{service}
     * }
     */
    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;
    }

    /**
     * Output only. The URI of the Cloud Run service that the revision belongs
     * to. The format is:
     * projects/{project}/locations/{location}/services/{service}
     *
     * Generated from protobuf field <code>string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getServiceUri()
    {
        return $this->service_uri;
    }

    /**
     * Output only. The URI of the Cloud Run service that the revision belongs
     * to. The format is:
     * projects/{project}/locations/{location}/services/{service}
     *
     * Generated from protobuf field <code>string service_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setServiceUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_uri = $var;

        return $this;
    }

}


