|
175 | 175 | "https://www.googleapis.com/auth/cloud-translation"
|
176 | 176 | ]
|
177 | 177 | },
|
| 178 | + "romanizeText": { |
| 179 | + "description": "Romanize input text written in non-Latin scripts to Latin text.", |
| 180 | + "flatPath": "v3/projects/{projectsId}:romanizeText", |
| 181 | + "httpMethod": "POST", |
| 182 | + "id": "translate.projects.romanizeText", |
| 183 | + "parameterOrder": [ |
| 184 | + "parent" |
| 185 | + ], |
| 186 | + "parameters": { |
| 187 | + "parent": { |
| 188 | + "description": "Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.", |
| 189 | + "location": "path", |
| 190 | + "pattern": "^projects/[^/]+$", |
| 191 | + "required": true, |
| 192 | + "type": "string" |
| 193 | + } |
| 194 | + }, |
| 195 | + "path": "v3/{+parent}:romanizeText", |
| 196 | + "request": { |
| 197 | + "$ref": "RomanizeTextRequest" |
| 198 | + }, |
| 199 | + "response": { |
| 200 | + "$ref": "RomanizeTextResponse" |
| 201 | + }, |
| 202 | + "scopes": [ |
| 203 | + "https://www.googleapis.com/auth/cloud-platform", |
| 204 | + "https://www.googleapis.com/auth/cloud-translation" |
| 205 | + ] |
| 206 | + }, |
178 | 207 | "translateText": {
|
179 | 208 | "description": "Translates input text and returns translated text.",
|
180 | 209 | "flatPath": "v3/projects/{projectsId}:translateText",
|
|
397 | 426 | "https://www.googleapis.com/auth/cloud-translation"
|
398 | 427 | ]
|
399 | 428 | },
|
| 429 | + "romanizeText": { |
| 430 | + "description": "Romanize input text written in non-Latin scripts to Latin text.", |
| 431 | + "flatPath": "v3/projects/{projectsId}/locations/{locationsId}:romanizeText", |
| 432 | + "httpMethod": "POST", |
| 433 | + "id": "translate.projects.locations.romanizeText", |
| 434 | + "parameterOrder": [ |
| 435 | + "parent" |
| 436 | + ], |
| 437 | + "parameters": { |
| 438 | + "parent": { |
| 439 | + "description": "Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.", |
| 440 | + "location": "path", |
| 441 | + "pattern": "^projects/[^/]+/locations/[^/]+$", |
| 442 | + "required": true, |
| 443 | + "type": "string" |
| 444 | + } |
| 445 | + }, |
| 446 | + "path": "v3/{+parent}:romanizeText", |
| 447 | + "request": { |
| 448 | + "$ref": "RomanizeTextRequest" |
| 449 | + }, |
| 450 | + "response": { |
| 451 | + "$ref": "RomanizeTextResponse" |
| 452 | + }, |
| 453 | + "scopes": [ |
| 454 | + "https://www.googleapis.com/auth/cloud-platform", |
| 455 | + "https://www.googleapis.com/auth/cloud-translation" |
| 456 | + ] |
| 457 | + }, |
400 | 458 | "translateDocument": {
|
401 | 459 | "description": "Translates documents in synchronous mode.",
|
402 | 460 | "flatPath": "v3/projects/{projectsId}/locations/{locationsId}:translateDocument",
|
|
1286 | 1344 | }
|
1287 | 1345 | }
|
1288 | 1346 | },
|
1289 |
| - "revision": "20230414", |
| 1347 | + "revision": "20230519", |
1290 | 1348 | "rootUrl": "https://translation.googleapis.com/",
|
1291 | 1349 | "schemas": {
|
1292 | 1350 | "BatchDocumentInputConfig": {
|
|
2029 | 2087 | "type": "object"
|
2030 | 2088 | },
|
2031 | 2089 | "Location": {
|
2032 |
| - "description": "A resource that represents Google Cloud Platform location.", |
| 2090 | + "description": "A resource that represents a Google Cloud location.", |
2033 | 2091 | "id": "Location",
|
2034 | 2092 | "properties": {
|
2035 | 2093 | "displayName": {
|
|
2167 | 2225 | },
|
2168 | 2226 | "type": "object"
|
2169 | 2227 | },
|
| 2228 | + "Romanization": { |
| 2229 | + "description": "A single romanization response.", |
| 2230 | + "id": "Romanization", |
| 2231 | + "properties": { |
| 2232 | + "detectedLanguageCode": { |
| 2233 | + "description": "The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.", |
| 2234 | + "type": "string" |
| 2235 | + }, |
| 2236 | + "romanizedText": { |
| 2237 | + "description": "Romanized text. If an error occurs during romanization, this field might be excluded from the response.", |
| 2238 | + "type": "string" |
| 2239 | + } |
| 2240 | + }, |
| 2241 | + "type": "object" |
| 2242 | + }, |
| 2243 | + "RomanizeTextRequest": { |
| 2244 | + "description": "The request message for synchronous romanization.", |
| 2245 | + "id": "RomanizeTextRequest", |
| 2246 | + "properties": { |
| 2247 | + "contents": { |
| 2248 | + "description": "Required. The content of the input in string format.", |
| 2249 | + "items": { |
| 2250 | + "type": "string" |
| 2251 | + }, |
| 2252 | + "type": "array" |
| 2253 | + }, |
| 2254 | + "sourceLanguageCode": { |
| 2255 | + "description": "Optional. The ISO-639 language code of the input text if known, for example, \"hi\" or \"zh\". If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language for each content in the response.", |
| 2256 | + "type": "string" |
| 2257 | + } |
| 2258 | + }, |
| 2259 | + "type": "object" |
| 2260 | + }, |
| 2261 | + "RomanizeTextResponse": { |
| 2262 | + "description": "The response message for synchronous romanization.", |
| 2263 | + "id": "RomanizeTextResponse", |
| 2264 | + "properties": { |
| 2265 | + "romanizations": { |
| 2266 | + "description": "Text romanization responses. This field has the same length as `contents`.", |
| 2267 | + "items": { |
| 2268 | + "$ref": "Romanization" |
| 2269 | + }, |
| 2270 | + "type": "array" |
| 2271 | + } |
| 2272 | + }, |
| 2273 | + "type": "object" |
| 2274 | + }, |
2170 | 2275 | "Status": {
|
2171 | 2276 | "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
|
2172 | 2277 | "id": "Status",
|
|
2360 | 2465 | "targetLanguageCode": {
|
2361 | 2466 | "description": "Required. The ISO-639 language code to use for translation of the input text, set to one of the language codes listed in Language Support.",
|
2362 | 2467 | "type": "string"
|
| 2468 | + }, |
| 2469 | + "transliterationConfig": { |
| 2470 | + "$ref": "TransliterationConfig", |
| 2471 | + "description": "Optional. Transliteration to be applied." |
2363 | 2472 | }
|
2364 | 2473 | },
|
2365 | 2474 | "type": "object"
|
|
2407 | 2516 | },
|
2408 | 2517 | "type": "object"
|
2409 | 2518 | },
|
| 2519 | + "TransliterationConfig": { |
| 2520 | + "description": "Confugures transliteration feature on top of translation.", |
| 2521 | + "id": "TransliterationConfig", |
| 2522 | + "properties": { |
| 2523 | + "enableTransliteration": { |
| 2524 | + "description": "If true, source text in romanized form can be translated to the target language.", |
| 2525 | + "type": "boolean" |
| 2526 | + } |
| 2527 | + }, |
| 2528 | + "type": "object" |
| 2529 | + }, |
2410 | 2530 | "WaitOperationRequest": {
|
2411 | 2531 | "description": "The request message for Operations.WaitOperation.",
|
2412 | 2532 | "id": "WaitOperationRequest",
|
|
0 commit comments