Google Cloud Recaptcha Enterprise V1 Client - Class FirewallPolicyAssessment (1.6.0)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class FirewallPolicyAssessment.

Policy config assessment.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.FirewallPolicyAssessment

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ error Google\Rpc\Status

Output only. If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

↳ firewall_policy Google\Cloud\RecaptchaEnterprise\V1\FirewallPolicy

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field will be left empty.

getError

Output only. If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Output only. If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getFirewallPolicy

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field will be left empty.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallPolicy|null

hasFirewallPolicy

clearFirewallPolicy

setFirewallPolicy

Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field will be left empty.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallPolicy
Returns
TypeDescription
$this