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

namespace Google\Cloud\Compute\V1;

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

/**
 * A set of Display Device options
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.DisplayDevice</code>
 */
class DisplayDevice extends \Google\Protobuf\Internal\Message
{
    /**
     * Defines whether the instance has Display enabled.
     *
     * Generated from protobuf field <code>optional bool enable_display = 14266886;</code>
     */
    private $enable_display = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_display
     *           Defines whether the instance has Display enabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Defines whether the instance has Display enabled.
     *
     * Generated from protobuf field <code>optional bool enable_display = 14266886;</code>
     * @return bool
     */
    public function getEnableDisplay()
    {
        return isset($this->enable_display) ? $this->enable_display : false;
    }

    public function hasEnableDisplay()
    {
        return isset($this->enable_display);
    }

    public function clearEnableDisplay()
    {
        unset($this->enable_display);
    }

    /**
     * Defines whether the instance has Display enabled.
     *
     * Generated from protobuf field <code>optional bool enable_display = 14266886;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableDisplay($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_display = $var;

        return $this;
    }

}

