<?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;

/**
 * Service-wide configuration.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.Config</code>
 */
class Config extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the configuration.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    private $name = '';
    /**
     * Output only. All supported versions of Skaffold.
     *
     * Generated from protobuf field <code>repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $supported_versions;
    /**
     * Output only. Default Skaffold version that is assigned when a Release is created without
     * specifying a Skaffold version.
     *
     * Generated from protobuf field <code>string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $default_skaffold_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Name of the configuration.
     *     @type array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $supported_versions
     *           Output only. All supported versions of Skaffold.
     *     @type string $default_skaffold_version
     *           Output only. Default Skaffold version that is assigned when a Release is created without
     *           specifying a Skaffold version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the configuration.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the configuration.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. All supported versions of Skaffold.
     *
     * Generated from protobuf field <code>repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSupportedVersions()
    {
        return $this->supported_versions;
    }

    /**
     * Output only. All supported versions of Skaffold.
     *
     * Generated from protobuf field <code>repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSupportedVersions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldVersion::class);
        $this->supported_versions = $arr;

        return $this;
    }

    /**
     * Output only. Default Skaffold version that is assigned when a Release is created without
     * specifying a Skaffold version.
     *
     * Generated from protobuf field <code>string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDefaultSkaffoldVersion()
    {
        return $this->default_skaffold_version;
    }

    /**
     * Output only. Default Skaffold version that is assigned when a Release is created without
     * specifying a Skaffold version.
     *
     * Generated from protobuf field <code>string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDefaultSkaffoldVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->default_skaffold_version = $var;

        return $this;
    }

}

