<?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;

/**
 * Assessment for Phone Fraud
 *
 * Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment</code>
 */
class PhoneFraudAssessment extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Assessment of this phone event for risk of SMS toll fraud.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $sms_toll_fraud_verdict = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\RecaptchaEnterprise\V1\SmsTollFraudVerdict $sms_toll_fraud_verdict
     *           Output only. Assessment of this phone event for risk of SMS toll fraud.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Assessment of this phone event for risk of SMS toll fraud.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\RecaptchaEnterprise\V1\SmsTollFraudVerdict|null
     */
    public function getSmsTollFraudVerdict()
    {
        return $this->sms_toll_fraud_verdict;
    }

    public function hasSmsTollFraudVerdict()
    {
        return isset($this->sms_toll_fraud_verdict);
    }

    public function clearSmsTollFraudVerdict()
    {
        unset($this->sms_toll_fraud_verdict);
    }

    /**
     * Output only. Assessment of this phone event for risk of SMS toll fraud.
     *
     * Generated from protobuf field <code>.google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\RecaptchaEnterprise\V1\SmsTollFraudVerdict $var
     * @return $this
     */
    public function setSmsTollFraudVerdict($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\RecaptchaEnterprise\V1\SmsTollFraudVerdict::class);
        $this->sms_toll_fraud_verdict = $var;

        return $this;
    }

}

