# Google Cloud Ai Platform V1 Client - Class OutputConfig (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 OutputConfig.

Configures the output of
[BatchPredictionJob](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob). See
[Model.supported_output_storage_formats](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedOutputStorageFormats__)
for supported output formats, and how predictions are expressed via any of
them.

Generated from protobuf message `google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1 \\ BatchPredictionJob

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.GcsDestination` The Cloud Storage location of the directory where the output is to be written to. In the given directory a new directory is created. Its name is `prediction-<model-display-name>-<job-create-time>`, where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. Inside of it files `predictions_0001.<extension>`, `predictions_0002.<extension>`, ..., `predictions_N.<extension>` are created where `<extension>` depends on chosen [predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__), and N may equal 0001 and depends on the total number of successfully predicted instances. If the Model has both [instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__) and [prediction](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__) schemata defined then each such file contains predictions as per the [predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__). If prediction for any instance failed (partially or completely), then an additional `errors_0001.<extension>`, `errors_0002.<extension>`,..., `errors_N.<extension>` files are created (N depends on total number of failed predictions). These files contain the failed instances, as per their schema, followed by an additional `error` field which as value has [google.rpc.Status](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html) containing only `code` and `message` fields. |
| `↳ bigquery_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BigQueryDestination` The BigQuery project or dataset location where the output is to be written to. If project is provided, a new dataset is created with name `prediction_<model-display-name>_<job-create-time>` where |
| `↳ vertex_multimodal_dataset_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.VertexMultimodalDatasetDestination` The details for a Vertex Multimodal Dataset that will be created for the output. |
| `↳ predictions_format` | `string` Required. The format in which Vertex AI gives the predictions, must be one of the [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__) [supported_output_storage_formats](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedOutputStorageFormats__). |

### getGcsDestination

The Cloud Storage location of the directory where the output is
to be written to. In the given directory a new directory is created.

Its name is `prediction-<model-display-name>-<job-create-time>`,
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format.
Inside of it files `predictions_0001.<extension>`,
`predictions_0002.<extension>`, ..., `predictions_N.<extension>`
are created where `<extension>` depends on chosen
[predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__),
and N may equal 0001 and depends on the total number of successfully
predicted instances. If the Model has both
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__)
schemata defined then each such file contains predictions as per the
[predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__).
If prediction for any instance failed (partially or completely), then
an additional `errors_0001.<extension>`, `errors_0002.<extension>`,...,
`errors_N.<extension>` files are created (N depends on total number
of failed predictions). These files contain the failed instances,
as per their schema, followed by an additional `error` field which as
value has [google.rpc.Status](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html)
containing only `code` and `message` fields.

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

### hasGcsDestination

### setGcsDestination

The Cloud Storage location of the directory where the output is
to be written to. In the given directory a new directory is created.

Its name is `prediction-<model-display-name>-<job-create-time>`,
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format.
Inside of it files `predictions_0001.<extension>`,
`predictions_0002.<extension>`, ..., `predictions_N.<extension>`
are created where `<extension>` depends on chosen
[predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__),
and N may equal 0001 and depends on the total number of successfully
predicted instances. If the Model has both
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__)
schemata defined then each such file contains predictions as per the
[predictions_format](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig#_Google_Cloud_AIPlatform_V1_BatchPredictionJob_OutputConfig__getPredictionsFormat__).
If prediction for any instance failed (partially or completely), then
an additional `errors_0001.<extension>`, `errors_0002.<extension>`,...,
`errors_N.<extension>` files are created (N depends on total number
of failed predictions). These files contain the failed instances,
as per their schema, followed by an additional `error` field which as
value has [google.rpc.Status](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html)
containing only `code` and `message` fields.

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

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

### getBigqueryDestination

The BigQuery project or dataset location where the output is to be
written to. If project is provided, a new dataset is created with name
`prediction_<model-display-name>_<job-create-time>`
where


If the Model has both
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__)
schemata defined then the tables have columns as follows: The
`predictions` table contains instances for which the prediction
succeeded, it has columns as per a concatenation of the Model's
instance and prediction schemata. The `errors` table contains rows for
which the prediction has failed, it has instance columns, as per the
instance schema, followed by a single "errors" column, which as values
has [google.rpc.Status](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html)
represented as a STRUCT, and containing only `code` and `message`.

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

### hasBigqueryDestination

### setBigqueryDestination

The BigQuery project or dataset location where the output is to be
written to. If project is provided, a new dataset is created with name
`prediction_<model-display-name>_<job-create-time>`
where


If the Model has both
[instance](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__)
schemata defined then the tables have columns as follows: The
`predictions` table contains instances for which the prediction
succeeded, it has columns as per a concatenation of the Model's
instance and prediction schemata. The `errors` table contains rows for
which the prediction has failed, it has instance columns, as per the
instance schema, followed by a single "errors" column, which as values
has [google.rpc.Status](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html)
represented as a STRUCT, and containing only `code` and `message`.

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

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

### getVertexMultimodalDatasetDestination

The details for a Vertex Multimodal Dataset that will be created for
the output.

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

### hasVertexMultimodalDatasetDestination

### setVertexMultimodalDatasetDestination

The details for a Vertex Multimodal Dataset that will be created for
the output.

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

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

### getPredictionsFormat

Required. The format in which Vertex AI gives the predictions, must be
one of the [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[supported_output_storage_formats](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedOutputStorageFormats__).

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

### setPredictionsFormat

Required. The format in which Vertex AI gives the predictions, must be
one of the [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[supported_output_storage_formats](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedOutputStorageFormats__).

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

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

### getDestination

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