<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
 * installed.
 *
 * Generated from protobuf message <code>google.container.v1.GPUDriverInstallationConfig</code>
 */
class GPUDriverInstallationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Mode for how the GPU driver is installed.
     *
     * Generated from protobuf field <code>optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1;</code>
     */
    protected $gpu_driver_version = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $gpu_driver_version
     *           Mode for how the GPU driver is installed.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Mode for how the GPU driver is installed.
     *
     * Generated from protobuf field <code>optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1;</code>
     * @return int
     */
    public function getGpuDriverVersion()
    {
        return isset($this->gpu_driver_version) ? $this->gpu_driver_version : 0;
    }

    public function hasGpuDriverVersion()
    {
        return isset($this->gpu_driver_version);
    }

    public function clearGpuDriverVersion()
    {
        unset($this->gpu_driver_version);
    }

    /**
     * Mode for how the GPU driver is installed.
     *
     * Generated from protobuf field <code>optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setGpuDriverVersion($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig\GPUDriverVersion::class);
        $this->gpu_driver_version = $var;

        return $this;
    }

}

