<?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 Vertex Vector Search.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearch</code>
 */
class VertexVectorSearch extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the Index Endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1;</code>
     */
    protected $index_endpoint = '';
    /**
     * The resource name of the Index.
     * Format:
     * `projects/{project}/locations/{location}/indexes/{index}`
     *
     * Generated from protobuf field <code>string index = 2;</code>
     */
    protected $index = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $index_endpoint
     *           The resource name of the Index Endpoint.
     *           Format:
     *           `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *     @type string $index
     *           The resource name of the Index.
     *           Format:
     *           `projects/{project}/locations/{location}/indexes/{index}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagData::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the Index Endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1;</code>
     * @return string
     */
    public function getIndexEndpoint()
    {
        return $this->index_endpoint;
    }

    /**
     * The resource name of the Index Endpoint.
     * Format:
     * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
     *
     * Generated from protobuf field <code>string index_endpoint = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setIndexEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->index_endpoint = $var;

        return $this;
    }

    /**
     * The resource name of the Index.
     * Format:
     * `projects/{project}/locations/{location}/indexes/{index}`
     *
     * Generated from protobuf field <code>string index = 2;</code>
     * @return string
     */
    public function getIndex()
    {
        return $this->index;
    }

    /**
     * The resource name of the Index.
     * Format:
     * `projects/{project}/locations/{location}/indexes/{index}`
     *
     * Generated from protobuf field <code>string index = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkString($var, True);
        $this->index = $var;

        return $this;
    }

}


