# Google Cloud Ai Platform V1 Client - Class ImportRagFilesConfig (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ImportRagFilesConfig.

Config for importing RagFiles.

Generated from protobuf message `google.cloud.aiplatform.v1.ImportRagFilesConfig`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsSource` Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats: - `gs://bucket_name/my_directory/object_name/my_file.txt` - `gs://bucket_name/my_directory` |
| `↳ google_drive_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GoogleDriveSource` Google Drive location. Supports importing individual files as well as Google Drive folders. |
| `↳ slack_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SlackSource` Slack channels with their corresponding access tokens. |
| `↳ jira_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.JiraSource` Jira queries with their corresponding authentication. |
| `↳ share_point_sources` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SharePointSources` SharePoint sources. |
| `↳ partial_failure_gcs_sink` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination` The Cloud Storage path to write partial failures to. Deprecated. Prefer to use `import_result_gcs_sink`. |
| `↳ partial_failure_bigquery_sink` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination` The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use `import_result_bq_sink`. |
| `↳ import_result_gcs_sink` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination` The Cloud Storage path to write import result to. |
| `↳ import_result_bigquery_sink` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination` The BigQuery destination to write import result to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. |
| `↳ rag_file_transformation_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileTransformationConfig` Specifies the transformation config for RagFiles. |
| `↳ rag_file_parsing_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileParsingConfig` Optional. Specifies the parsing config for RagFiles. RAG will use the default parser if this field is not set. |
| `↳ max_embedding_requests_per_min` | `int` Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used. |
| `↳ rebuild_ann_index` | `bool` Rebuilds the ANN index to optimize for recall on the imported data. Only applicable for RagCorpora running on RagManagedDb with `retrieval_strategy` set to `ANN`. The rebuild will be performed using the existing ANN config set on the RagCorpus. To change the ANN config, please use the UpdateRagCorpus API. Default is false, i.e., index is not rebuilt. |

### getGcsSource

Google Cloud Storage location. Supports importing individual files as
well as entire Google Cloud Storage directories. Sample formats:

- `gs://bucket_name/my_directory/object_name/my_file.txt`
- `gs://bucket_name/my_directory`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsSource|null` |   |

### hasGcsSource

### setGcsSource

Google Cloud Storage location. Supports importing individual files as
well as entire Google Cloud Storage directories. Sample formats:

- `gs://bucket_name/my_directory/object_name/my_file.txt`
- `gs://bucket_name/my_directory`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGoogleDriveSource

Google Drive location. Supports importing individual files as
well as Google Drive folders.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GoogleDriveSource|null` |   |

### hasGoogleDriveSource

### setGoogleDriveSource

Google Drive location. Supports importing individual files as
well as Google Drive folders.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GoogleDriveSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSlackSource

Slack channels with their corresponding access tokens.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SlackSource|null` |   |

### hasSlackSource

### setSlackSource

Slack channels with their corresponding access tokens.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SlackSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getJiraSource

Jira queries with their corresponding authentication.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.JiraSource|null` |   |

### hasJiraSource

### setJiraSource

Jira queries with their corresponding authentication.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.JiraSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSharePointSources

SharePoint sources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SharePointSources|null` |   |

### hasSharePointSources

### setSharePointSources

SharePoint sources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.SharePointSources` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPartialFailureGcsSink

The Cloud Storage path to write partial failures to.

Deprecated. Prefer to use `import_result_gcs_sink`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination|null` |   |

### hasPartialFailureGcsSink

### setPartialFailureGcsSink

The Cloud Storage path to write partial failures to.

Deprecated. Prefer to use `import_result_gcs_sink`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPartialFailureBigquerySink

The BigQuery destination to write partial failures to. It should be a
bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
table does not exist, it will be created with the expected schema. If the
table exists, the schema will be validated and data will be added to this
existing table.
Deprecated. Prefer to use `import_result_bq_sink`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination|null` |   |

### hasPartialFailureBigquerySink

### setPartialFailureBigquerySink

The BigQuery destination to write partial failures to. It should be a
bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
table does not exist, it will be created with the expected schema. If the
table exists, the schema will be validated and data will be added to this
existing table.
Deprecated. Prefer to use `import_result_bq_sink`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImportResultGcsSink

The Cloud Storage path to write import result to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination|null` |   |

### hasImportResultGcsSink

### setImportResultGcsSink

The Cloud Storage path to write import result to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImportResultBigquerySink

The BigQuery destination to write import result to. It should be a
bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
table does not exist, it will be created with the expected schema. If the
table exists, the schema will be validated and data will be added to this
existing table.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination|null` |   |

### hasImportResultBigquerySink

### setImportResultBigquerySink

The BigQuery destination to write import result to. It should be a
bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the
table does not exist, it will be created with the expected schema. If the
table exists, the schema will be validated and data will be added to this
existing table.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRagFileTransformationConfig

Specifies the transformation config for RagFiles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileTransformationConfig|null` |   |

### hasRagFileTransformationConfig

### clearRagFileTransformationConfig

### setRagFileTransformationConfig

Specifies the transformation config for RagFiles.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileTransformationConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRagFileParsingConfig

Optional. Specifies the parsing config for RagFiles.

RAG will use the default parser if this field is not set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileParsingConfig|null` |   |

### hasRagFileParsingConfig

### clearRagFileParsingConfig

### setRagFileParsingConfig

Optional. Specifies the parsing config for RagFiles.

RAG will use the default parser if this field is not set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.RagFileParsingConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxEmbeddingRequestsPerMin

Optional. The max number of queries per minute that this job is allowed to
make to the embedding model specified on the corpus. This value is specific
to this job and not shared across other import jobs. Consult the Quotas
page on the project to set an appropriate value here.

If unspecified, a default value of 1,000 QPM would be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxEmbeddingRequestsPerMin

Optional. The max number of queries per minute that this job is allowed to
make to the embedding model specified on the corpus. This value is specific
to this job and not shared across other import jobs. Consult the Quotas
page on the project to set an appropriate value here.

If unspecified, a default value of 1,000 QPM would be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRebuildAnnIndex

Rebuilds the ANN index to optimize for recall on the imported data.

Only applicable for RagCorpora running on RagManagedDb with
`retrieval_strategy` set to `ANN`. The rebuild will be performed using the
existing ANN config set on the RagCorpus. To change the ANN config, please
use the UpdateRagCorpus API.
Default is false, i.e., index is not rebuilt.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRebuildAnnIndex

Rebuilds the ANN index to optimize for recall on the imported data.

Only applicable for RagCorpora running on RagManagedDb with
`retrieval_strategy` set to `ANN`. The rebuild will be performed using the
existing ANN config set on the RagCorpus. To change the ANN config, please
use the UpdateRagCorpus API.
Default is false, i.e., index is not rebuilt.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImportSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getPartialFailureSink

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getImportResultSink

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |