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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Settings for Responsible AI checks.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.RaiSettings</code>
 */
class RaiSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Configuration for a set of RAI categories.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig rai_category_configs = 1;</code>
     */
    private $rai_category_configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig[] $rai_category_configs
     *           Configuration for a set of RAI categories.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Configuration for a set of RAI categories.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig rai_category_configs = 1;</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig>
     */
    public function getRaiCategoryConfigs()
    {
        return $this->rai_category_configs;
    }

    /**
     * Configuration for a set of RAI categories.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.RaiSettings.RaiCategoryConfig rai_category_configs = 1;</code>
     * @param \Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig[] $var
     * @return $this
     */
    public function setRaiCategoryConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\RaiSettings\RaiCategoryConfig::class);
        $this->rai_category_configs = $arr;

        return $this;
    }

}

