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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Configuration for GenAiAdvancedFeatures.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig</code>
 */
class GenAiAdvancedFeaturesConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Configuration for Retrieval Augmented Generation feature.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig.RagConfig rag_config = 1;</code>
     */
    protected $rag_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\GenAiAdvancedFeaturesConfig\RagConfig $rag_config
     *           Configuration for Retrieval Augmented Generation feature.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce();
        parent::__construct($data);
    }

    /**
     * Configuration for Retrieval Augmented Generation feature.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig.RagConfig rag_config = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\GenAiAdvancedFeaturesConfig\RagConfig|null
     */
    public function getRagConfig()
    {
        return $this->rag_config;
    }

    public function hasRagConfig()
    {
        return isset($this->rag_config);
    }

    public function clearRagConfig()
    {
        unset($this->rag_config);
    }

    /**
     * Configuration for Retrieval Augmented Generation feature.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig.RagConfig rag_config = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\GenAiAdvancedFeaturesConfig\RagConfig $var
     * @return $this
     */
    public function setRagConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenAiAdvancedFeaturesConfig\RagConfig::class);
        $this->rag_config = $var;

        return $this;
    }

}

