<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/cx/v3/safety_settings.proto

namespace Google\Cloud\Dialogflow\Cx\V3\SafetySettings\RaiSettings;

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

/**
 * Configuration of the sensitivity level for blocking an RAI category.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.CategoryFilter</code>
 */
class CategoryFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * RAI category to configure.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyCategory category = 1;</code>
     */
    protected $category = 0;
    /**
     * Blocking sensitivity level to configure for the RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyFilterLevel filter_level = 2;</code>
     */
    protected $filter_level = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $category
     *           RAI category to configure.
     *     @type int $filter_level
     *           Blocking sensitivity level to configure for the RAI category.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\SafetySettings::initOnce();
        parent::__construct($data);
    }

    /**
     * RAI category to configure.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyCategory category = 1;</code>
     * @return int
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * RAI category to configure.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyCategory category = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCategory($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\Cx\V3\SafetySettings\RaiSettings\SafetyCategory::class);
        $this->category = $var;

        return $this;
    }

    /**
     * Blocking sensitivity level to configure for the RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyFilterLevel filter_level = 2;</code>
     * @return int
     */
    public function getFilterLevel()
    {
        return $this->filter_level;
    }

    /**
     * Blocking sensitivity level to configure for the RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.SafetySettings.RaiSettings.SafetyFilterLevel filter_level = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setFilterLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\Cx\V3\SafetySettings\RaiSettings\SafetyFilterLevel::class);
        $this->filter_level = $var;

        return $this;
    }

}


