# REST Resource: projects.locations.models

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

## Resource: Model

A trained translation model.

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

| Fields ||
|---|---|
| `name` | `string` The resource name of the model, in form of `projects/{project-number-or-id}/locations/{locationId}/models/{modelId}` |
| `displayName` | `string` The name of the model 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. |
| `dataset` | `string` The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{locationId}/datasets/{datasetId}` |
| `sourceLanguageCode` | `string` Output only. The BCP-47 language code of the source language. |
| `targetLanguageCode` | `string` Output only. The BCP-47 language code of the target language. |
| `trainExampleCount` | `integer` Output only. Number of examples (sentence pairs) used to train the model. |
| `validateExampleCount` | `integer` Output only. Number of examples (sentence pairs) used to validate the model. |
| `testExampleCount` | `integer` Output only. Number of examples (sentence pairs) used to test the model. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Timestamp when the model resource was created, which is also when the training started. 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 model 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.models/create` | Creates a Model. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/delete` | Deletes a model. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/get` | Gets a model. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.models/list` | Lists models. |