<?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 uploading RagFile.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UploadRagFileConfig</code>
 */
class UploadRagFileConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Specifies the transformation config for RagFiles.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3;</code>
     */
    protected $rag_file_transformation_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\RagFileTransformationConfig $rag_file_transformation_config
     *           Specifies the transformation config for RagFiles.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VertexRagData::initOnce();
        parent::__construct($data);
    }

    /**
     * Specifies the transformation config for RagFiles.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3;</code>
     * @return \Google\Cloud\AIPlatform\V1\RagFileTransformationConfig|null
     */
    public function getRagFileTransformationConfig()
    {
        return $this->rag_file_transformation_config;
    }

    public function hasRagFileTransformationConfig()
    {
        return isset($this->rag_file_transformation_config);
    }

    public function clearRagFileTransformationConfig()
    {
        unset($this->rag_file_transformation_config);
    }

    /**
     * Specifies the transformation config for RagFiles.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.RagFileTransformationConfig rag_file_transformation_config = 3;</code>
     * @param \Google\Cloud\AIPlatform\V1\RagFileTransformationConfig $var
     * @return $this
     */
    public function setRagFileTransformationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\RagFileTransformationConfig::class);
        $this->rag_file_transformation_config = $var;

        return $this;
    }

}

