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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Config for RagEngine.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RagEngineConfig</code>
 */
class RagEngineConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The name of the RagEngineConfig.
     * Format:
     * `projects/{project}/locations/{location}/ragEngineConfig`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * The config of the RagManagedDb used by RagEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagManagedDbConfig rag_managed_db_config = 2;</code>
     */
    protected $rag_managed_db_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The name of the RagEngineConfig.
     *           Format:
     *           `projects/{project}/locations/{location}/ragEngineConfig`
     *     @type \Google\Cloud\AIPlatform\V1\RagManagedDbConfig $rag_managed_db_config
     *           The config of the RagManagedDb used by RagEngine.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagData::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The name of the RagEngineConfig.
     * Format:
     * `projects/{project}/locations/{location}/ragEngineConfig`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The name of the RagEngineConfig.
     * Format:
     * `projects/{project}/locations/{location}/ragEngineConfig`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The config of the RagManagedDb used by RagEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagManagedDbConfig rag_managed_db_config = 2;</code>
     * @return \Google\Cloud\AIPlatform\V1\RagManagedDbConfig|null
     */
    public function getRagManagedDbConfig()
    {
        return $this->rag_managed_db_config;
    }

    public function hasRagManagedDbConfig()
    {
        return isset($this->rag_managed_db_config);
    }

    public function clearRagManagedDbConfig()
    {
        unset($this->rag_managed_db_config);
    }

    /**
     * The config of the RagManagedDb used by RagEngine.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagManagedDbConfig rag_managed_db_config = 2;</code>
     * @param \Google\Cloud\AIPlatform\V1\RagManagedDbConfig $var
     * @return $this
     */
    public function setRagManagedDbConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\RagManagedDbConfig::class);
        $this->rag_managed_db_config = $var;

        return $this;
    }

}

