|
1260 | 1260 | "$ref": "Operation"
|
1261 | 1261 | },
|
1262 | 1262 | "scopes": [
|
1263 |
| - "https://www.googleapis.com/auth/cloud-platform" |
| 1263 | + "https://www.googleapis.com/auth/cloud-platform", |
| 1264 | + "https://www.googleapis.com/auth/cloud-translation" |
1264 | 1265 | ]
|
1265 | 1266 | }
|
1266 | 1267 | },
|
|
1395 | 1396 | ],
|
1396 | 1397 | "parameters": {
|
1397 | 1398 | "name": {
|
1398 |
| - "description": "Required. The resource name of the entry. Format: \"projects/*/locations/*/glossaries/*/glossaryEntries/*\"", |
| 1399 | + "description": "Identifier. The resource name of the entry. Format: \"projects/*/locations/*/glossaries/*/glossaryEntries/*\"", |
1399 | 1400 | "location": "path",
|
1400 | 1401 | "pattern": "^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/glossaryEntries/[^/]+$",
|
1401 | 1402 | "required": true,
|
|
1706 | 1707 | }
|
1707 | 1708 | }
|
1708 | 1709 | },
|
1709 |
| - "revision": "20240126", |
| 1710 | + "revision": "20240718", |
1710 | 1711 | "rootUrl": "https://translation.googleapis.com/",
|
1711 | 1712 | "schemas": {
|
1712 | 1713 | "AdaptiveMtDataset": {
|
|
1817 | 1818 | "id": "AdaptiveMtTranslateRequest",
|
1818 | 1819 | "properties": {
|
1819 | 1820 | "content": {
|
1820 |
| - "description": "Required. The content of the input in string format. For now only one sentence per request is supported.", |
| 1821 | + "description": "Required. The content of the input in string format.", |
1821 | 1822 | "items": {
|
1822 | 1823 | "type": "string"
|
1823 | 1824 | },
|
|
1826 | 1827 | "dataset": {
|
1827 | 1828 | "description": "Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`",
|
1828 | 1829 | "type": "string"
|
| 1830 | + }, |
| 1831 | + "glossaryConfig": { |
| 1832 | + "$ref": "TranslateTextGlossaryConfig", |
| 1833 | + "description": "Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned." |
| 1834 | + }, |
| 1835 | + "referenceSentenceConfig": { |
| 1836 | + "$ref": "ReferenceSentenceConfig", |
| 1837 | + "description": "Configuration for caller provided reference sentences." |
1829 | 1838 | }
|
1830 | 1839 | },
|
1831 | 1840 | "type": "object"
|
|
1834 | 1843 | "description": "An AdaptiveMtTranslate response.",
|
1835 | 1844 | "id": "AdaptiveMtTranslateResponse",
|
1836 | 1845 | "properties": {
|
| 1846 | + "glossaryTranslations": { |
| 1847 | + "description": "Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.", |
| 1848 | + "items": { |
| 1849 | + "$ref": "AdaptiveMtTranslation" |
| 1850 | + }, |
| 1851 | + "type": "array" |
| 1852 | + }, |
1837 | 1853 | "languageCode": {
|
1838 | 1854 | "description": "Output only. The translation's language code.",
|
1839 | 1855 | "readOnly": true,
|
|
2360 | 2376 | "type": "string"
|
2361 | 2377 | },
|
2362 | 2378 | "name": {
|
2363 |
| - "description": "Required. The resource name of the entry. Format: \"projects/*/locations/*/glossaries/*/glossaryEntries/*\"", |
| 2379 | + "description": "Identifier. The resource name of the entry. Format: \"projects/*/locations/*/glossaries/*/glossaryEntries/*\"", |
2364 | 2380 | "type": "string"
|
2365 | 2381 | },
|
2366 | 2382 | "termsPair": {
|
|
2848 | 2864 | },
|
2849 | 2865 | "type": "object"
|
2850 | 2866 | },
|
| 2867 | + "ReferenceSentenceConfig": { |
| 2868 | + "description": "Message of caller-provided reference configuration.", |
| 2869 | + "id": "ReferenceSentenceConfig", |
| 2870 | + "properties": { |
| 2871 | + "referenceSentencePairLists": { |
| 2872 | + "description": "Reference sentences pair lists. Each list will be used as the references to translate the sentence under \"content\" field at the corresponding index. Length of the list is required to be equal to the length of \"content\" field.", |
| 2873 | + "items": { |
| 2874 | + "$ref": "ReferenceSentencePairList" |
| 2875 | + }, |
| 2876 | + "type": "array" |
| 2877 | + }, |
| 2878 | + "sourceLanguageCode": { |
| 2879 | + "description": "Source language code.", |
| 2880 | + "type": "string" |
| 2881 | + }, |
| 2882 | + "targetLanguageCode": { |
| 2883 | + "description": "Target language code.", |
| 2884 | + "type": "string" |
| 2885 | + } |
| 2886 | + }, |
| 2887 | + "type": "object" |
| 2888 | + }, |
| 2889 | + "ReferenceSentencePair": { |
| 2890 | + "description": "A pair of sentences used as reference in source and target languages.", |
| 2891 | + "id": "ReferenceSentencePair", |
| 2892 | + "properties": { |
| 2893 | + "sourceSentence": { |
| 2894 | + "description": "Source sentence in the sentence pair.", |
| 2895 | + "type": "string" |
| 2896 | + }, |
| 2897 | + "targetSentence": { |
| 2898 | + "description": "Target sentence in the sentence pair.", |
| 2899 | + "type": "string" |
| 2900 | + } |
| 2901 | + }, |
| 2902 | + "type": "object" |
| 2903 | + }, |
| 2904 | + "ReferenceSentencePairList": { |
| 2905 | + "description": "A list of reference sentence pairs.", |
| 2906 | + "id": "ReferenceSentencePairList", |
| 2907 | + "properties": { |
| 2908 | + "referenceSentencePairs": { |
| 2909 | + "description": "Reference sentence pairs.", |
| 2910 | + "items": { |
| 2911 | + "$ref": "ReferenceSentencePair" |
| 2912 | + }, |
| 2913 | + "type": "array" |
| 2914 | + } |
| 2915 | + }, |
| 2916 | + "type": "object" |
| 2917 | + }, |
2851 | 2918 | "Romanization": {
|
2852 | 2919 | "description": "A single romanization response.",
|
2853 | 2920 | "id": "Romanization",
|
|
3078 | 3145 | "type": "string"
|
3079 | 3146 | },
|
3080 | 3147 | "model": {
|
3081 |
| - "description": "Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, For global (non-regionalized) requests, use `location-id` `global`. For example, `projects/{project-number-or-id}/locations/global/models/general/nmt`. If not provided, the default Google model (NMT) will be used", |
| 3148 | + "description": "Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models: `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, - Translation LLM models: `projects/{project-number-or-id}/locations/{location-id}/models/general/translation-llm`, For global (non-regionalized) requests, use `location-id` `global`. For example, `projects/{project-number-or-id}/locations/global/models/general/nmt`. If not provided, the default Google model (NMT) will be used", |
3082 | 3149 | "type": "string"
|
3083 | 3150 | },
|
3084 | 3151 | "sourceLanguageCode": {
|
|
0 commit comments