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

/**
 * Filters configuration.
 *
 * Generated from protobuf message <code>google.cloud.modelarmor.v1beta.FilterConfig</code>
 */
class FilterConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Responsible AI settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.RaiFilterSettings rai_settings = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $rai_settings = null;
    /**
     * Optional. Sensitive Data Protection settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.SdpFilterSettings sdp_settings = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $sdp_settings = null;
    /**
     * Optional. Prompt injection and Jailbreak filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings pi_and_jailbreak_filter_settings = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $pi_and_jailbreak_filter_settings = null;
    /**
     * Optional. Malicious URI filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings malicious_uri_filter_settings = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $malicious_uri_filter_settings = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ModelArmor\V1beta\RaiFilterSettings $rai_settings
     *           Optional. Responsible AI settings.
     *     @type \Google\Cloud\ModelArmor\V1beta\SdpFilterSettings $sdp_settings
     *           Optional. Sensitive Data Protection settings.
     *     @type \Google\Cloud\ModelArmor\V1beta\PiAndJailbreakFilterSettings $pi_and_jailbreak_filter_settings
     *           Optional. Prompt injection and Jailbreak filter settings.
     *     @type \Google\Cloud\ModelArmor\V1beta\MaliciousUriFilterSettings $malicious_uri_filter_settings
     *           Optional. Malicious URI filter settings.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Modelarmor\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Responsible AI settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.RaiFilterSettings rai_settings = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\RaiFilterSettings|null
     */
    public function getRaiSettings()
    {
        return $this->rai_settings;
    }

    public function hasRaiSettings()
    {
        return isset($this->rai_settings);
    }

    public function clearRaiSettings()
    {
        unset($this->rai_settings);
    }

    /**
     * Optional. Responsible AI settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.RaiFilterSettings rai_settings = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\RaiFilterSettings $var
     * @return $this
     */
    public function setRaiSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\RaiFilterSettings::class);
        $this->rai_settings = $var;

        return $this;
    }

    /**
     * Optional. Sensitive Data Protection settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.SdpFilterSettings sdp_settings = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\SdpFilterSettings|null
     */
    public function getSdpSettings()
    {
        return $this->sdp_settings;
    }

    public function hasSdpSettings()
    {
        return isset($this->sdp_settings);
    }

    public function clearSdpSettings()
    {
        unset($this->sdp_settings);
    }

    /**
     * Optional. Sensitive Data Protection settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.SdpFilterSettings sdp_settings = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\SdpFilterSettings $var
     * @return $this
     */
    public function setSdpSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\SdpFilterSettings::class);
        $this->sdp_settings = $var;

        return $this;
    }

    /**
     * Optional. Prompt injection and Jailbreak filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings pi_and_jailbreak_filter_settings = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\PiAndJailbreakFilterSettings|null
     */
    public function getPiAndJailbreakFilterSettings()
    {
        return $this->pi_and_jailbreak_filter_settings;
    }

    public function hasPiAndJailbreakFilterSettings()
    {
        return isset($this->pi_and_jailbreak_filter_settings);
    }

    public function clearPiAndJailbreakFilterSettings()
    {
        unset($this->pi_and_jailbreak_filter_settings);
    }

    /**
     * Optional. Prompt injection and Jailbreak filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterSettings pi_and_jailbreak_filter_settings = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\PiAndJailbreakFilterSettings $var
     * @return $this
     */
    public function setPiAndJailbreakFilterSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\PiAndJailbreakFilterSettings::class);
        $this->pi_and_jailbreak_filter_settings = $var;

        return $this;
    }

    /**
     * Optional. Malicious URI filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings malicious_uri_filter_settings = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\ModelArmor\V1beta\MaliciousUriFilterSettings|null
     */
    public function getMaliciousUriFilterSettings()
    {
        return $this->malicious_uri_filter_settings;
    }

    public function hasMaliciousUriFilterSettings()
    {
        return isset($this->malicious_uri_filter_settings);
    }

    public function clearMaliciousUriFilterSettings()
    {
        unset($this->malicious_uri_filter_settings);
    }

    /**
     * Optional. Malicious URI filter settings.
     *
     * Generated from protobuf field <code>.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettings malicious_uri_filter_settings = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\ModelArmor\V1beta\MaliciousUriFilterSettings $var
     * @return $this
     */
    public function setMaliciousUriFilterSettings($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ModelArmor\V1beta\MaliciousUriFilterSettings::class);
        $this->malicious_uri_filter_settings = $var;

        return $this;
    }

}

