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

namespace Google\Cloud\AIPlatform\V1\GenAiAdvancedFeaturesConfig;

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

/**
 * Configuration for Retrieval Augmented Generation feature.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig.RagConfig</code>
 */
class RagConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * If true, enable Retrieval Augmented Generation in ChatCompletion request.
     * Once enabled, the endpoint will be identified as GenAI endpoint and
     * Arthedain router will be used.
     *
     * Generated from protobuf field <code>bool enable_rag = 1;</code>
     */
    protected $enable_rag = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_rag
     *           If true, enable Retrieval Augmented Generation in ChatCompletion request.
     *           Once enabled, the endpoint will be identified as GenAI endpoint and
     *           Arthedain router will be used.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce();
        parent::__construct($data);
    }

    /**
     * If true, enable Retrieval Augmented Generation in ChatCompletion request.
     * Once enabled, the endpoint will be identified as GenAI endpoint and
     * Arthedain router will be used.
     *
     * Generated from protobuf field <code>bool enable_rag = 1;</code>
     * @return bool
     */
    public function getEnableRag()
    {
        return $this->enable_rag;
    }

    /**
     * If true, enable Retrieval Augmented Generation in ChatCompletion request.
     * Once enabled, the endpoint will be identified as GenAI endpoint and
     * Arthedain router will be used.
     *
     * Generated from protobuf field <code>bool enable_rag = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableRag($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_rag = $var;

        return $this;
    }

}


