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

namespace Google\Cloud\Dialogflow\V2\RaiSettings;

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

/**
 * Configuration for a specific RAI category.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig</code>
 */
class RaiCategoryConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $category = 0;
    /**
     * Optional. The sensitivity level for this category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $sensitivity_level = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $category
     *           Optional. The RAI category.
     *     @type int $sensitivity_level
     *           Optional. The sensitivity level for this category.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Optional. The RAI category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.RaiCategory category = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setCategory($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig\RaiCategory::class);
        $this->category = $var;

        return $this;
    }

    /**
     * Optional. The sensitivity level for this category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getSensitivityLevel()
    {
        return $this->sensitivity_level;
    }

    /**
     * Optional. The sensitivity level for this category.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig.SensitivityLevel sensitivity_level = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setSensitivityLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig\SensitivityLevel::class);
        $this->sensitivity_level = $var;

        return $this;
    }

}

