<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

namespace Google\Cloud\RecaptchaEnterprise\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Settings specific to keys that can be used for WAF (Web Application
 * Firewall).
 *
 * Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.WafSettings</code>
 */
class WafSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The WAF service that uses this key.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $waf_service = 0;
    /**
     * Required. The WAF feature for which this key is enabled.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $waf_feature = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $waf_service
     *           Required. The WAF service that uses this key.
     *     @type int $waf_feature
     *           Required. The WAF feature for which this key is enabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The WAF service that uses this key.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getWafService()
    {
        return $this->waf_service;
    }

    /**
     * Required. The WAF service that uses this key.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafService waf_service = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setWafService($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\RecaptchaEnterprise\V1\WafSettings\WafService::class);
        $this->waf_service = $var;

        return $this;
    }

    /**
     * Required. The WAF feature for which this key is enabled.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getWafFeature()
    {
        return $this->waf_feature;
    }

    /**
     * Required. The WAF feature for which this key is enabled.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature waf_feature = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setWafFeature($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\RecaptchaEnterprise\V1\WafSettings\WafFeature::class);
        $this->waf_feature = $var;

        return $this;
    }

}

