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

namespace Google\Cloud\AIPlatform\V1\RetrieveContextsRequest\VertexRagStore;

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

/**
 * The definition of the Rag resource.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource</code>
 */
class RagResource extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. RagCorpora resource name.
     * Format:
     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
     *
     * Generated from protobuf field <code>string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     */
    protected $rag_corpus = '';
    /**
     * Optional. rag_file_id. The files should be in the same rag_corpus set
     * in rag_corpus field.
     *
     * Generated from protobuf field <code>repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $rag_file_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $rag_corpus
     *           Optional. RagCorpora resource name.
     *           Format:
     *           `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $rag_file_ids
     *           Optional. rag_file_id. The files should be in the same rag_corpus set
     *           in rag_corpus field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. RagCorpora resource name.
     * Format:
     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
     *
     * Generated from protobuf field <code>string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getRagCorpus()
    {
        return $this->rag_corpus;
    }

    /**
     * Optional. RagCorpora resource name.
     * Format:
     * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
     *
     * Generated from protobuf field <code>string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setRagCorpus($var)
    {
        GPBUtil::checkString($var, True);
        $this->rag_corpus = $var;

        return $this;
    }

    /**
     * Optional. rag_file_id. The files should be in the same rag_corpus set
     * in rag_corpus field.
     *
     * Generated from protobuf field <code>repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRagFileIds()
    {
        return $this->rag_file_ids;
    }

    /**
     * Optional. rag_file_id. The files should be in the same rag_corpus set
     * in rag_corpus field.
     *
     * Generated from protobuf field <code>repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRagFileIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->rag_file_ids = $arr;

        return $this;
    }

}


