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

/**
 * Configuration options for Cloud Armor Adaptive Protection (CAAP).
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfig</code>
 */
class SecurityPolicyAdaptiveProtectionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * If set to true, enables Cloud Armor Machine Learning.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7_ddos_defense_config = 437316771;</code>
     */
    private $layer7_ddos_defense_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig $layer7_ddos_defense_config
     *           If set to true, enables Cloud Armor Machine Learning.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * If set to true, enables Cloud Armor Machine Learning.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7_ddos_defense_config = 437316771;</code>
     * @return \Google\Cloud\Compute\V1\SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig|null
     */
    public function getLayer7DdosDefenseConfig()
    {
        return $this->layer7_ddos_defense_config;
    }

    public function hasLayer7DdosDefenseConfig()
    {
        return isset($this->layer7_ddos_defense_config);
    }

    public function clearLayer7DdosDefenseConfig()
    {
        unset($this->layer7_ddos_defense_config);
    }

    /**
     * If set to true, enables Cloud Armor Machine Learning.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig layer7_ddos_defense_config = 437316771;</code>
     * @param \Google\Cloud\Compute\V1\SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig $var
     * @return $this
     */
    public function setLayer7DdosDefenseConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig::class);
        $this->layer7_ddos_defense_config = $var;

        return $this;
    }

}

