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

namespace Google\Cloud\ModelArmor\V1;

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

/**
 * Responsible AI Filter settings.
 *
 * Generated from protobuf message <code>google.cloud.modelarmor.v1.RaiFilterSettings</code>
 */
class RaiFilterSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. List of Responsible AI filters enabled for template.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1.RaiFilterSettings.RaiFilter rai_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $rai_filters;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\ModelArmor\V1\RaiFilterSettings\RaiFilter>|\Google\Protobuf\Internal\RepeatedField $rai_filters
     *           Required. List of Responsible AI filters enabled for template.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Modelarmor\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. List of Responsible AI filters enabled for template.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1.RaiFilterSettings.RaiFilter rai_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRaiFilters()
    {
        return $this->rai_filters;
    }

    /**
     * Required. List of Responsible AI filters enabled for template.
     *
     * Generated from protobuf field <code>repeated .google.cloud.modelarmor.v1.RaiFilterSettings.RaiFilter rai_filters = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\ModelArmor\V1\RaiFilterSettings\RaiFilter>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRaiFilters($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ModelArmor\V1\RaiFilterSettings\RaiFilter::class);
        $this->rai_filters = $arr;

        return $this;
    }

}

