projects
Creates, updates, deletes, gets or lists a projects
resource.
Overview
Name | projects |
Type | Resource |
Id | google.translate.projects |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_translate_text | exec | projectsId | Translates input text and returns translated text. | |
projects_romanize_text | exec | projectsId | Romanize input text written in non-Latin scripts to Latin text. | |
projects_detect_language | exec | projectsId | Detects the language of text within a request. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
projectsId | string |
Lifecycle Methods
- projects_translate_text
- projects_romanize_text
- projects_detect_language
Translates input text and returns translated text.
EXEC google.translate.projects.projects_translate_text
@projectsId='{{ projectsId }}' --required
@@json=
'{
"contents": "{{ contents }}",
"mimeType": "{{ mimeType }}",
"sourceLanguageCode": "{{ sourceLanguageCode }}",
"targetLanguageCode": "{{ targetLanguageCode }}",
"model": "{{ model }}",
"glossaryConfig": "{{ glossaryConfig }}",
"transliterationConfig": "{{ transliterationConfig }}",
"labels": "{{ labels }}"
}';
Romanize input text written in non-Latin scripts to Latin text.
EXEC google.translate.projects.projects_romanize_text
@projectsId='{{ projectsId }}' --required
@@json=
'{
"contents": "{{ contents }}",
"sourceLanguageCode": "{{ sourceLanguageCode }}"
}';
Detects the language of text within a request.
EXEC google.translate.projects.projects_detect_language
@projectsId='{{ projectsId }}' --required
@@json=
'{
"model": "{{ model }}",
"content": "{{ content }}",
"mimeType": "{{ mimeType }}",
"labels": "{{ labels }}"
}';