| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache/htdocs/app/vendor/google/cloud-recaptcha-enterprise/src/V1/ |
Upload File : |
<?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>
*/
private $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>
*/
private $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;
}
}