<?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 Shielded Instance options.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ShieldedInstanceConfig</code>
 */
class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Defines whether the instance has integrity monitoring enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_integrity_monitoring = 409071030;</code>
     */
    private $enable_integrity_monitoring = null;
    /**
     * Defines whether the instance has Secure Boot enabled. Disabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_secure_boot = 123568638;</code>
     */
    private $enable_secure_boot = null;
    /**
     * Defines whether the instance has the vTPM enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_vtpm = 181858935;</code>
     */
    private $enable_vtpm = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_integrity_monitoring
     *           Defines whether the instance has integrity monitoring enabled. Enabled by default.
     *     @type bool $enable_secure_boot
     *           Defines whether the instance has Secure Boot enabled. Disabled by default.
     *     @type bool $enable_vtpm
     *           Defines whether the instance has the vTPM enabled. Enabled by default.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Defines whether the instance has integrity monitoring enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_integrity_monitoring = 409071030;</code>
     * @return bool
     */
    public function getEnableIntegrityMonitoring()
    {
        return isset($this->enable_integrity_monitoring) ? $this->enable_integrity_monitoring : false;
    }

    public function hasEnableIntegrityMonitoring()
    {
        return isset($this->enable_integrity_monitoring);
    }

    public function clearEnableIntegrityMonitoring()
    {
        unset($this->enable_integrity_monitoring);
    }

    /**
     * Defines whether the instance has integrity monitoring enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_integrity_monitoring = 409071030;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableIntegrityMonitoring($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_integrity_monitoring = $var;

        return $this;
    }

    /**
     * Defines whether the instance has Secure Boot enabled. Disabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_secure_boot = 123568638;</code>
     * @return bool
     */
    public function getEnableSecureBoot()
    {
        return isset($this->enable_secure_boot) ? $this->enable_secure_boot : false;
    }

    public function hasEnableSecureBoot()
    {
        return isset($this->enable_secure_boot);
    }

    public function clearEnableSecureBoot()
    {
        unset($this->enable_secure_boot);
    }

    /**
     * Defines whether the instance has Secure Boot enabled. Disabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_secure_boot = 123568638;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableSecureBoot($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_secure_boot = $var;

        return $this;
    }

    /**
     * Defines whether the instance has the vTPM enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_vtpm = 181858935;</code>
     * @return bool
     */
    public function getEnableVtpm()
    {
        return isset($this->enable_vtpm) ? $this->enable_vtpm : false;
    }

    public function hasEnableVtpm()
    {
        return isset($this->enable_vtpm);
    }

    public function clearEnableVtpm()
    {
        unset($this->enable_vtpm);
    }

    /**
     * Defines whether the instance has the vTPM enabled. Enabled by default.
     *
     * Generated from protobuf field <code>optional bool enable_vtpm = 181858935;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableVtpm($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_vtpm = $var;

        return $this;
    }

}

