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

namespace Google\Cloud\Deploy\V1;

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

/**
 * CloudRunMetadata contains information from a Cloud Run deployment.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.CloudRunMetadata</code>
 */
class CloudRunMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
     * Format is projects/{project}/locations/{location}/services/{service}.
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $service = '';
    /**
     * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
     *
     * Generated from protobuf field <code>repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $service_urls;
    /**
     * Output only. The Cloud Run Revision id associated with a `Rollout`.
     *
     * Generated from protobuf field <code>string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $revision = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $service
     *           Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
     *           Format is projects/{project}/locations/{location}/services/{service}.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $service_urls
     *           Output only. The Cloud Run Service urls that are associated with a `Rollout`.
     *     @type string $revision
     *           Output only. The Cloud Run Revision id associated with a `Rollout`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
     * Format is projects/{project}/locations/{location}/services/{service}.
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getService()
    {
        return $this->service;
    }

    /**
     * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
     * Format is projects/{project}/locations/{location}/services/{service}.
     *
     * Generated from protobuf field <code>string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setService($var)
    {
        GPBUtil::checkString($var, True);
        $this->service = $var;

        return $this;
    }

    /**
     * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
     *
     * Generated from protobuf field <code>repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getServiceUrls()
    {
        return $this->service_urls;
    }

    /**
     * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
     *
     * Generated from protobuf field <code>repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setServiceUrls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->service_urls = $arr;

        return $this;
    }

    /**
     * Output only. The Cloud Run Revision id associated with a `Rollout`.
     *
     * Generated from protobuf field <code>string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getRevision()
    {
        return $this->revision;
    }

    /**
     * Output only. The Cloud Run Revision id associated with a `Rollout`.
     *
     * Generated from protobuf field <code>string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setRevision($var)
    {
        GPBUtil::checkString($var, True);
        $this->revision = $var;

        return $this;
    }

}

