<?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.SecurityPolicyDdosProtectionConfig</code>
 */
class SecurityPolicyDdosProtectionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * 
     * Check the DdosProtection enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string ddos_protection = 275173268;</code>
     */
    private $ddos_protection = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ddos_protection
     *           
     *           Check the DdosProtection enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * 
     * Check the DdosProtection enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string ddos_protection = 275173268;</code>
     * @return string
     */
    public function getDdosProtection()
    {
        return isset($this->ddos_protection) ? $this->ddos_protection : '';
    }

    public function hasDdosProtection()
    {
        return isset($this->ddos_protection);
    }

    public function clearDdosProtection()
    {
        unset($this->ddos_protection);
    }

    /**
     * 
     * Check the DdosProtection enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string ddos_protection = 275173268;</code>
     * @param string $var
     * @return $this
     */
    public function setDdosProtection($var)
    {
        GPBUtil::checkString($var, True);
        $this->ddos_protection = $var;

        return $this;
    }

}

