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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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/kgsearch__v1.json ('k') | discovery/googleapis/licensing__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-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://language.googleapis.com/", 12 "baseUrl": "https://language.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "canonicalName": "Cloud Natural Language", 14 "canonicalName": "Cloud Natural Language",
15 "description": "Google Cloud Natural Language API provides natural language understanding technologies to developers. Examples include sentiment analysis, e ntity recognition, and text annotations.", 15 "description": "Google Cloud Natural Language API provides natural language understanding technologies to developers. Examples include sentiment analysis, e ntity recognition, and text annotations.",
16 "discoveryVersion": "v1", 16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/natural-language/", 17 "documentationLink": "https://cloud.google.com/natural-language/",
18 "icons": { 18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", 19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" 20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 }, 21 },
22 "id": "language:v1", 22 "id": "language:v1",
23 "kind": "discovery#restDescription", 23 "kind": "discovery#restDescription",
24 "name": "language", 24 "name": "language",
25 "ownerDomain": "google.com", 25 "ownerDomain": "google.com",
26 "ownerName": "Google", 26 "ownerName": "Google",
27 "parameters": { 27 "parameters": {
28 "oauth_token": { 28 "quotaUser": {
29 "description": "OAuth 2.0 token for the current user.", 29 "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.",
30 "location": "query", 30 "location": "query",
31 "type": "string" 31 "type": "string"
32 }, 32 },
33 "pp": {
34 "default": "true",
35 "description": "Pretty-print response.",
36 "location": "query",
37 "type": "boolean"
38 },
33 "bearer_token": { 39 "bearer_token": {
34 "description": "OAuth bearer token.", 40 "description": "OAuth bearer token.",
35 "location": "query", 41 "location": "query",
36 "type": "string" 42 "type": "string"
37 }, 43 },
44 "oauth_token": {
45 "description": "OAuth 2.0 token for the current user.",
46 "location": "query",
47 "type": "string"
48 },
38 "upload_protocol": { 49 "upload_protocol": {
39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 50 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
40 "location": "query", 51 "location": "query",
41 "type": "string" 52 "type": "string"
42 }, 53 },
43 "prettyPrint": { 54 "prettyPrint": {
44 "default": "true", 55 "default": "true",
45 "description": "Returns response with indentations and line breaks." , 56 "description": "Returns response with indentations and line breaks." ,
46 "location": "query", 57 "location": "query",
47 "type": "boolean" 58 "type": "boolean"
48 }, 59 },
49 "uploadType": { 60 "uploadType": {
50 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 61 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
51 "location": "query", 62 "location": "query",
52 "type": "string" 63 "type": "string"
53 }, 64 },
54 "fields": { 65 "fields": {
55 "description": "Selector specifying which fields to include in a par tial response.", 66 "description": "Selector specifying which fields to include in a par tial response.",
56 "location": "query", 67 "location": "query",
57 "type": "string" 68 "type": "string"
58 }, 69 },
70 "callback": {
71 "description": "JSONP",
72 "location": "query",
73 "type": "string"
74 },
59 "$.xgafv": { 75 "$.xgafv": {
60 "description": "V1 error format.", 76 "description": "V1 error format.",
61 "enum": [ 77 "enum": [
62 "1", 78 "1",
63 "2" 79 "2"
64 ], 80 ],
65 "enumDescriptions": [ 81 "enumDescriptions": [
66 "v1 error format", 82 "v1 error format",
67 "v2 error format" 83 "v2 error format"
68 ], 84 ],
69 "location": "query", 85 "location": "query",
70 "type": "string" 86 "type": "string"
71 }, 87 },
72 "callback": {
73 "description": "JSONP",
74 "location": "query",
75 "type": "string"
76 },
77 "alt": { 88 "alt": {
78 "default": "json", 89 "default": "json",
79 "description": "Data format for response.", 90 "description": "Data format for response.",
80 "enum": [ 91 "enum": [
81 "json", 92 "json",
82 "media", 93 "media",
83 "proto" 94 "proto"
84 ], 95 ],
85 "enumDescriptions": [ 96 "enumDescriptions": [
86 "Responses with Content-Type of application/json", 97 "Responses with Content-Type of application/json",
87 "Media download with context-dependent Content-Type", 98 "Media download with context-dependent Content-Type",
88 "Responses with Content-Type of application/x-protobuf" 99 "Responses with Content-Type of application/x-protobuf"
89 ], 100 ],
90 "location": "query", 101 "location": "query",
91 "type": "string" 102 "type": "string"
92 }, 103 },
93 "access_token": {
94 "description": "OAuth access token.",
95 "location": "query",
96 "type": "string"
97 },
98 "key": { 104 "key": {
99 "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.", 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.",
100 "location": "query", 106 "location": "query",
101 "type": "string" 107 "type": "string"
102 }, 108 },
103 "quotaUser": { 109 "access_token": {
104 "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.", 110 "description": "OAuth access token.",
105 "location": "query", 111 "location": "query",
106 "type": "string" 112 "type": "string"
107 },
108 "pp": {
109 "default": "true",
110 "description": "Pretty-print response.",
111 "location": "query",
112 "type": "boolean"
113 } 113 }
114 }, 114 },
115 "protocol": "rest", 115 "protocol": "rest",
116 "resources": { 116 "resources": {
117 "documents": { 117 "documents": {
118 "methods": { 118 "methods": {
119 "annotateText": { 119 "annotateText": {
120 "description": "A convenience method that provides all the f eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on e call.", 120 "description": "A convenience method that provides all the f eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on e call.",
121 "httpMethod": "POST", 121 "httpMethod": "POST",
122 "id": "language.documents.annotateText", 122 "id": "language.documents.annotateText",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 "response": { 180 "response": {
181 "$ref": "AnalyzeSentimentResponse" 181 "$ref": "AnalyzeSentimentResponse"
182 }, 182 },
183 "scopes": [ 183 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform" 184 "https://www.googleapis.com/auth/cloud-platform"
185 ] 185 ]
186 } 186 }
187 } 187 }
188 } 188 }
189 }, 189 },
190 "revision": "20170320", 190 "revision": "20170412",
191 "rootUrl": "https://language.googleapis.com/", 191 "rootUrl": "https://language.googleapis.com/",
192 "schemas": { 192 "schemas": {
193 "PartOfSpeech": {
194 "description": "Represents part of speech information for a token. P arts of speech\nare as defined in\nhttp://www.lrec-conf.org/proceedings/lrec2012 /pdf/274_Paper.pdf",
195 "id": "PartOfSpeech",
196 "properties": {
197 "mood": {
198 "description": "The grammatical mood.",
199 "enum": [
200 "MOOD_UNKNOWN",
201 "CONDITIONAL_MOOD",
202 "IMPERATIVE",
203 "INDICATIVE",
204 "INTERROGATIVE",
205 "JUSSIVE",
206 "SUBJUNCTIVE"
207 ],
208 "enumDescriptions": [
209 "Mood is not applicable in the analyzed language or is n ot predicted.",
210 "Conditional",
211 "Imperative",
212 "Indicative",
213 "Interrogative",
214 "Jussive",
215 "Subjunctive"
216 ],
217 "type": "string"
218 },
219 "tag": {
220 "description": "The part of speech tag.",
221 "enum": [
222 "UNKNOWN",
223 "ADJ",
224 "ADP",
225 "ADV",
226 "CONJ",
227 "DET",
228 "NOUN",
229 "NUM",
230 "PRON",
231 "PRT",
232 "PUNCT",
233 "VERB",
234 "X",
235 "AFFIX"
236 ],
237 "enumDescriptions": [
238 "Unknown",
239 "Adjective",
240 "Adposition (preposition and postposition)",
241 "Adverb",
242 "Conjunction",
243 "Determiner",
244 "Noun (common and proper)",
245 "Cardinal number",
246 "Pronoun",
247 "Particle or other function word",
248 "Punctuation",
249 "Verb (all tenses and modes)",
250 "Other: foreign words, typos, abbreviations",
251 "Affix"
252 ],
253 "type": "string"
254 },
255 "gender": {
256 "description": "The grammatical gender.",
257 "enum": [
258 "GENDER_UNKNOWN",
259 "FEMININE",
260 "MASCULINE",
261 "NEUTER"
262 ],
263 "enumDescriptions": [
264 "Gender is not applicable in the analyzed language or is not predicted.",
265 "Feminine",
266 "Masculine",
267 "Neuter"
268 ],
269 "type": "string"
270 },
271 "person": {
272 "description": "The grammatical person.",
273 "enum": [
274 "PERSON_UNKNOWN",
275 "FIRST",
276 "SECOND",
277 "THIRD",
278 "REFLEXIVE_PERSON"
279 ],
280 "enumDescriptions": [
281 "Person is not applicable in the analyzed language or is not predicted.",
282 "First",
283 "Second",
284 "Third",
285 "Reflexive"
286 ],
287 "type": "string"
288 },
289 "proper": {
290 "description": "The grammatical properness.",
291 "enum": [
292 "PROPER_UNKNOWN",
293 "PROPER",
294 "NOT_PROPER"
295 ],
296 "enumDescriptions": [
297 "Proper is not applicable in the analyzed language or is not predicted.",
298 "Proper",
299 "Not proper"
300 ],
301 "type": "string"
302 },
303 "case": {
304 "description": "The grammatical case.",
305 "enum": [
306 "CASE_UNKNOWN",
307 "ACCUSATIVE",
308 "ADVERBIAL",
309 "COMPLEMENTIVE",
310 "DATIVE",
311 "GENITIVE",
312 "INSTRUMENTAL",
313 "LOCATIVE",
314 "NOMINATIVE",
315 "OBLIQUE",
316 "PARTITIVE",
317 "PREPOSITIONAL",
318 "REFLEXIVE_CASE",
319 "RELATIVE_CASE",
320 "VOCATIVE"
321 ],
322 "enumDescriptions": [
323 "Case is not applicable in the analyzed language or is n ot predicted.",
324 "Accusative",
325 "Adverbial",
326 "Complementive",
327 "Dative",
328 "Genitive",
329 "Instrumental",
330 "Locative",
331 "Nominative",
332 "Oblique",
333 "Partitive",
334 "Prepositional",
335 "Reflexive",
336 "Relative",
337 "Vocative"
338 ],
339 "type": "string"
340 },
341 "tense": {
342 "description": "The grammatical tense.",
343 "enum": [
344 "TENSE_UNKNOWN",
345 "CONDITIONAL_TENSE",
346 "FUTURE",
347 "PAST",
348 "PRESENT",
349 "IMPERFECT",
350 "PLUPERFECT"
351 ],
352 "enumDescriptions": [
353 "Tense is not applicable in the analyzed language or is not predicted.",
354 "Conditional",
355 "Future",
356 "Past",
357 "Present",
358 "Imperfect",
359 "Pluperfect"
360 ],
361 "type": "string"
362 },
363 "reciprocity": {
364 "description": "The grammatical reciprocity.",
365 "enum": [
366 "RECIPROCITY_UNKNOWN",
367 "RECIPROCAL",
368 "NON_RECIPROCAL"
369 ],
370 "enumDescriptions": [
371 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
372 "Reciprocal",
373 "Non-reciprocal"
374 ],
375 "type": "string"
376 },
377 "form": {
378 "description": "The grammatical form.",
379 "enum": [
380 "FORM_UNKNOWN",
381 "ADNOMIAL",
382 "AUXILIARY",
383 "COMPLEMENTIZER",
384 "FINAL_ENDING",
385 "GERUND",
386 "REALIS",
387 "IRREALIS",
388 "SHORT",
389 "LONG",
390 "ORDER",
391 "SPECIFIC"
392 ],
393 "enumDescriptions": [
394 "Form is not applicable in the analyzed language or is n ot predicted.",
395 "Adnomial",
396 "Auxiliary",
397 "Complementizer",
398 "Final ending",
399 "Gerund",
400 "Realis",
401 "Irrealis",
402 "Short form",
403 "Long form",
404 "Order form",
405 "Specific form"
406 ],
407 "type": "string"
408 },
409 "number": {
410 "description": "The grammatical number.",
411 "enum": [
412 "NUMBER_UNKNOWN",
413 "SINGULAR",
414 "PLURAL",
415 "DUAL"
416 ],
417 "enumDescriptions": [
418 "Number is not applicable in the analyzed language or is not predicted.",
419 "Singular",
420 "Plural",
421 "Dual"
422 ],
423 "type": "string"
424 },
425 "voice": {
426 "description": "The grammatical voice.",
427 "enum": [
428 "VOICE_UNKNOWN",
429 "ACTIVE",
430 "CAUSATIVE",
431 "PASSIVE"
432 ],
433 "enumDescriptions": [
434 "Voice is not applicable in the analyzed language or is not predicted.",
435 "Active",
436 "Causative",
437 "Passive"
438 ],
439 "type": "string"
440 },
441 "aspect": {
442 "description": "The grammatical aspect.",
443 "enum": [
444 "ASPECT_UNKNOWN",
445 "PERFECTIVE",
446 "IMPERFECTIVE",
447 "PROGRESSIVE"
448 ],
449 "enumDescriptions": [
450 "Aspect is not applicable in the analyzed language or is not predicted.",
451 "Perfective",
452 "Imperfective",
453 "Progressive"
454 ],
455 "type": "string"
456 }
457 },
458 "type": "object"
459 },
460 "AnalyzeSyntaxRequest": {
461 "description": "The syntax analysis request message.",
462 "id": "AnalyzeSyntaxRequest",
463 "properties": {
464 "encodingType": {
465 "description": "The encoding type used by the API to calcula te offsets.",
466 "enum": [
467 "NONE",
468 "UTF8",
469 "UTF16",
470 "UTF32"
471 ],
472 "enumDescriptions": [
473 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
474 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.",
475 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.",
476 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
477 ],
478 "type": "string"
479 },
480 "document": {
481 "$ref": "Document",
482 "description": "Input document."
483 }
484 },
485 "type": "object"
486 },
487 "AnalyzeSentimentResponse": { 193 "AnalyzeSentimentResponse": {
488 "description": "The sentiment analysis response message.", 194 "description": "The sentiment analysis response message.",
489 "id": "AnalyzeSentimentResponse", 195 "id": "AnalyzeSentimentResponse",
490 "properties": { 196 "properties": {
491 "documentSentiment": { 197 "documentSentiment": {
492 "$ref": "Sentiment", 198 "$ref": "Sentiment",
493 "description": "The overall sentiment of the input document. " 199 "description": "The overall sentiment of the input document. "
494 }, 200 },
495 "language": { 201 "language": {
496 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.", 202 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
497 "type": "string" 203 "type": "string"
498 }, 204 },
499 "sentences": { 205 "sentences": {
500 "description": "The sentiment for all the sentences in the d ocument.", 206 "description": "The sentiment for all the sentences in the d ocument.",
501 "items": { 207 "items": {
502 "$ref": "Sentence" 208 "$ref": "Sentence"
503 }, 209 },
504 "type": "array" 210 "type": "array"
505 } 211 }
506 }, 212 },
507 "type": "object" 213 "type": "object"
508 }, 214 },
509 "AnalyzeEntitiesResponse": { 215 "AnalyzeEntitiesResponse": {
510 "description": "The entity analysis response message.", 216 "description": "The entity analysis response message.",
511 "id": "AnalyzeEntitiesResponse", 217 "id": "AnalyzeEntitiesResponse",
512 "properties": { 218 "properties": {
219 "language": {
220 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
221 "type": "string"
222 },
513 "entities": { 223 "entities": {
514 "description": "The recognized entities in the input documen t.", 224 "description": "The recognized entities in the input documen t.",
515 "items": { 225 "items": {
516 "$ref": "Entity" 226 "$ref": "Entity"
517 }, 227 },
518 "type": "array" 228 "type": "array"
519 },
520 "language": {
521 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
522 "type": "string"
523 } 229 }
524 }, 230 },
525 "type": "object" 231 "type": "object"
526 }, 232 },
527 "AnalyzeSyntaxResponse": { 233 "AnalyzeSyntaxResponse": {
528 "description": "The syntax analysis response message.", 234 "description": "The syntax analysis response message.",
529 "id": "AnalyzeSyntaxResponse", 235 "id": "AnalyzeSyntaxResponse",
530 "properties": { 236 "properties": {
531 "language": { 237 "language": {
532 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.", 238 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
(...skipping 13 matching lines...) Expand all
546 }, 252 },
547 "type": "array" 253 "type": "array"
548 } 254 }
549 }, 255 },
550 "type": "object" 256 "type": "object"
551 }, 257 },
552 "Entity": { 258 "Entity": {
553 "description": "Represents a phrase in the text that is a known enti ty, such as\na person, an organization, or location. The API associates informat ion, such\nas salience and mentions, with entities.", 259 "description": "Represents a phrase in the text that is a known enti ty, such as\na person, an organization, or location. The API associates informat ion, such\nas salience and mentions, with entities.",
554 "id": "Entity", 260 "id": "Entity",
555 "properties": { 261 "properties": {
262 "mentions": {
263 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
264 "items": {
265 "$ref": "EntityMention"
266 },
267 "type": "array"
268 },
269 "name": {
270 "description": "The representative name for the entity.",
271 "type": "string"
272 },
556 "type": { 273 "type": {
557 "description": "The entity type.", 274 "description": "The entity type.",
558 "enum": [ 275 "enum": [
559 "UNKNOWN", 276 "UNKNOWN",
560 "PERSON", 277 "PERSON",
561 "LOCATION", 278 "LOCATION",
562 "ORGANIZATION", 279 "ORGANIZATION",
563 "EVENT", 280 "EVENT",
564 "WORK_OF_ART", 281 "WORK_OF_ART",
565 "CONSUMER_GOOD", 282 "CONSUMER_GOOD",
(...skipping 15 matching lines...) Expand all
581 "additionalProperties": { 298 "additionalProperties": {
582 "type": "string" 299 "type": "string"
583 }, 300 },
584 "description": "Metadata associated with the entity.\n\nCurr ently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The associated keys are \"wikipedia_url\" and \"mid\", respectively.", 301 "description": "Metadata associated with the entity.\n\nCurr ently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The associated keys are \"wikipedia_url\" and \"mid\", respectively.",
585 "type": "object" 302 "type": "object"
586 }, 303 },
587 "salience": { 304 "salience": {
588 "description": "The salience score associated with the entit y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio n about the\nimportance or centrality of that entity to the entire document text .\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns alient.", 305 "description": "The salience score associated with the entit y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio n about the\nimportance or centrality of that entity to the entire document text .\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns alient.",
589 "format": "float", 306 "format": "float",
590 "type": "number" 307 "type": "number"
591 },
592 "mentions": {
593 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
594 "items": {
595 "$ref": "EntityMention"
596 },
597 "type": "array"
598 },
599 "name": {
600 "description": "The representative name for the entity.",
601 "type": "string"
602 } 308 }
603 }, 309 },
604 "type": "object" 310 "type": "object"
605 }, 311 },
606 "AnnotateTextRequest": { 312 "AnnotateTextRequest": {
607 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.", 313 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
608 "id": "AnnotateTextRequest", 314 "id": "AnnotateTextRequest",
609 "properties": { 315 "properties": {
610 "encodingType": { 316 "encodingType": {
611 "description": "The encoding type used by the API to calcula te offsets.", 317 "description": "The encoding type used by the API to calcula te offsets.",
(...skipping 15 matching lines...) Expand all
627 "$ref": "Document", 333 "$ref": "Document",
628 "description": "Input document." 334 "description": "Input document."
629 }, 335 },
630 "features": { 336 "features": {
631 "$ref": "Features", 337 "$ref": "Features",
632 "description": "The enabled features." 338 "description": "The enabled features."
633 } 339 }
634 }, 340 },
635 "type": "object" 341 "type": "object"
636 }, 342 },
343 "AnnotateTextResponse": {
344 "description": "The text annotations response message.",
345 "id": "AnnotateTextResponse",
346 "properties": {
347 "tokens": {
348 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
349 "items": {
350 "$ref": "Token"
351 },
352 "type": "array"
353 },
354 "entities": {
355 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
356 "items": {
357 "$ref": "Entity"
358 },
359 "type": "array"
360 },
361 "documentSentiment": {
362 "$ref": "Sentiment",
363 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
364 },
365 "language": {
366 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
367 "type": "string"
368 },
369 "sentences": {
370 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
371 "items": {
372 "$ref": "Sentence"
373 },
374 "type": "array"
375 }
376 },
377 "type": "object"
378 },
637 "AnalyzeSentimentRequest": { 379 "AnalyzeSentimentRequest": {
638 "description": "The sentiment analysis request message.", 380 "description": "The sentiment analysis request message.",
639 "id": "AnalyzeSentimentRequest", 381 "id": "AnalyzeSentimentRequest",
640 "properties": { 382 "properties": {
641 "encodingType": { 383 "encodingType": {
642 "description": "The encoding type used by the API to calcula te sentence offsets.", 384 "description": "The encoding type used by the API to calcula te sentence offsets.",
643 "enum": [ 385 "enum": [
644 "NONE", 386 "NONE",
645 "UTF8", 387 "UTF8",
646 "UTF16", 388 "UTF16",
647 "UTF32" 389 "UTF32"
648 ], 390 ],
649 "enumDescriptions": [ 391 "enumDescriptions": [
650 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 392 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
651 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.", 393 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.",
652 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.", 394 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.",
653 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively." 395 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
654 ], 396 ],
655 "type": "string" 397 "type": "string"
656 }, 398 },
657 "document": { 399 "document": {
658 "$ref": "Document", 400 "$ref": "Document",
659 "description": "Input document. Currently, `analyzeSentiment ` only supports English text\n(Document.language=\"EN\")." 401 "description": "Input document. Currently, `analyzeSentiment ` only supports English text\n(Document.language=\"EN\")."
660 } 402 }
661 }, 403 },
662 "type": "object" 404 "type": "object"
663 }, 405 },
664 "AnnotateTextResponse": {
665 "description": "The text annotations response message.",
666 "id": "AnnotateTextResponse",
667 "properties": {
668 "documentSentiment": {
669 "$ref": "Sentiment",
670 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
671 },
672 "language": {
673 "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automat ically-detected language.\nSee `Document.language` field for more details.",
674 "type": "string"
675 },
676 "sentences": {
677 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
678 "items": {
679 "$ref": "Sentence"
680 },
681 "type": "array"
682 },
683 "tokens": {
684 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
685 "items": {
686 "$ref": "Token"
687 },
688 "type": "array"
689 },
690 "entities": {
691 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
692 "items": {
693 "$ref": "Entity"
694 },
695 "type": "array"
696 }
697 },
698 "type": "object"
699 },
700 "DependencyEdge": { 406 "DependencyEdge": {
701 "description": "Represents dependency parse tree information for a t oken. (For more\ninformation on dependency labels, see\nhttp://www.aclweb.org/an thology/P13-2017", 407 "description": "Represents dependency parse tree information for a t oken. (For more\ninformation on dependency labels, see\nhttp://www.aclweb.org/an thology/P13-2017",
702 "id": "DependencyEdge", 408 "id": "DependencyEdge",
703 "properties": { 409 "properties": {
410 "headTokenIndex": {
411 "description": "Represents the head of this token in the dep endency tree.\nThis is the index of the token which has an arc going to this tok en.\nThe index is the position of the token in the array of tokens returned\nby the API method. If this token is a root token, then the\n`head_token_index` is i ts own index.",
412 "format": "int32",
413 "type": "integer"
414 },
704 "label": { 415 "label": {
705 "description": "The parse label for the token.", 416 "description": "The parse label for the token.",
706 "enum": [ 417 "enum": [
707 "UNKNOWN", 418 "UNKNOWN",
708 "ABBREV", 419 "ABBREV",
709 "ACOMP", 420 "ACOMP",
710 "ADVCL", 421 "ADVCL",
711 "ADVMOD", 422 "ADVMOD",
712 "AMOD", 423 "AMOD",
713 "APPOS", 424 "APPOS",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 "Keyword", 566 "Keyword",
856 "List for chains of comparable items", 567 "List for chains of comparable items",
857 "Nominalized clause", 568 "Nominalized clause",
858 "Nominalized clausal subject", 569 "Nominalized clausal subject",
859 "Nominalized clausal passive", 570 "Nominalized clausal passive",
860 "Compound of numeric modifier", 571 "Compound of numeric modifier",
861 "Copula", 572 "Copula",
862 "Dislocated relation (for fronted/topicalized elements)" 573 "Dislocated relation (for fronted/topicalized elements)"
863 ], 574 ],
864 "type": "string" 575 "type": "string"
865 },
866 "headTokenIndex": {
867 "description": "Represents the head of this token in the dep endency tree.\nThis is the index of the token which has an arc going to this tok en.\nThe index is the position of the token in the array of tokens returned\nby the API method. If this token is a root token, then the\n`head_token_index` is i ts own index.",
868 "format": "int32",
869 "type": "integer"
870 } 576 }
871 }, 577 },
872 "type": "object" 578 "type": "object"
873 }, 579 },
874 "Token": { 580 "Token": {
875 "description": "Represents the smallest syntactic building block of the text.", 581 "description": "Represents the smallest syntactic building block of the text.",
876 "id": "Token", 582 "id": "Token",
877 "properties": { 583 "properties": {
878 "partOfSpeech": { 584 "partOfSpeech": {
879 "$ref": "PartOfSpeech", 585 "$ref": "PartOfSpeech",
(...skipping 27 matching lines...) Expand all
907 "description": "The content of the output text.", 613 "description": "The content of the output text.",
908 "type": "string" 614 "type": "string"
909 } 615 }
910 }, 616 },
911 "type": "object" 617 "type": "object"
912 }, 618 },
913 "Status": { 619 "Status": {
914 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.", 620 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Lan guage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\ n\nThe error model and the `Status` message can be used in a variety of\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e across different environments.\n\nExample uses of this error model include:\n\ n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
915 "id": "Status", 621 "id": "Status",
916 "properties": { 622 "properties": {
917 "code": {
918 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
919 "format": "int32",
920 "type": "integer"
921 },
922 "message": {
923 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
924 "type": "string"
925 },
926 "details": { 623 "details": {
927 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 624 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
928 "items": { 625 "items": {
929 "additionalProperties": { 626 "additionalProperties": {
930 "description": "Properties of the object. Contains f ield @type with type URL.", 627 "description": "Properties of the object. Contains f ield @type with type URL.",
931 "type": "any" 628 "type": "any"
932 }, 629 },
933 "type": "object" 630 "type": "object"
934 }, 631 },
935 "type": "array" 632 "type": "array"
633 },
634 "code": {
635 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
636 "format": "int32",
637 "type": "integer"
638 },
639 "message": {
640 "description": "A developer-facing error message, which shou ld be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
641 "type": "string"
936 } 642 }
937 }, 643 },
938 "type": "object" 644 "type": "object"
645 },
646 "Features": {
647 "description": "All available features for sentiment, syntax, and se mantic analysis.\nSetting each one to true will enable that specific analysis fo r the input.",
648 "id": "Features",
649 "properties": {
650 "extractEntities": {
651 "description": "Extract entities.",
652 "type": "boolean"
653 },
654 "extractSyntax": {
655 "description": "Extract syntax information.",
656 "type": "boolean"
657 },
658 "extractDocumentSentiment": {
659 "description": "Extract document-level sentiment.",
660 "type": "boolean"
661 }
662 },
663 "type": "object"
939 }, 664 },
940 "EntityMention": { 665 "EntityMention": {
941 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.", 666 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.",
942 "id": "EntityMention", 667 "id": "EntityMention",
943 "properties": { 668 "properties": {
944 "text": { 669 "text": {
945 "$ref": "TextSpan", 670 "$ref": "TextSpan",
946 "description": "The mention text." 671 "description": "The mention text."
947 }, 672 },
948 "type": { 673 "type": {
949 "description": "The type of the entity mention.", 674 "description": "The type of the entity mention.",
950 "enum": [ 675 "enum": [
951 "TYPE_UNKNOWN", 676 "TYPE_UNKNOWN",
952 "PROPER", 677 "PROPER",
953 "COMMON" 678 "COMMON"
954 ], 679 ],
955 "enumDescriptions": [ 680 "enumDescriptions": [
956 "Unknown", 681 "Unknown",
957 "Proper name", 682 "Proper name",
958 "Common noun (or noun compound)" 683 "Common noun (or noun compound)"
959 ], 684 ],
960 "type": "string" 685 "type": "string"
961 } 686 }
962 }, 687 },
963 "type": "object" 688 "type": "object"
964 }, 689 },
965 "Features": { 690 "Sentence": {
966 "description": "All available features for sentiment, syntax, and se mantic analysis.\nSetting each one to true will enable that specific analysis fo r the input.", 691 "description": "Represents a sentence in the input document.",
967 "id": "Features", 692 "id": "Sentence",
968 "properties": { 693 "properties": {
969 "extractSyntax": { 694 "text": {
970 "description": "Extract syntax information.", 695 "$ref": "TextSpan",
971 "type": "boolean" 696 "description": "The sentence text."
972 }, 697 },
973 "extractDocumentSentiment": { 698 "sentiment": {
974 "description": "Extract document-level sentiment.", 699 "$ref": "Sentiment",
975 "type": "boolean" 700 "description": "For calls to AnalyzeSentiment or if\nAnnotat eTextRequest.Features.extract_document_sentiment is set to\ntrue, this field wil l contain the sentiment for the sentence."
976 },
977 "extractEntities": {
978 "description": "Extract entities.",
979 "type": "boolean"
980 } 701 }
981 }, 702 },
982 "type": "object" 703 "type": "object"
983 }, 704 },
984 "Document": { 705 "Document": {
985 "description": "#################################################### ############ #\n\nRepresents the input to API methods.", 706 "description": "#################################################### ############ #\n\nRepresents the input to API methods.",
986 "id": "Document", 707 "id": "Document",
987 "properties": { 708 "properties": {
709 "gcsContentUri": {
710 "description": "The Google Cloud Storage URI where the file content is located.\nThis URI must be of the form: gs://bucket_name/object_name. For more\ndetails, see https://cloud.google.com/storage/docs/reference-uris.\nN OTE: Cloud Storage object versioning is not supported.",
711 "type": "string"
712 },
713 "language": {
714 "description": "The language of the document (if not specifi ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes are\naccepted.<br>\n**Current Language Restrictions:**\n\n * Only English, Span ish, and Japanese textual content are supported.\nIf the language (either specif ied by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
715 "type": "string"
716 },
988 "type": { 717 "type": {
989 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", 718 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
990 "enum": [ 719 "enum": [
991 "TYPE_UNSPECIFIED", 720 "TYPE_UNSPECIFIED",
992 "PLAIN_TEXT", 721 "PLAIN_TEXT",
993 "HTML" 722 "HTML"
994 ], 723 ],
995 "enumDescriptions": [ 724 "enumDescriptions": [
996 "The content type is not specified.", 725 "The content type is not specified.",
997 "Plain text", 726 "Plain text",
998 "HTML" 727 "HTML"
999 ], 728 ],
1000 "type": "string" 729 "type": "string"
1001 }, 730 },
1002 "content": { 731 "content": {
1003 "description": "The content of the input in string format.", 732 "description": "The content of the input in string format.",
1004 "type": "string" 733 "type": "string"
1005 },
1006 "gcsContentUri": {
1007 "description": "The Google Cloud Storage URI where the file content is located.\nThis URI must be of the form: gs://bucket_name/object_name. For more\ndetails, see https://cloud.google.com/storage/docs/reference-uris.\nN OTE: Cloud Storage object versioning is not supported.",
1008 "type": "string"
1009 },
1010 "language": {
1011 "description": "The language of the document (if not specifi ed, the language is\nautomatically detected). Both ISO and BCP-47 language codes are\naccepted.<br>\n**Current Language Restrictions:**\n\n * Only English, Span ish, and Japanese textual content are supported.\nIf the language (either specif ied by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
1012 "type": "string"
1013 } 734 }
1014 }, 735 },
1015 "type": "object" 736 "type": "object"
1016 },
1017 "Sentence": {
1018 "description": "Represents a sentence in the input document.",
1019 "id": "Sentence",
1020 "properties": {
1021 "text": {
1022 "$ref": "TextSpan",
1023 "description": "The sentence text."
1024 },
1025 "sentiment": {
1026 "$ref": "Sentiment",
1027 "description": "For calls to AnalyzeSentiment or if\nAnnotat eTextRequest.Features.extract_document_sentiment is set to\ntrue, this field wil l contain the sentiment for the sentence."
1028 }
1029 },
1030 "type": "object"
1031 }, 737 },
1032 "Sentiment": { 738 "Sentiment": {
1033 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.", 739 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.",
1034 "id": "Sentiment", 740 "id": "Sentiment",
1035 "properties": { 741 "properties": {
1036 "score": { 742 "score": {
1037 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).", 743 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).",
1038 "format": "float", 744 "format": "float",
1039 "type": "number" 745 "type": "number"
1040 }, 746 },
1041 "magnitude": { 747 "magnitude": {
1042 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).", 748 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).",
1043 "format": "float", 749 "format": "float",
1044 "type": "number" 750 "type": "number"
1045 } 751 }
1046 }, 752 },
1047 "type": "object" 753 "type": "object"
1048 }, 754 },
1049 "AnalyzeEntitiesRequest": { 755 "AnalyzeEntitiesRequest": {
1050 "description": "The entity analysis request message.", 756 "description": "The entity analysis request message.",
1051 "id": "AnalyzeEntitiesRequest", 757 "id": "AnalyzeEntitiesRequest",
1052 "properties": { 758 "properties": {
759 "document": {
760 "$ref": "Document",
761 "description": "Input document."
762 },
1053 "encodingType": { 763 "encodingType": {
1054 "description": "The encoding type used by the API to calcula te offsets.", 764 "description": "The encoding type used by the API to calcula te offsets.",
1055 "enum": [ 765 "enum": [
766 "NONE",
767 "UTF8",
768 "UTF16",
769 "UTF32"
770 ],
771 "enumDescriptions": [
772 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
773 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.",
774 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.",
775 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
776 ],
777 "type": "string"
778 }
779 },
780 "type": "object"
781 },
782 "PartOfSpeech": {
783 "description": "Represents part of speech information for a token. P arts of speech\nare as defined in\nhttp://www.lrec-conf.org/proceedings/lrec2012 /pdf/274_Paper.pdf",
784 "id": "PartOfSpeech",
785 "properties": {
786 "form": {
787 "description": "The grammatical form.",
788 "enum": [
789 "FORM_UNKNOWN",
790 "ADNOMIAL",
791 "AUXILIARY",
792 "COMPLEMENTIZER",
793 "FINAL_ENDING",
794 "GERUND",
795 "REALIS",
796 "IRREALIS",
797 "SHORT",
798 "LONG",
799 "ORDER",
800 "SPECIFIC"
801 ],
802 "enumDescriptions": [
803 "Form is not applicable in the analyzed language or is n ot predicted.",
804 "Adnomial",
805 "Auxiliary",
806 "Complementizer",
807 "Final ending",
808 "Gerund",
809 "Realis",
810 "Irrealis",
811 "Short form",
812 "Long form",
813 "Order form",
814 "Specific form"
815 ],
816 "type": "string"
817 },
818 "number": {
819 "description": "The grammatical number.",
820 "enum": [
821 "NUMBER_UNKNOWN",
822 "SINGULAR",
823 "PLURAL",
824 "DUAL"
825 ],
826 "enumDescriptions": [
827 "Number is not applicable in the analyzed language or is not predicted.",
828 "Singular",
829 "Plural",
830 "Dual"
831 ],
832 "type": "string"
833 },
834 "voice": {
835 "description": "The grammatical voice.",
836 "enum": [
837 "VOICE_UNKNOWN",
838 "ACTIVE",
839 "CAUSATIVE",
840 "PASSIVE"
841 ],
842 "enumDescriptions": [
843 "Voice is not applicable in the analyzed language or is not predicted.",
844 "Active",
845 "Causative",
846 "Passive"
847 ],
848 "type": "string"
849 },
850 "aspect": {
851 "description": "The grammatical aspect.",
852 "enum": [
853 "ASPECT_UNKNOWN",
854 "PERFECTIVE",
855 "IMPERFECTIVE",
856 "PROGRESSIVE"
857 ],
858 "enumDescriptions": [
859 "Aspect is not applicable in the analyzed language or is not predicted.",
860 "Perfective",
861 "Imperfective",
862 "Progressive"
863 ],
864 "type": "string"
865 },
866 "mood": {
867 "description": "The grammatical mood.",
868 "enum": [
869 "MOOD_UNKNOWN",
870 "CONDITIONAL_MOOD",
871 "IMPERATIVE",
872 "INDICATIVE",
873 "INTERROGATIVE",
874 "JUSSIVE",
875 "SUBJUNCTIVE"
876 ],
877 "enumDescriptions": [
878 "Mood is not applicable in the analyzed language or is n ot predicted.",
879 "Conditional",
880 "Imperative",
881 "Indicative",
882 "Interrogative",
883 "Jussive",
884 "Subjunctive"
885 ],
886 "type": "string"
887 },
888 "tag": {
889 "description": "The part of speech tag.",
890 "enum": [
891 "UNKNOWN",
892 "ADJ",
893 "ADP",
894 "ADV",
895 "CONJ",
896 "DET",
897 "NOUN",
898 "NUM",
899 "PRON",
900 "PRT",
901 "PUNCT",
902 "VERB",
903 "X",
904 "AFFIX"
905 ],
906 "enumDescriptions": [
907 "Unknown",
908 "Adjective",
909 "Adposition (preposition and postposition)",
910 "Adverb",
911 "Conjunction",
912 "Determiner",
913 "Noun (common and proper)",
914 "Cardinal number",
915 "Pronoun",
916 "Particle or other function word",
917 "Punctuation",
918 "Verb (all tenses and modes)",
919 "Other: foreign words, typos, abbreviations",
920 "Affix"
921 ],
922 "type": "string"
923 },
924 "gender": {
925 "description": "The grammatical gender.",
926 "enum": [
927 "GENDER_UNKNOWN",
928 "FEMININE",
929 "MASCULINE",
930 "NEUTER"
931 ],
932 "enumDescriptions": [
933 "Gender is not applicable in the analyzed language or is not predicted.",
934 "Feminine",
935 "Masculine",
936 "Neuter"
937 ],
938 "type": "string"
939 },
940 "person": {
941 "description": "The grammatical person.",
942 "enum": [
943 "PERSON_UNKNOWN",
944 "FIRST",
945 "SECOND",
946 "THIRD",
947 "REFLEXIVE_PERSON"
948 ],
949 "enumDescriptions": [
950 "Person is not applicable in the analyzed language or is not predicted.",
951 "First",
952 "Second",
953 "Third",
954 "Reflexive"
955 ],
956 "type": "string"
957 },
958 "proper": {
959 "description": "The grammatical properness.",
960 "enum": [
961 "PROPER_UNKNOWN",
962 "PROPER",
963 "NOT_PROPER"
964 ],
965 "enumDescriptions": [
966 "Proper is not applicable in the analyzed language or is not predicted.",
967 "Proper",
968 "Not proper"
969 ],
970 "type": "string"
971 },
972 "case": {
973 "description": "The grammatical case.",
974 "enum": [
975 "CASE_UNKNOWN",
976 "ACCUSATIVE",
977 "ADVERBIAL",
978 "COMPLEMENTIVE",
979 "DATIVE",
980 "GENITIVE",
981 "INSTRUMENTAL",
982 "LOCATIVE",
983 "NOMINATIVE",
984 "OBLIQUE",
985 "PARTITIVE",
986 "PREPOSITIONAL",
987 "REFLEXIVE_CASE",
988 "RELATIVE_CASE",
989 "VOCATIVE"
990 ],
991 "enumDescriptions": [
992 "Case is not applicable in the analyzed language or is n ot predicted.",
993 "Accusative",
994 "Adverbial",
995 "Complementive",
996 "Dative",
997 "Genitive",
998 "Instrumental",
999 "Locative",
1000 "Nominative",
1001 "Oblique",
1002 "Partitive",
1003 "Prepositional",
1004 "Reflexive",
1005 "Relative",
1006 "Vocative"
1007 ],
1008 "type": "string"
1009 },
1010 "tense": {
1011 "description": "The grammatical tense.",
1012 "enum": [
1013 "TENSE_UNKNOWN",
1014 "CONDITIONAL_TENSE",
1015 "FUTURE",
1016 "PAST",
1017 "PRESENT",
1018 "IMPERFECT",
1019 "PLUPERFECT"
1020 ],
1021 "enumDescriptions": [
1022 "Tense is not applicable in the analyzed language or is not predicted.",
1023 "Conditional",
1024 "Future",
1025 "Past",
1026 "Present",
1027 "Imperfect",
1028 "Pluperfect"
1029 ],
1030 "type": "string"
1031 },
1032 "reciprocity": {
1033 "description": "The grammatical reciprocity.",
1034 "enum": [
1035 "RECIPROCITY_UNKNOWN",
1036 "RECIPROCAL",
1037 "NON_RECIPROCAL"
1038 ],
1039 "enumDescriptions": [
1040 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
1041 "Reciprocal",
1042 "Non-reciprocal"
1043 ],
1044 "type": "string"
1045 }
1046 },
1047 "type": "object"
1048 },
1049 "AnalyzeSyntaxRequest": {
1050 "description": "The syntax analysis request message.",
1051 "id": "AnalyzeSyntaxRequest",
1052 "properties": {
1053 "encodingType": {
1054 "description": "The encoding type used by the API to calcula te offsets.",
1055 "enum": [
1056 "NONE", 1056 "NONE",
1057 "UTF8", 1057 "UTF8",
1058 "UTF16", 1058 "UTF16",
1059 "UTF32" 1059 "UTF32"
1060 ], 1060 ],
1061 "enumDescriptions": [ 1061 "enumDescriptions": [
1062 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 1062 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
1063 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.", 1063 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are example s of languages\nthat use this encoding natively.",
1064 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.", 1064 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript a re examples of\nlanguages that use this encoding natively.",
1065 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively." 1065 "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-32 encoding of the input. Python is an example of a language\nthat uses this encoding natively."
1066 ], 1066 ],
1067 "type": "string" 1067 "type": "string"
1068 }, 1068 },
1069 "document": { 1069 "document": {
1070 "$ref": "Document", 1070 "$ref": "Document",
1071 "description": "Input document." 1071 "description": "Input document."
1072 } 1072 }
1073 }, 1073 },
1074 "type": "object" 1074 "type": "object"
1075 } 1075 }
1076 }, 1076 },
1077 "servicePath": "", 1077 "servicePath": "",
1078 "title": "Google Cloud Natural Language API", 1078 "title": "Google Cloud Natural Language API",
1079 "version": "v1" 1079 "version": "v1"
1080 } 1080 }
OLDNEW
« no previous file with comments | « discovery/googleapis/kgsearch__v1.json ('k') | discovery/googleapis/licensing__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698