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

namespace Google\Cloud\DeveloperConnect\V1;

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

/**
 * GoogleCloudRun represents the Cloud Run runtime.
 *
 * Generated from protobuf message <code>google.cloud.developerconnect.v1.GoogleCloudRun</code>
 */
class GoogleCloudRun extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. The name of the Cloud Run service.
     * Format:
     * `projects/{project}/locations/{location}/services/{service}`.
     *
     * Generated from protobuf field <code>string service_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $service_uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $service_uri
     *           Required. Immutable. The name of the Cloud Run service.
     *           Format:
     *           `projects/{project}/locations/{location}/services/{service}`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Developerconnect\V1\InsightsConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. The name of the Cloud Run service.
     * Format:
     * `projects/{project}/locations/{location}/services/{service}`.
     *
     * Generated from protobuf field <code>string service_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getServiceUri()
    {
        return $this->service_uri;
    }

    /**
     * Required. Immutable. The name of the Cloud Run service.
     * Format:
     * `projects/{project}/locations/{location}/services/{service}`.
     *
     * Generated from protobuf field <code>string service_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setServiceUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_uri = $var;

        return $this;
    }

}

