Google Cloud Ai Platform V1 Client - Class UploadRagFileRequest (1.13.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class UploadRagFileRequest.

Request message for VertexRagDataService.UploadRagFile.

Generated from protobuf message google.cloud.aiplatform.v1.UploadRagFileRequest

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

↳ rag_file RagFile

Required. The RagFile to upload.

↳ upload_rag_file_config UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

getParent

Required. The name of the RagCorpus resource into which to upload the file.

Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

Returns
Type Description
string

setParent

Required. The name of the RagCorpus resource into which to upload the file.

Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

Parameter
Name Description
var string
Returns
Type Description
$this

getRagFile

Required. The RagFile to upload.

Returns
Type Description
RagFile|null

hasRagFile

clearRagFile

setRagFile

Required. The RagFile to upload.

Parameter
Name Description
var RagFile
Returns
Type Description
$this

getUploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus.

VertexRagDataService.UploadRagFile.

Returns
Type Description
UploadRagFileConfig|null

hasUploadRagFileConfig

clearUploadRagFileConfig

setUploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus.

VertexRagDataService.UploadRagFile.

Parameter
Name Description
var UploadRagFileConfig
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus} Please see VertexRagDataServiceClient::ragCorpusName() for help formatting this field.

ragFile RagFile

Required. The RagFile to upload.

uploadRagFileConfig UploadRagFileConfig

Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.

Returns
Type Description
UploadRagFileRequest