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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy</code>
 */
class InstanceGroupManagerInstanceLifecyclePolicy extends \Google\Protobuf\Internal\Message
{
    /**
     * A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
     * Check the ForceUpdateOnRepair enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string force_update_on_repair = 356302027;</code>
     */
    private $force_update_on_repair = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $force_update_on_repair
     *           A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
     *           Check the ForceUpdateOnRepair enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
     * Check the ForceUpdateOnRepair enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string force_update_on_repair = 356302027;</code>
     * @return string
     */
    public function getForceUpdateOnRepair()
    {
        return isset($this->force_update_on_repair) ? $this->force_update_on_repair : '';
    }

    public function hasForceUpdateOnRepair()
    {
        return isset($this->force_update_on_repair);
    }

    public function clearForceUpdateOnRepair()
    {
        unset($this->force_update_on_repair);
    }

    /**
     * A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair.
     * Check the ForceUpdateOnRepair enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string force_update_on_repair = 356302027;</code>
     * @param string $var
     * @return $this
     */
    public function setForceUpdateOnRepair($var)
    {
        GPBUtil::checkString($var, True);
        $this->force_update_on_repair = $var;

        return $this;
    }

}

