locations
Creates, updates, deletes, gets or lists a locations
resource.
Overview
Name | locations |
Type | Resource |
Id | google.translate.locations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" |
displayName | string | The friendly name for this location, typically a nearby city name. For example, "Tokyo". |
labels | object | Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} |
locationId | string | The canonical id for this location. For example: "us-east1" . |
metadata | object | Service-specific metadata. For example the available capacity at the given location. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_get | SELECT | locationsId, projectsId | Gets information about a location. |
projects_locations_list | SELECT | projectsId | Lists information about the supported locations for this service. |
projects_locations_adaptive_mt_translate | EXEC | locationsId, projectsId | Translate text using Adaptive MT. |
projects_locations_batch_translate_document | EXEC | locationsId, projectsId | Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. |
projects_locations_batch_translate_text | EXEC | locationsId, projectsId | Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call. |
projects_locations_detect_language | EXEC | locationsId, projectsId | Detects the language of text within a request. |
projects_locations_romanize_text | EXEC | locationsId, projectsId | Romanize input text written in non-Latin scripts to Latin text. |
projects_locations_translate_document | EXEC | locationsId, projectsId | Translates documents in synchronous mode. |
projects_locations_translate_text | EXEC | locationsId, projectsId | Translates input text and returns translated text. |
SELECT
examples
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.translate.locations
WHERE projectsId = '{{ projectsId }}';