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

namespace Google\Cloud\ModelArmor\V1beta;

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

/**
 * Malicious URI filter settings.
 *
 * Generated from protobuf message <code>google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings</code>
 */
class MaliciousUriFilterSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Tells whether the Malicious URI filter is enabled or disabled.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings.MaliciousUriFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $filter_enforcement = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $filter_enforcement
     *           Optional. Tells whether the Malicious URI filter is enabled or disabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Modelarmor\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Tells whether the Malicious URI filter is enabled or disabled.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings.MaliciousUriFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getFilterEnforcement()
    {
        return $this->filter_enforcement;
    }

    /**
     * Optional. Tells whether the Malicious URI filter is enabled or disabled.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings.MaliciousUriFilterEnforcement filter_enforcement = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setFilterEnforcement($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ModelArmor\V1beta\MaliciousUriFilterSettings\MaliciousUriFilterEnforcement::class);
        $this->filter_enforcement = $var;

        return $this;
    }

}

