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

namespace Google\Cloud\RecaptchaEnterprise\V1\FraudPreventionAssessment;

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

/**
 * Risk reasons applicable to the Fraud Prevention assessment.
 *
 * Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.RiskReason</code>
 */
class RiskReason extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Risk reasons applicable to the Fraud Prevention assessment.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.RiskReason.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $reason = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $reason
     *           Output only. Risk reasons applicable to the Fraud Prevention assessment.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Risk reasons applicable to the Fraud Prevention assessment.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.RiskReason.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getReason()
    {
        return $this->reason;
    }

    /**
     * Output only. Risk reasons applicable to the Fraud Prevention assessment.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.FraudPreventionAssessment.RiskReason.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setReason($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\RecaptchaEnterprise\V1\FraudPreventionAssessment\RiskReason\Reason::class);
        $this->reason = $var;

        return $this;
    }

}

© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration