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

Describes what part of the Dataset is to be exported, the destination of
the export and how to export.

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

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## 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 Google Cloud Storage location where the output is to be written to. In the given directory a new directory will be created with name: `export-data-<dataset-display-name>-<timestamp-of-export-call>` where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export output will be written into that directory. Inside that directory, annotations with the same schema will be grouped into sub directories which are named with the corresponding annotations' schema title. Inside these sub directories, a schema.yaml will be created to describe the output format. |
| `↳ fraction_split` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportFractionSplit` Split based on fractions defining the size of each set. |
| `↳ filter_split` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportFilterSplit` Split based on the provided filters for each set. |
| `↳ annotations_filter` | `string` An expression for filtering what part of the Dataset is to be exported. Only Annotations that match this filter will be exported. The filter syntax is the same as in [ListAnnotations](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Client.DatasetServiceClient#_Google_Cloud_AIPlatform_V1_Client_DatasetServiceClient__listAnnotations__). |
| `↳ saved_query_id` | `string` The ID of a SavedQuery (annotation set) under the Dataset specified by [ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__) used for filtering Annotations for training. Only used for custom training data export use cases. Only applicable to Datasets that have SavedQueries. Only Annotations that are associated with this SavedQuery are used in respectively training. When used in conjunction with [annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__), the Annotations used for training are filtered by both [saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__) and [annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__). Only one of [saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__) and [annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__) should be specified as both of them represent the same thing: problem type. |
| `↳ annotation_schema_uri` | `string` The Cloud Storage URI that points to a YAML file describing the annotation schema. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the chosen schema must be consistent with [metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Dataset#_Google_Cloud_AIPlatform_V1_Dataset__getMetadataSchemaUri__) of the Dataset specified by [ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__). Only used for custom training data export use cases. Only applicable to Datasets that have DataItems and Annotations. Only Annotations that both match this schema and belong to DataItems not ignored by the split method are used in respectively training, validation or test role, depending on the role of the DataItem they are on. When used in conjunction with [annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__), the Annotations used for training are filtered by both [annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__) and [annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__). |
| `↳ export_use` | `int` Indicates the usage of the exported files. |

### getGcsDestination

The Google Cloud Storage location where the output is to be written to.

In the given directory a new directory will be created with name:
`export-data-<dataset-display-name>-<timestamp-of-export-call>` where
timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
output will be written into that directory. Inside that directory,
annotations with the same schema will be grouped into sub directories
which are named with the corresponding annotations' schema title. Inside
these sub directories, a schema.yaml will be created to describe the
output format.

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

### hasGcsDestination

### setGcsDestination

The Google Cloud Storage location where the output is to be written to.

In the given directory a new directory will be created with name:
`export-data-<dataset-display-name>-<timestamp-of-export-call>` where
timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export
output will be written into that directory. Inside that directory,
annotations with the same schema will be grouped into sub directories
which are named with the corresponding annotations' schema title. Inside
these sub directories, a schema.yaml will be created to describe the
output format.

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

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

### getFractionSplit

Split based on fractions defining the size of each set.

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

### hasFractionSplit

### setFractionSplit

Split based on fractions defining the size of each set.

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

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

### getFilterSplit

Split based on the provided filters for each set.

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

### hasFilterSplit

### setFilterSplit

Split based on the provided filters for each set.

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

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

### getAnnotationsFilter

An expression for filtering what part of the Dataset is to be exported.

Only Annotations that match this filter will be exported. The filter syntax
is the same as in
[ListAnnotations](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Client.DatasetServiceClient#_Google_Cloud_AIPlatform_V1_Client_DatasetServiceClient__listAnnotations__).

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

### setAnnotationsFilter

An expression for filtering what part of the Dataset is to be exported.

Only Annotations that match this filter will be exported. The filter syntax
is the same as in
[ListAnnotations](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Client.DatasetServiceClient#_Google_Cloud_AIPlatform_V1_Client_DatasetServiceClient__listAnnotations__).

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

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

### getSavedQueryId

The ID of a SavedQuery (annotation set) under the Dataset specified by
[ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__)
used for filtering Annotations for training.

Only used for custom training data export use cases.
Only applicable to Datasets that have SavedQueries.
Only Annotations that are associated with this SavedQuery are used in
respectively training. When used in conjunction with
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__),
the Annotations used for training are filtered by both
[saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__)
and
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__).
Only one of
[saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__)
and
[annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__)
should be specified as both of them represent the same thing: problem type.

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

### setSavedQueryId

The ID of a SavedQuery (annotation set) under the Dataset specified by
[ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__)
used for filtering Annotations for training.

Only used for custom training data export use cases.
Only applicable to Datasets that have SavedQueries.
Only Annotations that are associated with this SavedQuery are used in
respectively training. When used in conjunction with
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__),
the Annotations used for training are filtered by both
[saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__)
and
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__).
Only one of
[saved_query_id](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getSavedQueryId__)
and
[annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__)
should be specified as both of them represent the same thing: problem type.

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

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

### getAnnotationSchemaUri

The Cloud Storage URI that points to a YAML file describing the annotation
schema. The schema is defined as an OpenAPI 3.0.2 [Schema
Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).

The schema files that can be used here are found in
gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
chosen schema must be consistent with
[metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Dataset#_Google_Cloud_AIPlatform_V1_Dataset__getMetadataSchemaUri__) of the
Dataset specified by
[ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__).
Only used for custom training data export use cases.
Only applicable to Datasets that have DataItems and Annotations.
Only Annotations that both match this schema and belong to DataItems not
ignored by the split method are used in respectively training, validation
or test role, depending on the role of the DataItem they are on.
When used in conjunction with
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__),
the Annotations used for training are filtered by both
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__)
and
[annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__).

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

### setAnnotationSchemaUri

The Cloud Storage URI that points to a YAML file describing the annotation
schema. The schema is defined as an OpenAPI 3.0.2 [Schema
Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).

The schema files that can be used here are found in
gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
chosen schema must be consistent with
[metadata](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Dataset#_Google_Cloud_AIPlatform_V1_Dataset__getMetadataSchemaUri__) of the
Dataset specified by
[ExportDataRequest.name](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataRequest#_Google_Cloud_AIPlatform_V1_ExportDataRequest__getName__).
Only used for custom training data export use cases.
Only applicable to Datasets that have DataItems and Annotations.
Only Annotations that both match this schema and belong to DataItems not
ignored by the split method are used in respectively training, validation
or test role, depending on the role of the DataItem they are on.
When used in conjunction with
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__),
the Annotations used for training are filtered by both
[annotations_filter](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationsFilter__)
and
[annotation_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig#_Google_Cloud_AIPlatform_V1_ExportDataConfig__getAnnotationSchemaUri__).

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

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

### getExportUse

Indicates the usage of the exported files.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ExportUse](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig.ExportUse). |

### setExportUse

Indicates the usage of the exported files.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ExportUse](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExportDataConfig.ExportUse). |

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

### getDestination

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

### getSplit

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