# REST Resource: projects.locations.datasets

- [Resource: Dataset](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets#Dataset)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets#Dataset.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets#METHODS_SUMMARY)

## Resource: Dataset

A dataset that hosts the examples (sentence pairs) used for translation models.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "sourceLanguageCode": string, "targetLanguageCode": string, "exampleCount": integer, "trainExampleCount": integer, "validateExampleCount": integer, "testExampleCount": integer, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{locationId}/datasets/{datasetId}` |
| `displayName` | `string` The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. |
| `sourceLanguageCode` | `string` The BCP-47 language code of the source language. |
| `targetLanguageCode` | `string` The BCP-47 language code of the target language. |
| `exampleCount` | `integer` Output only. The number of examples in the dataset. |
| `trainExampleCount` | `integer` Output only. Number of training examples (sentence pairs). |
| `validateExampleCount` | `integer` Output only. Number of validation examples (sentence pairs). |
| `testExampleCount` | `integer` Output only. Number of test examples (sentence pairs). |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Timestamp when this dataset was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Timestamp when this dataset was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/create` | Creates a Dataset. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/delete` | Deletes a dataset and all of its contents. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/exportData` | Exports dataset's data to the provided output location. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/get` | Gets a Dataset. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/importData` | Import sentence pairs into translation Dataset. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.datasets/list` | Lists datasets. |