- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/OutputConfig.md.txt#SCHEMA_REPRESENTATION)
- [GcsDestination](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/OutputConfig.md.txt#GcsDestination)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/OutputConfig.md.txt#GcsDestination.SCHEMA_REPRESENTATION)
- [BigQueryDestination](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/OutputConfig.md.txt#BigQueryDestination)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/ai-commerce-search/reference/rest/v2alpha/OutputConfig.md.txt#BigQueryDestination.SCHEMA_REPRESENTATION)

The output configuration setting.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "gcsDestination": { object (`GcsDestination`) }, "bigqueryDestination": { object (`BigQueryDestination`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The configuration of destination for holding output data. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `gcsDestination` | ``object (`GcsDestination`)`` The Google Cloud Storage location where the output is to be written to. |
| `bigqueryDestination` | ``object (`BigQueryDestination`)`` The BigQuery location where the output is to be written to. |
| End of mutually exclusive fields. ||

## GcsDestination

The Google Cloud Storage output destination configuration.

| JSON representation |
|---|
| ``` { "outputUriPrefix": string } ``` |

| Fields ||
|---|---|
| `outputUriPrefix` | `string` Required. The output uri prefix for saving output data to json files. Some mapping examples are as follows: outputUriPrefix sample output(assuming the object is foo.json) ======================== ============================================= gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json |

## BigQueryDestination

The BigQuery output destination configuration.

| JSON representation |
|---|
| ``` { "datasetId": string, "tableIdPrefix": string, "tableType": string } ``` |

| Fields ||
|---|---|
| `datasetId` | `string` Required. The ID of a BigQuery Dataset. |
| `tableIdPrefix` | `string` Required. The prefix of exported BigQuery tables. |
| `tableType` | `string` Required. Describes the table type. The following values are supported: - `table`: A BigQuery native table. - `view`: A virtual table defined by a SQL query. |