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

/**
 * Parameters that can be configured on Windows nodes.
 * Windows Node Config that define the parameters that will be used to
 * configure the Windows node pool settings
 *
 * Generated from protobuf message <code>google.container.v1.WindowsNodeConfig</code>
 */
class WindowsNodeConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * OSVersion specifies the Windows node config to be used on the node
     *
     * Generated from protobuf field <code>.google.container.v1.WindowsNodeConfig.OSVersion os_version = 1;</code>
     */
    protected $os_version = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $os_version
     *           OSVersion specifies the Windows node config to be used on the node
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * OSVersion specifies the Windows node config to be used on the node
     *
     * Generated from protobuf field <code>.google.container.v1.WindowsNodeConfig.OSVersion os_version = 1;</code>
     * @return int
     */
    public function getOsVersion()
    {
        return $this->os_version;
    }

    /**
     * OSVersion specifies the Windows node config to be used on the node
     *
     * Generated from protobuf field <code>.google.container.v1.WindowsNodeConfig.OSVersion os_version = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setOsVersion($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class);
        $this->os_version = $var;

        return $this;
    }

}

