This guide describes the Vertex AI Translation API.

## Service: {TRANSLATION_GDC_ENDPOINT}

### Service endpoint

A service endpoint is a base URL that specifies the
network address of an API service.

{TRANSLATION_GDC_ENDPOINT} is a service that might have multiple service endpoints.
Its service endpoint is `https://{TRANSLATION_GDC_ENDPOINT}`.
Replace `TRANSLATION_GDC_ENDPOINT` with the endpoint used to access the Vertex
AI Translation API. For more information, see [View service statuses and endpoints](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/application/ao-user/vertex-ai-api-status).

All URIs on this page are relative to the {TRANSLATION_GDC_ENDPOINT} service endpoint.

## REST Resource: [v3.projects](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.locations/batchTranslateDocument` | `POST /v3/{parent}:batchTranslateDocument` Translates a large volume of document in asynchronous batch mode. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects/detectLanguage` | `POST /v3/{parent}:detectLanguage` Detects the language of text within a request. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects/getSupportedLanguages` | `GET /v3/{parent}:getSupportedLanguages` Returns a list of supported languages for translation. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.locations/translateDocument` | `POST /v3/{parent}:translateDocument` Translates documents in synchronous mode. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects/translateText` | `POST /v3/{parent}:translateText` Translates input text and returns translated text. |

## REST Resource: [v3.projects.glossaries](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.glossaries)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.glossaries/create` | `POST /v3/{parent}/glossaries` Creates a glossary and returns the long-running operation. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.glossaries/delete` | `DELETE /v3/{name}` Deletes a glossary if the glossary hasn't been created. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.glossaries/get` | `GET /v3/{name}` Gets a glossary. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.glossaries/list` | `GET /v3/{parent}/glossaries` Lists glossaries in a project. |

## REST Resource: [v3.projects.operations](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations/cancel` | `POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations/delete` | `DELETE https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations/get` | `GET /v3/{name}` Gets the state of a long-running operation. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations/list` | `GET /v3/{name}/operations` Lists operations that match the specified filter in the request. |
| `https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/vertex-ai/translation/rest/v3/projects.operations/wait` | `POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:wait` Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. |