# REST Resource: projects.locations

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

## Resource: Location

A resource that represents a Google Cloud location.

| JSON representation |
|---|
| ``` { "name": string, "locationId": string, "displayName": string, "labels": { string: string, ... }, "metadata": { "@type": string, field1: ..., ... } } ``` |

| Fields ||
|---|---|
| `name` | `string` Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` |
| `locationId` | `string` The canonical id for this location. For example: `"us-east1"`. |
| `displayName` | `string` The friendly name for this location, typically a nearby city name. For example, "Tokyo". |
| `labels` | `map (key: string, value: string)` Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} |
| `metadata` | `object` Service-specific metadata. For example the available capacity at the given location. An object containing fields of an arbitrary type. An additional field `"@type"` contains a URI identifying the type. Example: `{ "id": 1234, "@type": "types.example.com/standard/id" }`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/adaptiveMtTranslate` | Translate text using Adaptive MT. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/batchTranslateDocument` | Translates a large volume of document in asynchronous batch mode. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/batchTranslateText` | Translates a large volume of text in asynchronous batch mode. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/detectLanguage` | Detects the language of text within a request. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/get` | Gets information about a location. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/getSupportedLanguages` | Returns a list of supported languages for translation. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/list` | Lists information about the supported locations for this service. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/romanizeText` | Romanize input text written in non-Latin scripts to Latin text. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/translateDocument` | Translates documents in synchronous mode. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations/translateText` | Translates input text and returns translated text. |