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

/**
 * The policy describes the baseline against which
 * Instance boot integrity is measured.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy</code>
 */
class ShieldedInstanceIntegrityPolicy extends \Google\Protobuf\Internal\Message
{
    /**
     * Updates the integrity policy baseline using the
     * measurements from the VM instance's most recent boot.
     *
     * Generated from protobuf field <code>optional bool update_auto_learn_policy = 245490215;</code>
     */
    protected $update_auto_learn_policy = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $update_auto_learn_policy
     *           Updates the integrity policy baseline using the
     *           measurements from the VM instance's most recent boot.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Updates the integrity policy baseline using the
     * measurements from the VM instance's most recent boot.
     *
     * Generated from protobuf field <code>optional bool update_auto_learn_policy = 245490215;</code>
     * @return bool
     */
    public function getUpdateAutoLearnPolicy()
    {
        return isset($this->update_auto_learn_policy) ? $this->update_auto_learn_policy : false;
    }

    public function hasUpdateAutoLearnPolicy()
    {
        return isset($this->update_auto_learn_policy);
    }

    public function clearUpdateAutoLearnPolicy()
    {
        unset($this->update_auto_learn_policy);
    }

    /**
     * Updates the integrity policy baseline using the
     * measurements from the VM instance's most recent boot.
     *
     * Generated from protobuf field <code>optional bool update_auto_learn_policy = 245490215;</code>
     * @param bool $var
     * @return $this
     */
    public function setUpdateAutoLearnPolicy($var)
    {
        GPBUtil::checkBool($var);
        $this->update_auto_learn_policy = $var;

        return $this;
    }

}

