Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: discovery/googleapis/translate__v2.json

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/tasks__v1.json ('k') | discovery/googleapis/urlshortener__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-translation": {
6 "description": "Translate text from one language to another using Google Translate"
7 },
5 "https://www.googleapis.com/auth/cloud-platform": { 8 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 9 "description": "View and manage your data across Google Clou d Platform services"
7 },
8 "https://www.googleapis.com/auth/cloud-translation": {
9 "description": "Translate text from one language to another using Google Translate"
10 } 10 }
11 } 11 }
12 } 12 }
13 }, 13 },
14 "basePath": "/language/translate/", 14 "basePath": "/language/translate/",
15 "baseUrl": "https://translation.googleapis.com/language/translate/", 15 "baseUrl": "https://translation.googleapis.com/language/translate/",
16 "batchPath": "batch/translate", 16 "batchPath": "batch/translate",
17 "canonicalName": "Translate", 17 "canonicalName": "Translate",
18 "description": "The Google Cloud Translation API lets websites and programs integrate with\n Google Translate programmatically.", 18 "description": "The Google Cloud Translation API lets websites and programs integrate with\n Google Translate programmatically.",
19 "discoveryVersion": "v1", 19 "discoveryVersion": "v1",
20 "documentationLink": "https://code.google.com/apis/language/translate/v2/get ting_started.html", 20 "documentationLink": "https://code.google.com/apis/language/translate/v2/get ting_started.html",
21 "features": [ 21 "features": [
22 "dataWrapper" 22 "dataWrapper"
23 ], 23 ],
24 "icons": { 24 "icons": {
25 "x16": "https://www.google.com/images/icons/product/translate-16.png", 25 "x16": "https://www.google.com/images/icons/product/translate-16.png",
26 "x32": "https://www.google.com/images/icons/product/translate-32.png" 26 "x32": "https://www.google.com/images/icons/product/translate-32.png"
27 }, 27 },
28 "id": "translate:v2", 28 "id": "translate:v2",
29 "kind": "discovery#restDescription", 29 "kind": "discovery#restDescription",
30 "name": "translate", 30 "name": "translate",
31 "ownerDomain": "google.com", 31 "ownerDomain": "google.com",
32 "ownerName": "Google", 32 "ownerName": "Google",
33 "parameters": { 33 "parameters": {
34 "bearer_token": {
35 "description": "OAuth bearer token.",
36 "location": "query",
37 "type": "string"
38 },
39 "oauth_token": {
40 "description": "OAuth 2.0 token for the current user.",
41 "location": "query",
42 "type": "string"
43 },
44 "upload_protocol": { 34 "upload_protocol": {
45 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
46 "location": "query", 36 "location": "query",
47 "type": "string" 37 "type": "string"
48 }, 38 },
49 "prettyPrint": { 39 "prettyPrint": {
50 "default": "true", 40 "default": "true",
51 "description": "Returns response with indentations and line breaks." , 41 "description": "Returns response with indentations and line breaks." ,
52 "location": "query", 42 "location": "query",
53 "type": "boolean" 43 "type": "boolean"
54 }, 44 },
45 "uploadType": {
46 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
47 "location": "query",
48 "type": "string"
49 },
55 "fields": { 50 "fields": {
56 "description": "Selector specifying which fields to include in a par tial response.", 51 "description": "Selector specifying which fields to include in a par tial response.",
57 "location": "query", 52 "location": "query",
58 "type": "string" 53 "type": "string"
59 }, 54 },
60 "uploadType": {
61 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
62 "location": "query",
63 "type": "string"
64 },
65 "callback": {
66 "description": "JSONP",
67 "location": "query",
68 "type": "string"
69 },
70 "$.xgafv": { 55 "$.xgafv": {
71 "description": "V1 error format.", 56 "description": "V1 error format.",
72 "enum": [ 57 "enum": [
73 "1", 58 "1",
74 "2" 59 "2"
75 ], 60 ],
76 "enumDescriptions": [ 61 "enumDescriptions": [
77 "v1 error format", 62 "v1 error format",
78 "v2 error format" 63 "v2 error format"
79 ], 64 ],
80 "location": "query", 65 "location": "query",
81 "type": "string" 66 "type": "string"
82 }, 67 },
68 "callback": {
69 "description": "JSONP",
70 "location": "query",
71 "type": "string"
72 },
83 "alt": { 73 "alt": {
84 "default": "json", 74 "default": "json",
85 "description": "Data format for response.", 75 "description": "Data format for response.",
86 "enum": [ 76 "enum": [
87 "json", 77 "json",
88 "media", 78 "media",
89 "proto" 79 "proto"
90 ], 80 ],
91 "enumDescriptions": [ 81 "enumDescriptions": [
92 "Responses with Content-Type of application/json", 82 "Responses with Content-Type of application/json",
93 "Media download with context-dependent Content-Type", 83 "Media download with context-dependent Content-Type",
94 "Responses with Content-Type of application/x-protobuf" 84 "Responses with Content-Type of application/x-protobuf"
95 ], 85 ],
96 "location": "query", 86 "location": "query",
97 "type": "string" 87 "type": "string"
98 }, 88 },
89 "key": {
90 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
91 "location": "query",
92 "type": "string"
93 },
99 "access_token": { 94 "access_token": {
100 "description": "OAuth access token.", 95 "description": "OAuth access token.",
101 "location": "query", 96 "location": "query",
102 "type": "string" 97 "type": "string"
103 }, 98 },
104 "key": {
105 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
106 "location": "query",
107 "type": "string"
108 },
109 "quotaUser": { 99 "quotaUser": {
110 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters. Overrides userIp if both are provided.", 100 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters. Overrides userIp if both are provided.",
111 "location": "query", 101 "location": "query",
112 "type": "string" 102 "type": "string"
113 }, 103 },
114 "pp": { 104 "pp": {
115 "default": "true", 105 "default": "true",
116 "description": "Pretty-print response.", 106 "description": "Pretty-print response.",
117 "location": "query", 107 "location": "query",
118 "type": "boolean" 108 "type": "boolean"
109 },
110 "oauth_token": {
111 "description": "OAuth 2.0 token for the current user.",
112 "location": "query",
113 "type": "string"
114 },
115 "bearer_token": {
116 "description": "OAuth bearer token.",
117 "location": "query",
118 "type": "string"
119 } 119 }
120 }, 120 },
121 "protocol": "rest", 121 "protocol": "rest",
122 "resources": { 122 "resources": {
123 "detections": { 123 "detections": {
124 "methods": { 124 "methods": {
125 "detect": { 125 "detect": {
126 "description": "Detects the language of text within a reques t.", 126 "description": "Detects the language of text within a reques t.",
127 "httpMethod": "POST", 127 "httpMethod": "POST",
128 "id": "language.detections.detect", 128 "id": "language.detections.detect",
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 }, 218 },
219 "list": { 219 "list": {
220 "description": "Translates input text, returning translated text.", 220 "description": "Translates input text, returning translated text.",
221 "httpMethod": "GET", 221 "httpMethod": "GET",
222 "id": "language.translations.list", 222 "id": "language.translations.list",
223 "parameterOrder": [ 223 "parameterOrder": [
224 "q", 224 "q",
225 "target" 225 "target"
226 ], 226 ],
227 "parameters": { 227 "parameters": {
228 "q": {
229 "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
230 "location": "query",
231 "repeated": true,
232 "required": true,
233 "type": "string"
234 },
235 "source": {
236 "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source languag e is not specified, the API will\nattempt to identify the source language automa tically and return it within\nthe response.",
237 "location": "query",
238 "type": "string"
239 },
240 "cid": { 228 "cid": {
241 "description": "The customization id for translate", 229 "description": "The customization id for translate",
242 "location": "query", 230 "location": "query",
243 "repeated": true, 231 "repeated": true,
244 "type": "string" 232 "type": "string"
245 }, 233 },
246 "target": { 234 "target": {
247 "description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support. ", 235 "description": "The language to use for translation of the input text, set to one of the\nlanguage codes listed in Language Support. ",
248 "location": "query", 236 "location": "query",
249 "required": true, 237 "required": true,
250 "type": "string" 238 "type": "string"
251 }, 239 },
252 "format": { 240 "format": {
253 "description": "The format of the source text, in ei ther HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a val ue of \"text\" indicates plain-text.", 241 "description": "The format of the source text, in ei ther HTML (default) or plain-text. A\nvalue of \"html\" indicates HTML and a val ue of \"text\" indicates plain-text.",
254 "enum": [ 242 "enum": [
255 "html", 243 "html",
256 "text" 244 "text"
257 ], 245 ],
258 "enumDescriptions": [ 246 "enumDescriptions": [
259 "Specifies the input is in HTML", 247 "Specifies the input is in HTML",
260 "Specifies the input is in plain textual format" 248 "Specifies the input is in plain textual format"
261 ], 249 ],
262 "location": "query", 250 "location": "query",
263 "type": "string" 251 "type": "string"
264 }, 252 },
265 "model": { 253 "model": {
266 "description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.", 254 "description": "The `model` type requested for this translation. Valid values are\nlisted in public documentation.",
267 "location": "query", 255 "location": "query",
268 "type": "string" 256 "type": "string"
257 },
258 "q": {
259 "description": "The input text to translate. Repeat this parameter to perform translation\noperations on multiple text inputs.",
260 "location": "query",
261 "repeated": true,
262 "required": true,
263 "type": "string"
264 },
265 "source": {
266 "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source languag e is not specified, the API will\nattempt to identify the source language automa tically and return it within\nthe response.",
267 "location": "query",
268 "type": "string"
269 } 269 }
270 }, 270 },
271 "path": "v2", 271 "path": "v2",
272 "response": { 272 "response": {
273 "$ref": "TranslationsListResponse" 273 "$ref": "TranslationsListResponse"
274 }, 274 },
275 "scopes": [ 275 "scopes": [
276 "https://www.googleapis.com/auth/cloud-translation", 276 "https://www.googleapis.com/auth/cloud-translation",
277 "https://www.googleapis.com/auth/cloud-platform" 277 "https://www.googleapis.com/auth/cloud-platform"
278 ] 278 ]
279 } 279 }
280 } 280 }
281 } 281 }
282 }, 282 },
283 "revision": "20170525", 283 "revision": "20170525",
284 "rootUrl": "https://translation.googleapis.com/", 284 "rootUrl": "https://translation.googleapis.com/",
285 "schemas": { 285 "schemas": {
286 "TranslationsListResponse": {
287 "description": "The main language translation response message.",
288 "id": "TranslationsListResponse",
289 "properties": {
290 "translations": {
291 "description": "Translations contains list of translation re sults of given text",
292 "items": {
293 "$ref": "TranslationsResource"
294 },
295 "type": "array"
296 }
297 },
298 "type": "object"
299 },
300 "TranslateTextRequest": {
301 "description": "The main translation request message for the Cloud T ranslation API.",
302 "id": "TranslateTextRequest",
303 "properties": {
304 "target": {
305 "description": "The language to use for translation of the i nput text, set to one of the\nlanguage codes listed in Language Support.",
306 "type": "string"
307 },
308 "format": {
309 "description": "The format of the source text, in either HTM L (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \" text\" indicates plain-text.",
310 "type": "string"
311 },
312 "q": {
313 "description": "The input text to translate. Repeat this par ameter to perform translation\noperations on multiple text inputs.",
314 "items": {
315 "type": "string"
316 },
317 "type": "array"
318 },
319 "source": {
320 "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.",
321 "type": "string"
322 },
323 "model": {
324 "description": "The `model` type requested for this translat ion. Valid values are\nlisted in public documentation.",
325 "type": "string"
326 }
327 },
328 "type": "object"
329 },
286 "DetectLanguageRequest": { 330 "DetectLanguageRequest": {
287 "description": "The request message for language detection.", 331 "description": "The request message for language detection.",
288 "id": "DetectLanguageRequest", 332 "id": "DetectLanguageRequest",
289 "properties": { 333 "properties": {
290 "q": { 334 "q": {
291 "description": "The input text upon which to perform languag e detection. Repeat this\nparameter to perform language detection on multiple te xt inputs.", 335 "description": "The input text upon which to perform languag e detection. Repeat this\nparameter to perform language detection on multiple te xt inputs.",
292 "items": { 336 "items": {
293 "type": "string" 337 "type": "string"
294 }, 338 },
295 "type": "array" 339 "type": "array"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 "type": "string" 408 "type": "string"
365 } 409 }
366 }, 410 },
367 "type": "object" 411 "type": "object"
368 }, 412 },
369 "DetectionsResource": { 413 "DetectionsResource": {
370 "description": "An array of languages which we detect for the given text The most likely language list first.", 414 "description": "An array of languages which we detect for the given text The most likely language list first.",
371 "id": "DetectionsResource", 415 "id": "DetectionsResource",
372 "items": { 416 "items": {
373 "properties": { 417 "properties": {
418 "confidence": {
419 "description": "The confidence of the detection result o f this language.",
420 "format": "float",
421 "type": "number"
422 },
374 "language": { 423 "language": {
375 "description": "The language we detected.", 424 "description": "The language we detected.",
376 "type": "string" 425 "type": "string"
377 }, 426 },
378 "isReliable": { 427 "isReliable": {
379 "description": "A boolean to indicate is the language de tection result reliable.", 428 "description": "A boolean to indicate is the language de tection result reliable.",
380 "type": "boolean" 429 "type": "boolean"
381 },
382 "confidence": {
383 "description": "The confidence of the detection result o f this language.",
384 "format": "float",
385 "type": "number"
386 } 430 }
387 }, 431 },
388 "type": "object" 432 "type": "object"
389 }, 433 },
390 "type": "array" 434 "type": "array"
391 },
392 "TranslationsListResponse": {
393 "description": "The main language translation response message.",
394 "id": "TranslationsListResponse",
395 "properties": {
396 "translations": {
397 "description": "Translations contains list of translation re sults of given text",
398 "items": {
399 "$ref": "TranslationsResource"
400 },
401 "type": "array"
402 }
403 },
404 "type": "object"
405 },
406 "TranslateTextRequest": {
407 "description": "The main translation request message for the Cloud T ranslation API.",
408 "id": "TranslateTextRequest",
409 "properties": {
410 "target": {
411 "description": "The language to use for translation of the i nput text, set to one of the\nlanguage codes listed in Language Support.",
412 "type": "string"
413 },
414 "format": {
415 "description": "The format of the source text, in either HTM L (default) or plain-text. A\nvalue of \"html\" indicates HTML and a value of \" text\" indicates plain-text.",
416 "type": "string"
417 },
418 "q": {
419 "description": "The input text to translate. Repeat this par ameter to perform translation\noperations on multiple text inputs.",
420 "items": {
421 "type": "string"
422 },
423 "type": "array"
424 },
425 "source": {
426 "description": "The language of the source text, set to one of the language codes listed in\nLanguage Support. If the source language is not specified, the API will\nattempt to identify the source language automatically and return it within\nthe response.",
427 "type": "string"
428 },
429 "model": {
430 "description": "The `model` type requested for this translat ion. Valid values are\nlisted in public documentation.",
431 "type": "string"
432 }
433 },
434 "type": "object"
435 } 435 }
436 }, 436 },
437 "servicePath": "language/translate/", 437 "servicePath": "language/translate/",
438 "title": "Google Cloud Translation API", 438 "title": "Google Cloud Translation API",
439 "version": "v2" 439 "version": "v2"
440 } 440 }
OLDNEW
« no previous file with comments | « discovery/googleapis/tasks__v1.json ('k') | discovery/googleapis/urlshortener__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698