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

namespace Google\Cloud\Container\V1;

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

/**
 * ReleaseChannel indicates which release channel a cluster is
 * subscribed to. Release channels are arranged in order of risk.
 * When a cluster is subscribed to a release channel, Google maintains
 * both the master version and the node version. Node auto-upgrade
 * defaults to true and cannot be disabled.
 *
 * Generated from protobuf message <code>google.container.v1.ReleaseChannel</code>
 */
class ReleaseChannel extends \Google\Protobuf\Internal\Message
{
    /**
     * channel specifies which release channel the cluster is subscribed to.
     *
     * Generated from protobuf field <code>.google.container.v1.ReleaseChannel.Channel channel = 1;</code>
     */
    private $channel = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $channel
     *           channel specifies which release channel the cluster is subscribed to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * channel specifies which release channel the cluster is subscribed to.
     *
     * Generated from protobuf field <code>.google.container.v1.ReleaseChannel.Channel channel = 1;</code>
     * @return int
     */
    public function getChannel()
    {
        return $this->channel;
    }

    /**
     * channel specifies which release channel the cluster is subscribed to.
     *
     * Generated from protobuf field <code>.google.container.v1.ReleaseChannel.Channel channel = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setChannel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class);
        $this->channel = $var;

        return $this;
    }

}

