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

namespace Google\Cloud\AIPlatform\V1\RagVectorDbConfig;

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

/**
 * The config for the Pinecone.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RagVectorDbConfig.Pinecone</code>
 */
class Pinecone extends \Google\Protobuf\Internal\Message
{
    /**
     * Pinecone index name.
     * This value cannot be changed after it's set.
     *
     * Generated from protobuf field <code>string index_name = 1;</code>
     */
    protected $index_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $index_name
     *           Pinecone index name.
     *           This value cannot be changed after it's set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagData::initOnce();
        parent::__construct($data);
    }

    /**
     * Pinecone index name.
     * This value cannot be changed after it's set.
     *
     * Generated from protobuf field <code>string index_name = 1;</code>
     * @return string
     */
    public function getIndexName()
    {
        return $this->index_name;
    }

    /**
     * Pinecone index name.
     * This value cannot be changed after it's set.
     *
     * Generated from protobuf field <code>string index_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setIndexName($var)
    {
        GPBUtil::checkString($var, True);
        $this->index_name = $var;

        return $this;
    }

}


