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

Side by Side Diff: discovery/googleapis_beta/language__v1beta1.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
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-language": { 5 "https://www.googleapis.com/auth/cloud-language": {
6 "description": "Apply machine learning models to reveal the structure and meaning of text" 6 "description": "Apply machine learning models to reveal the structure and meaning of text"
7 }, 7 },
8 "https://www.googleapis.com/auth/cloud-platform": { 8 "https://www.googleapis.com/auth/cloud-platform": {
9 "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"
10 } 10 }
(...skipping 10 matching lines...) Expand all
21 "icons": { 21 "icons": {
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", 22 "x16": "http://www.google.com/images/icons/product/search-16.gif",
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" 23 "x32": "http://www.google.com/images/icons/product/search-32.gif"
24 }, 24 },
25 "id": "language:v1beta1", 25 "id": "language:v1beta1",
26 "kind": "discovery#restDescription", 26 "kind": "discovery#restDescription",
27 "name": "language", 27 "name": "language",
28 "ownerDomain": "google.com", 28 "ownerDomain": "google.com",
29 "ownerName": "Google", 29 "ownerName": "Google",
30 "parameters": { 30 "parameters": {
31 "upload_protocol": {
32 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
33 "location": "query",
34 "type": "string"
35 },
36 "prettyPrint": {
37 "default": "true",
38 "description": "Returns response with indentations and line breaks." ,
39 "location": "query",
40 "type": "boolean"
41 },
42 "uploadType": {
43 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
44 "location": "query",
45 "type": "string"
46 },
47 "fields": {
48 "description": "Selector specifying which fields to include in a par tial response.",
49 "location": "query",
50 "type": "string"
51 },
52 "$.xgafv": {
53 "description": "V1 error format.",
54 "enum": [
55 "1",
56 "2"
57 ],
58 "enumDescriptions": [
59 "v1 error format",
60 "v2 error format"
61 ],
62 "location": "query",
63 "type": "string"
64 },
65 "callback": {
66 "description": "JSONP",
67 "location": "query",
68 "type": "string"
69 },
31 "alt": { 70 "alt": {
32 "default": "json", 71 "default": "json",
33 "description": "Data format for response.", 72 "description": "Data format for response.",
34 "enum": [ 73 "enum": [
35 "json", 74 "json",
36 "media", 75 "media",
37 "proto" 76 "proto"
38 ], 77 ],
39 "enumDescriptions": [ 78 "enumDescriptions": [
40 "Responses with Content-Type of application/json", 79 "Responses with Content-Type of application/json",
(...skipping 26 matching lines...) Expand all
67 }, 106 },
68 "bearer_token": { 107 "bearer_token": {
69 "description": "OAuth bearer token.", 108 "description": "OAuth bearer token.",
70 "location": "query", 109 "location": "query",
71 "type": "string" 110 "type": "string"
72 }, 111 },
73 "oauth_token": { 112 "oauth_token": {
74 "description": "OAuth 2.0 token for the current user.", 113 "description": "OAuth 2.0 token for the current user.",
75 "location": "query", 114 "location": "query",
76 "type": "string" 115 "type": "string"
77 },
78 "upload_protocol": {
79 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
80 "location": "query",
81 "type": "string"
82 },
83 "prettyPrint": {
84 "default": "true",
85 "description": "Returns response with indentations and line breaks." ,
86 "location": "query",
87 "type": "boolean"
88 },
89 "uploadType": {
90 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
91 "location": "query",
92 "type": "string"
93 },
94 "fields": {
95 "description": "Selector specifying which fields to include in a par tial response.",
96 "location": "query",
97 "type": "string"
98 },
99 "$.xgafv": {
100 "description": "V1 error format.",
101 "enum": [
102 "1",
103 "2"
104 ],
105 "enumDescriptions": [
106 "v1 error format",
107 "v2 error format"
108 ],
109 "location": "query",
110 "type": "string"
111 },
112 "callback": {
113 "description": "JSONP",
114 "location": "query",
115 "type": "string"
116 } 116 }
117 }, 117 },
118 "protocol": "rest", 118 "protocol": "rest",
119 "resources": { 119 "resources": {
120 "documents": { 120 "documents": {
121 "methods": { 121 "methods": {
122 "analyzeSentiment": {
123 "description": "Analyzes the sentiment of the provided text. ",
124 "httpMethod": "POST",
125 "id": "language.documents.analyzeSentiment",
126 "parameterOrder": [],
127 "parameters": {},
128 "path": "v1beta1/documents:analyzeSentiment",
129 "request": {
130 "$ref": "AnalyzeSentimentRequest"
131 },
132 "response": {
133 "$ref": "AnalyzeSentimentResponse"
134 },
135 "scopes": [
136 "https://www.googleapis.com/auth/cloud-language",
137 "https://www.googleapis.com/auth/cloud-platform"
138 ]
139 },
140 "annotateText": {
141 "description": "A convenience method that provides all the f eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on e call.",
142 "httpMethod": "POST",
143 "id": "language.documents.annotateText",
144 "parameterOrder": [],
145 "parameters": {},
146 "path": "v1beta1/documents:annotateText",
147 "request": {
148 "$ref": "AnnotateTextRequest"
149 },
150 "response": {
151 "$ref": "AnnotateTextResponse"
152 },
153 "scopes": [
154 "https://www.googleapis.com/auth/cloud-language",
155 "https://www.googleapis.com/auth/cloud-platform"
156 ]
157 },
122 "analyzeEntities": { 158 "analyzeEntities": {
123 "description": "Finds named entities (currently proper names and common nouns) in the text\nalong with entity types, salience, mentions for each entity, and\nother properties.", 159 "description": "Finds named entities (currently proper names and common nouns) in the text\nalong with entity types, salience, mentions for each entity, and\nother properties.",
124 "httpMethod": "POST", 160 "httpMethod": "POST",
125 "id": "language.documents.analyzeEntities", 161 "id": "language.documents.analyzeEntities",
126 "parameterOrder": [], 162 "parameterOrder": [],
127 "parameters": {}, 163 "parameters": {},
128 "path": "v1beta1/documents:analyzeEntities", 164 "path": "v1beta1/documents:analyzeEntities",
129 "request": { 165 "request": {
130 "$ref": "AnalyzeEntitiesRequest" 166 "$ref": "AnalyzeEntitiesRequest"
131 }, 167 },
(...skipping 13 matching lines...) Expand all
145 "parameters": {}, 181 "parameters": {},
146 "path": "v1beta1/documents:analyzeSyntax", 182 "path": "v1beta1/documents:analyzeSyntax",
147 "request": { 183 "request": {
148 "$ref": "AnalyzeSyntaxRequest" 184 "$ref": "AnalyzeSyntaxRequest"
149 }, 185 },
150 "response": { 186 "response": {
151 "$ref": "AnalyzeSyntaxResponse" 187 "$ref": "AnalyzeSyntaxResponse"
152 }, 188 },
153 "scopes": [ 189 "scopes": [
154 "https://www.googleapis.com/auth/cloud-language", 190 "https://www.googleapis.com/auth/cloud-language",
155 "https://www.googleapis.com/auth/cloud-platform"
156 ]
157 },
158 "analyzeSentiment": {
159 "description": "Analyzes the sentiment of the provided text. ",
160 "httpMethod": "POST",
161 "id": "language.documents.analyzeSentiment",
162 "parameterOrder": [],
163 "parameters": {},
164 "path": "v1beta1/documents:analyzeSentiment",
165 "request": {
166 "$ref": "AnalyzeSentimentRequest"
167 },
168 "response": {
169 "$ref": "AnalyzeSentimentResponse"
170 },
171 "scopes": [
172 "https://www.googleapis.com/auth/cloud-language",
173 "https://www.googleapis.com/auth/cloud-platform"
174 ]
175 },
176 "annotateText": {
177 "description": "A convenience method that provides all the f eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on e call.",
178 "httpMethod": "POST",
179 "id": "language.documents.annotateText",
180 "parameterOrder": [],
181 "parameters": {},
182 "path": "v1beta1/documents:annotateText",
183 "request": {
184 "$ref": "AnnotateTextRequest"
185 },
186 "response": {
187 "$ref": "AnnotateTextResponse"
188 },
189 "scopes": [
190 "https://www.googleapis.com/auth/cloud-language",
191 "https://www.googleapis.com/auth/cloud-platform" 191 "https://www.googleapis.com/auth/cloud-platform"
192 ] 192 ]
193 } 193 }
194 } 194 }
195 } 195 }
196 }, 196 },
197 "revision": "20170809", 197 "revision": "20170905",
198 "rootUrl": "https://language.googleapis.com/", 198 "rootUrl": "https://language.googleapis.com/",
199 "schemas": { 199 "schemas": {
200 "Entity": { 200 "PartOfSpeech": {
201 "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.", 201 "description": "Represents part of speech information for a token.",
202 "id": "Entity", 202 "id": "PartOfSpeech",
203 "properties": { 203 "properties": {
204 "salience": { 204 "person": {
205 "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.", 205 "description": "The grammatical person.",
206 "format": "float", 206 "enum": [
207 "type": "number" 207 "PERSON_UNKNOWN",
208 }, 208 "FIRST",
209 "metadata": { 209 "SECOND",
210 "additionalProperties": { 210 "THIRD",
211 "type": "string" 211 "REFLEXIVE_PERSON"
212 }, 212 ],
213 "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.", 213 "enumDescriptions": [
214 "type": "object" 214 "Person is not applicable in the analyzed language or is not predicted.",
215 }, 215 "First",
216 "type": { 216 "Second",
217 "description": "The entity type.", 217 "Third",
218 "Reflexive"
219 ],
220 "type": "string"
221 },
222 "proper": {
223 "description": "The grammatical properness.",
224 "enum": [
225 "PROPER_UNKNOWN",
226 "PROPER",
227 "NOT_PROPER"
228 ],
229 "enumDescriptions": [
230 "Proper is not applicable in the analyzed language or is not predicted.",
231 "Proper",
232 "Not proper"
233 ],
234 "type": "string"
235 },
236 "case": {
237 "description": "The grammatical case.",
238 "enum": [
239 "CASE_UNKNOWN",
240 "ACCUSATIVE",
241 "ADVERBIAL",
242 "COMPLEMENTIVE",
243 "DATIVE",
244 "GENITIVE",
245 "INSTRUMENTAL",
246 "LOCATIVE",
247 "NOMINATIVE",
248 "OBLIQUE",
249 "PARTITIVE",
250 "PREPOSITIONAL",
251 "REFLEXIVE_CASE",
252 "RELATIVE_CASE",
253 "VOCATIVE"
254 ],
255 "enumDescriptions": [
256 "Case is not applicable in the analyzed language or is n ot predicted.",
257 "Accusative",
258 "Adverbial",
259 "Complementive",
260 "Dative",
261 "Genitive",
262 "Instrumental",
263 "Locative",
264 "Nominative",
265 "Oblique",
266 "Partitive",
267 "Prepositional",
268 "Reflexive",
269 "Relative",
270 "Vocative"
271 ],
272 "type": "string"
273 },
274 "tense": {
275 "description": "The grammatical tense.",
276 "enum": [
277 "TENSE_UNKNOWN",
278 "CONDITIONAL_TENSE",
279 "FUTURE",
280 "PAST",
281 "PRESENT",
282 "IMPERFECT",
283 "PLUPERFECT"
284 ],
285 "enumDescriptions": [
286 "Tense is not applicable in the analyzed language or is not predicted.",
287 "Conditional",
288 "Future",
289 "Past",
290 "Present",
291 "Imperfect",
292 "Pluperfect"
293 ],
294 "type": "string"
295 },
296 "reciprocity": {
297 "description": "The grammatical reciprocity.",
298 "enum": [
299 "RECIPROCITY_UNKNOWN",
300 "RECIPROCAL",
301 "NON_RECIPROCAL"
302 ],
303 "enumDescriptions": [
304 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
305 "Reciprocal",
306 "Non-reciprocal"
307 ],
308 "type": "string"
309 },
310 "form": {
311 "description": "The grammatical form.",
312 "enum": [
313 "FORM_UNKNOWN",
314 "ADNOMIAL",
315 "AUXILIARY",
316 "COMPLEMENTIZER",
317 "FINAL_ENDING",
318 "GERUND",
319 "REALIS",
320 "IRREALIS",
321 "SHORT",
322 "LONG",
323 "ORDER",
324 "SPECIFIC"
325 ],
326 "enumDescriptions": [
327 "Form is not applicable in the analyzed language or is n ot predicted.",
328 "Adnomial",
329 "Auxiliary",
330 "Complementizer",
331 "Final ending",
332 "Gerund",
333 "Realis",
334 "Irrealis",
335 "Short form",
336 "Long form",
337 "Order form",
338 "Specific form"
339 ],
340 "type": "string"
341 },
342 "number": {
343 "description": "The grammatical number.",
344 "enum": [
345 "NUMBER_UNKNOWN",
346 "SINGULAR",
347 "PLURAL",
348 "DUAL"
349 ],
350 "enumDescriptions": [
351 "Number is not applicable in the analyzed language or is not predicted.",
352 "Singular",
353 "Plural",
354 "Dual"
355 ],
356 "type": "string"
357 },
358 "voice": {
359 "description": "The grammatical voice.",
360 "enum": [
361 "VOICE_UNKNOWN",
362 "ACTIVE",
363 "CAUSATIVE",
364 "PASSIVE"
365 ],
366 "enumDescriptions": [
367 "Voice is not applicable in the analyzed language or is not predicted.",
368 "Active",
369 "Causative",
370 "Passive"
371 ],
372 "type": "string"
373 },
374 "aspect": {
375 "description": "The grammatical aspect.",
376 "enum": [
377 "ASPECT_UNKNOWN",
378 "PERFECTIVE",
379 "IMPERFECTIVE",
380 "PROGRESSIVE"
381 ],
382 "enumDescriptions": [
383 "Aspect is not applicable in the analyzed language or is not predicted.",
384 "Perfective",
385 "Imperfective",
386 "Progressive"
387 ],
388 "type": "string"
389 },
390 "mood": {
391 "description": "The grammatical mood.",
392 "enum": [
393 "MOOD_UNKNOWN",
394 "CONDITIONAL_MOOD",
395 "IMPERATIVE",
396 "INDICATIVE",
397 "INTERROGATIVE",
398 "JUSSIVE",
399 "SUBJUNCTIVE"
400 ],
401 "enumDescriptions": [
402 "Mood is not applicable in the analyzed language or is n ot predicted.",
403 "Conditional",
404 "Imperative",
405 "Indicative",
406 "Interrogative",
407 "Jussive",
408 "Subjunctive"
409 ],
410 "type": "string"
411 },
412 "tag": {
413 "description": "The part of speech tag.",
218 "enum": [ 414 "enum": [
219 "UNKNOWN", 415 "UNKNOWN",
220 "PERSON", 416 "ADJ",
221 "LOCATION", 417 "ADP",
222 "ORGANIZATION", 418 "ADV",
223 "EVENT", 419 "CONJ",
224 "WORK_OF_ART", 420 "DET",
225 "CONSUMER_GOOD", 421 "NOUN",
226 "OTHER" 422 "NUM",
423 "PRON",
424 "PRT",
425 "PUNCT",
426 "VERB",
427 "X",
428 "AFFIX"
227 ], 429 ],
228 "enumDescriptions": [ 430 "enumDescriptions": [
229 "Unknown", 431 "Unknown",
230 "Person", 432 "Adjective",
231 "Location", 433 "Adposition (preposition and postposition)",
232 "Organization", 434 "Adverb",
233 "Event", 435 "Conjunction",
234 "Work of art", 436 "Determiner",
235 "Consumer goods", 437 "Noun (common and proper)",
236 "Other types" 438 "Cardinal number",
237 ], 439 "Pronoun",
238 "type": "string" 440 "Particle or other function word",
239 }, 441 "Punctuation",
240 "mentions": { 442 "Verb (all tenses and modes)",
241 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.", 443 "Other: foreign words, typos, abbreviations",
242 "items": { 444 "Affix"
243 "$ref": "EntityMention" 445 ],
244 }, 446 "type": "string"
245 "type": "array" 447 },
246 }, 448 "gender": {
247 "name": { 449 "description": "The grammatical gender.",
248 "description": "The representative name for the entity.", 450 "enum": [
451 "GENDER_UNKNOWN",
452 "FEMININE",
453 "MASCULINE",
454 "NEUTER"
455 ],
456 "enumDescriptions": [
457 "Gender is not applicable in the analyzed language or is not predicted.",
458 "Feminine",
459 "Masculine",
460 "Neuter"
461 ],
249 "type": "string" 462 "type": "string"
250 } 463 }
251 }, 464 },
252 "type": "object" 465 "type": "object"
253 }, 466 },
254 "AnalyzeSyntaxResponse": { 467 "AnalyzeSyntaxRequest": {
255 "description": "The syntax analysis response message.", 468 "description": "The syntax analysis request message.",
256 "id": "AnalyzeSyntaxResponse", 469 "id": "AnalyzeSyntaxRequest",
257 "properties": {
258 "language": {
259 "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.",
260 "type": "string"
261 },
262 "sentences": {
263 "description": "Sentences in the input document.",
264 "items": {
265 "$ref": "Sentence"
266 },
267 "type": "array"
268 },
269 "tokens": {
270 "description": "Tokens, along with their syntactic informati on, in the input document.",
271 "items": {
272 "$ref": "Token"
273 },
274 "type": "array"
275 }
276 },
277 "type": "object"
278 },
279 "AnnotateTextRequest": {
280 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
281 "id": "AnnotateTextRequest",
282 "properties": { 470 "properties": {
283 "encodingType": { 471 "encodingType": {
284 "description": "The encoding type used by the API to calcula te offsets.", 472 "description": "The encoding type used by the API to calcula te offsets.",
285 "enum": [ 473 "enum": [
286 "NONE", 474 "NONE",
287 "UTF8", 475 "UTF8",
288 "UTF16", 476 "UTF16",
289 "UTF32" 477 "UTF32"
290 ], 478 ],
291 "enumDescriptions": [
292 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
293 "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.",
294 "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.",
295 "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."
296 ],
297 "type": "string"
298 },
299 "document": {
300 "$ref": "Document",
301 "description": "Input document."
302 },
303 "features": {
304 "$ref": "Features",
305 "description": "The enabled features."
306 }
307 },
308 "type": "object"
309 },
310 "AnalyzeSentimentRequest": {
311 "description": "The sentiment analysis request message.",
312 "id": "AnalyzeSentimentRequest",
313 "properties": {
314 "encodingType": {
315 "description": "The encoding type used by the API to calcula te sentence offsets for the\nsentence sentiment.",
316 "enum": [
317 "NONE",
318 "UTF8",
319 "UTF16",
320 "UTF32"
321 ],
322 "enumDescriptions": [ 479 "enumDescriptions": [
323 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 480 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
324 "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.", 481 "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.",
325 "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.", 482 "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.",
326 "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." 483 "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."
327 ], 484 ],
328 "type": "string" 485 "type": "string"
329 }, 486 },
330 "document": { 487 "document": {
331 "$ref": "Document", 488 "$ref": "Document",
332 "description": "Input document." 489 "description": "Input document."
333 } 490 }
334 }, 491 },
335 "type": "object" 492 "type": "object"
336 }, 493 },
494 "AnalyzeSentimentResponse": {
495 "description": "The sentiment analysis response message.",
496 "id": "AnalyzeSentimentResponse",
497 "properties": {
498 "documentSentiment": {
499 "$ref": "Sentiment",
500 "description": "The overall sentiment of the input document. "
501 },
502 "language": {
503 "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.",
504 "type": "string"
505 },
506 "sentences": {
507 "description": "The sentiment for all the sentences in the d ocument.",
508 "items": {
509 "$ref": "Sentence"
510 },
511 "type": "array"
512 }
513 },
514 "type": "object"
515 },
516 "AnalyzeEntitiesResponse": {
517 "description": "The entity analysis response message.",
518 "id": "AnalyzeEntitiesResponse",
519 "properties": {
520 "entities": {
521 "description": "The recognized entities in the input documen t.",
522 "items": {
523 "$ref": "Entity"
524 },
525 "type": "array"
526 },
527 "language": {
528 "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.",
529 "type": "string"
530 }
531 },
532 "type": "object"
533 },
534 "AnalyzeSyntaxResponse": {
535 "description": "The syntax analysis response message.",
536 "id": "AnalyzeSyntaxResponse",
537 "properties": {
538 "language": {
539 "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.",
540 "type": "string"
541 },
542 "sentences": {
543 "description": "Sentences in the input document.",
544 "items": {
545 "$ref": "Sentence"
546 },
547 "type": "array"
548 },
549 "tokens": {
550 "description": "Tokens, along with their syntactic informati on, in the input document.",
551 "items": {
552 "$ref": "Token"
553 },
554 "type": "array"
555 }
556 },
557 "type": "object"
558 },
559 "Entity": {
560 "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.",
561 "id": "Entity",
562 "properties": {
563 "mentions": {
564 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
565 "items": {
566 "$ref": "EntityMention"
567 },
568 "type": "array"
569 },
570 "name": {
571 "description": "The representative name for the entity.",
572 "type": "string"
573 },
574 "salience": {
575 "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.",
576 "format": "float",
577 "type": "number"
578 },
579 "metadata": {
580 "additionalProperties": {
581 "type": "string"
582 },
583 "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.",
584 "type": "object"
585 },
586 "type": {
587 "description": "The entity type.",
588 "enum": [
589 "UNKNOWN",
590 "PERSON",
591 "LOCATION",
592 "ORGANIZATION",
593 "EVENT",
594 "WORK_OF_ART",
595 "CONSUMER_GOOD",
596 "OTHER"
597 ],
598 "enumDescriptions": [
599 "Unknown",
600 "Person",
601 "Location",
602 "Organization",
603 "Event",
604 "Work of art",
605 "Consumer goods",
606 "Other types"
607 ],
608 "type": "string"
609 }
610 },
611 "type": "object"
612 },
613 "AnnotateTextRequest": {
614 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
615 "id": "AnnotateTextRequest",
616 "properties": {
617 "encodingType": {
618 "description": "The encoding type used by the API to calcula te offsets.",
619 "enum": [
620 "NONE",
621 "UTF8",
622 "UTF16",
623 "UTF32"
624 ],
625 "enumDescriptions": [
626 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
627 "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.",
628 "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.",
629 "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."
630 ],
631 "type": "string"
632 },
633 "document": {
634 "$ref": "Document",
635 "description": "Input document."
636 },
637 "features": {
638 "$ref": "Features",
639 "description": "The enabled features."
640 }
641 },
642 "type": "object"
643 },
337 "AnnotateTextResponse": { 644 "AnnotateTextResponse": {
338 "description": "The text annotations response message.", 645 "description": "The text annotations response message.",
339 "id": "AnnotateTextResponse", 646 "id": "AnnotateTextResponse",
340 "properties": { 647 "properties": {
648 "language": {
649 "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.",
650 "type": "string"
651 },
652 "sentences": {
653 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
654 "items": {
655 "$ref": "Sentence"
656 },
657 "type": "array"
658 },
659 "tokens": {
660 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
661 "items": {
662 "$ref": "Token"
663 },
664 "type": "array"
665 },
341 "entities": { 666 "entities": {
342 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.", 667 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
343 "items": { 668 "items": {
344 "$ref": "Entity" 669 "$ref": "Entity"
345 }, 670 },
346 "type": "array" 671 "type": "array"
347 }, 672 },
348 "documentSentiment": { 673 "documentSentiment": {
349 "$ref": "Sentiment", 674 "$ref": "Sentiment",
350 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt." 675 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
351 }, 676 }
352 "language": { 677 },
353 "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.", 678 "type": "object"
354 "type": "string" 679 },
355 }, 680 "AnalyzeSentimentRequest": {
356 "sentences": { 681 "description": "The sentiment analysis request message.",
357 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.", 682 "id": "AnalyzeSentimentRequest",
358 "items": { 683 "properties": {
359 "$ref": "Sentence" 684 "encodingType": {
360 }, 685 "description": "The encoding type used by the API to calcula te sentence offsets for the\nsentence sentiment.",
361 "type": "array" 686 "enum": [
362 }, 687 "NONE",
363 "tokens": { 688 "UTF8",
364 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.", 689 "UTF16",
365 "items": { 690 "UTF32"
366 "$ref": "Token" 691 ],
367 }, 692 "enumDescriptions": [
368 "type": "array" 693 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
369 } 694 "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.",
370 }, 695 "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.",
371 "type": "object" 696 "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."
697 ],
698 "type": "string"
699 },
700 "document": {
701 "$ref": "Document",
702 "description": "Input document."
703 }
704 },
705 "type": "object"
372 }, 706 },
373 "DependencyEdge": { 707 "DependencyEdge": {
374 "description": "Represents dependency parse tree information for a t oken.", 708 "description": "Represents dependency parse tree information for a t oken.",
375 "id": "DependencyEdge", 709 "id": "DependencyEdge",
376 "properties": { 710 "properties": {
711 "headTokenIndex": {
712 "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.",
713 "format": "int32",
714 "type": "integer"
715 },
377 "label": { 716 "label": {
378 "description": "The parse label for the token.", 717 "description": "The parse label for the token.",
379 "enum": [ 718 "enum": [
380 "UNKNOWN", 719 "UNKNOWN",
381 "ABBREV", 720 "ABBREV",
382 "ACOMP", 721 "ACOMP",
383 "ADVCL", 722 "ADVCL",
384 "ADVMOD", 723 "ADVMOD",
385 "AMOD", 724 "AMOD",
386 "APPOS", 725 "APPOS",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 "Keyword", 867 "Keyword",
529 "List for chains of comparable items", 868 "List for chains of comparable items",
530 "Nominalized clause", 869 "Nominalized clause",
531 "Nominalized clausal subject", 870 "Nominalized clausal subject",
532 "Nominalized clausal passive", 871 "Nominalized clausal passive",
533 "Compound of numeric modifier", 872 "Compound of numeric modifier",
534 "Copula", 873 "Copula",
535 "Dislocated relation (for fronted/topicalized elements)" 874 "Dislocated relation (for fronted/topicalized elements)"
536 ], 875 ],
537 "type": "string" 876 "type": "string"
538 },
539 "headTokenIndex": {
540 "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.",
541 "format": "int32",
542 "type": "integer"
543 } 877 }
544 }, 878 },
545 "type": "object" 879 "type": "object"
546 }, 880 },
547 "Token": { 881 "Token": {
548 "description": "Represents the smallest syntactic building block of the text.", 882 "description": "Represents the smallest syntactic building block of the text.",
549 "id": "Token", 883 "id": "Token",
550 "properties": { 884 "properties": {
551 "partOfSpeech": { 885 "partOfSpeech": {
552 "$ref": "PartOfSpeech", 886 "$ref": "PartOfSpeech",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 "format": "int32", 941 "format": "int32",
608 "type": "integer" 942 "type": "integer"
609 } 943 }
610 }, 944 },
611 "type": "object" 945 "type": "object"
612 }, 946 },
613 "Features": { 947 "Features": {
614 "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.", 948 "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.",
615 "id": "Features", 949 "id": "Features",
616 "properties": { 950 "properties": {
617 "extractEntities": {
618 "description": "Extract entities.",
619 "type": "boolean"
620 },
621 "extractDocumentSentiment": { 951 "extractDocumentSentiment": {
622 "description": "Extract document-level sentiment.", 952 "description": "Extract document-level sentiment.",
623 "type": "boolean" 953 "type": "boolean"
624 }, 954 },
625 "extractSyntax": { 955 "extractSyntax": {
626 "description": "Extract syntax information.", 956 "description": "Extract syntax information.",
627 "type": "boolean" 957 "type": "boolean"
958 },
959 "extractEntities": {
960 "description": "Extract entities.",
961 "type": "boolean"
628 } 962 }
629 }, 963 },
630 "type": "object" 964 "type": "object"
631 }, 965 },
632 "EntityMention": { 966 "EntityMention": {
633 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.", 967 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.",
634 "id": "EntityMention", 968 "id": "EntityMention",
635 "properties": { 969 "properties": {
636 "type": { 970 "type": {
637 "description": "The type of the entity mention.", 971 "description": "The type of the entity mention.",
(...skipping 13 matching lines...) Expand all
651 "$ref": "TextSpan", 985 "$ref": "TextSpan",
652 "description": "The mention text." 986 "description": "The mention text."
653 } 987 }
654 }, 988 },
655 "type": "object" 989 "type": "object"
656 }, 990 },
657 "Sentence": { 991 "Sentence": {
658 "description": "Represents a sentence in the input document.", 992 "description": "Represents a sentence in the input document.",
659 "id": "Sentence", 993 "id": "Sentence",
660 "properties": { 994 "properties": {
995 "sentiment": {
996 "$ref": "Sentiment",
997 "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."
998 },
661 "text": { 999 "text": {
662 "$ref": "TextSpan", 1000 "$ref": "TextSpan",
663 "description": "The sentence text." 1001 "description": "The sentence text."
664 },
665 "sentiment": {
666 "$ref": "Sentiment",
667 "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."
668 } 1002 }
669 }, 1003 },
670 "type": "object" 1004 "type": "object"
671 }, 1005 },
672 "Document": { 1006 "Document": {
673 "description": "#################################################### ############ #\n\nRepresents the input to API methods.", 1007 "description": "#################################################### ############ #\n\nRepresents the input to API methods.",
674 "id": "Document", 1008 "id": "Document",
675 "properties": { 1009 "properties": {
676 "gcsContentUri": { 1010 "gcsContentUri": {
677 "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.", 1011 "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.",
(...skipping 17 matching lines...) Expand all
695 "enumDescriptions": [ 1029 "enumDescriptions": [
696 "The content type is not specified.", 1030 "The content type is not specified.",
697 "Plain text", 1031 "Plain text",
698 "HTML" 1032 "HTML"
699 ], 1033 ],
700 "type": "string" 1034 "type": "string"
701 } 1035 }
702 }, 1036 },
703 "type": "object" 1037 "type": "object"
704 }, 1038 },
705 "AnalyzeEntitiesRequest": {
706 "description": "The entity analysis request message.",
707 "id": "AnalyzeEntitiesRequest",
708 "properties": {
709 "encodingType": {
710 "description": "The encoding type used by the API to calcula te offsets.",
711 "enum": [
712 "NONE",
713 "UTF8",
714 "UTF16",
715 "UTF32"
716 ],
717 "enumDescriptions": [
718 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
719 "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.",
720 "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.",
721 "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."
722 ],
723 "type": "string"
724 },
725 "document": {
726 "$ref": "Document",
727 "description": "Input document."
728 }
729 },
730 "type": "object"
731 },
732 "Sentiment": { 1039 "Sentiment": {
733 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.", 1040 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.",
734 "id": "Sentiment", 1041 "id": "Sentiment",
735 "properties": { 1042 "properties": {
1043 "magnitude": {
1044 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).",
1045 "format": "float",
1046 "type": "number"
1047 },
736 "score": { 1048 "score": {
737 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).", 1049 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).",
738 "format": "float", 1050 "format": "float",
739 "type": "number" 1051 "type": "number"
740 }, 1052 },
741 "polarity": { 1053 "polarity": {
742 "description": "DEPRECATED FIELD - This field is being depre cated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.go ogle.com/natural-language/docs for more information.", 1054 "description": "DEPRECATED FIELD - This field is being depre cated in\nfavor of score. Please refer to our documentation at\nhttps://cloud.go ogle.com/natural-language/docs for more information.",
743 "format": "float", 1055 "format": "float",
744 "type": "number" 1056 "type": "number"
745 },
746 "magnitude": {
747 "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 "format": "float",
749 "type": "number"
750 } 1057 }
751 }, 1058 },
752 "type": "object" 1059 "type": "object"
753 }, 1060 },
754 "PartOfSpeech": { 1061 "AnalyzeEntitiesRequest": {
755 "description": "Represents part of speech information for a token.", 1062 "description": "The entity analysis request message.",
756 "id": "PartOfSpeech", 1063 "id": "AnalyzeEntitiesRequest",
757 "properties": {
758 "gender": {
759 "description": "The grammatical gender.",
760 "enum": [
761 "GENDER_UNKNOWN",
762 "FEMININE",
763 "MASCULINE",
764 "NEUTER"
765 ],
766 "enumDescriptions": [
767 "Gender is not applicable in the analyzed language or is not predicted.",
768 "Feminine",
769 "Masculine",
770 "Neuter"
771 ],
772 "type": "string"
773 },
774 "person": {
775 "description": "The grammatical person.",
776 "enum": [
777 "PERSON_UNKNOWN",
778 "FIRST",
779 "SECOND",
780 "THIRD",
781 "REFLEXIVE_PERSON"
782 ],
783 "enumDescriptions": [
784 "Person is not applicable in the analyzed language or is not predicted.",
785 "First",
786 "Second",
787 "Third",
788 "Reflexive"
789 ],
790 "type": "string"
791 },
792 "proper": {
793 "description": "The grammatical properness.",
794 "enum": [
795 "PROPER_UNKNOWN",
796 "PROPER",
797 "NOT_PROPER"
798 ],
799 "enumDescriptions": [
800 "Proper is not applicable in the analyzed language or is not predicted.",
801 "Proper",
802 "Not proper"
803 ],
804 "type": "string"
805 },
806 "case": {
807 "description": "The grammatical case.",
808 "enum": [
809 "CASE_UNKNOWN",
810 "ACCUSATIVE",
811 "ADVERBIAL",
812 "COMPLEMENTIVE",
813 "DATIVE",
814 "GENITIVE",
815 "INSTRUMENTAL",
816 "LOCATIVE",
817 "NOMINATIVE",
818 "OBLIQUE",
819 "PARTITIVE",
820 "PREPOSITIONAL",
821 "REFLEXIVE_CASE",
822 "RELATIVE_CASE",
823 "VOCATIVE"
824 ],
825 "enumDescriptions": [
826 "Case is not applicable in the analyzed language or is n ot predicted.",
827 "Accusative",
828 "Adverbial",
829 "Complementive",
830 "Dative",
831 "Genitive",
832 "Instrumental",
833 "Locative",
834 "Nominative",
835 "Oblique",
836 "Partitive",
837 "Prepositional",
838 "Reflexive",
839 "Relative",
840 "Vocative"
841 ],
842 "type": "string"
843 },
844 "tense": {
845 "description": "The grammatical tense.",
846 "enum": [
847 "TENSE_UNKNOWN",
848 "CONDITIONAL_TENSE",
849 "FUTURE",
850 "PAST",
851 "PRESENT",
852 "IMPERFECT",
853 "PLUPERFECT"
854 ],
855 "enumDescriptions": [
856 "Tense is not applicable in the analyzed language or is not predicted.",
857 "Conditional",
858 "Future",
859 "Past",
860 "Present",
861 "Imperfect",
862 "Pluperfect"
863 ],
864 "type": "string"
865 },
866 "reciprocity": {
867 "description": "The grammatical reciprocity.",
868 "enum": [
869 "RECIPROCITY_UNKNOWN",
870 "RECIPROCAL",
871 "NON_RECIPROCAL"
872 ],
873 "enumDescriptions": [
874 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
875 "Reciprocal",
876 "Non-reciprocal"
877 ],
878 "type": "string"
879 },
880 "form": {
881 "description": "The grammatical form.",
882 "enum": [
883 "FORM_UNKNOWN",
884 "ADNOMIAL",
885 "AUXILIARY",
886 "COMPLEMENTIZER",
887 "FINAL_ENDING",
888 "GERUND",
889 "REALIS",
890 "IRREALIS",
891 "SHORT",
892 "LONG",
893 "ORDER",
894 "SPECIFIC"
895 ],
896 "enumDescriptions": [
897 "Form is not applicable in the analyzed language or is n ot predicted.",
898 "Adnomial",
899 "Auxiliary",
900 "Complementizer",
901 "Final ending",
902 "Gerund",
903 "Realis",
904 "Irrealis",
905 "Short form",
906 "Long form",
907 "Order form",
908 "Specific form"
909 ],
910 "type": "string"
911 },
912 "number": {
913 "description": "The grammatical number.",
914 "enum": [
915 "NUMBER_UNKNOWN",
916 "SINGULAR",
917 "PLURAL",
918 "DUAL"
919 ],
920 "enumDescriptions": [
921 "Number is not applicable in the analyzed language or is not predicted.",
922 "Singular",
923 "Plural",
924 "Dual"
925 ],
926 "type": "string"
927 },
928 "voice": {
929 "description": "The grammatical voice.",
930 "enum": [
931 "VOICE_UNKNOWN",
932 "ACTIVE",
933 "CAUSATIVE",
934 "PASSIVE"
935 ],
936 "enumDescriptions": [
937 "Voice is not applicable in the analyzed language or is not predicted.",
938 "Active",
939 "Causative",
940 "Passive"
941 ],
942 "type": "string"
943 },
944 "aspect": {
945 "description": "The grammatical aspect.",
946 "enum": [
947 "ASPECT_UNKNOWN",
948 "PERFECTIVE",
949 "IMPERFECTIVE",
950 "PROGRESSIVE"
951 ],
952 "enumDescriptions": [
953 "Aspect is not applicable in the analyzed language or is not predicted.",
954 "Perfective",
955 "Imperfective",
956 "Progressive"
957 ],
958 "type": "string"
959 },
960 "mood": {
961 "description": "The grammatical mood.",
962 "enum": [
963 "MOOD_UNKNOWN",
964 "CONDITIONAL_MOOD",
965 "IMPERATIVE",
966 "INDICATIVE",
967 "INTERROGATIVE",
968 "JUSSIVE",
969 "SUBJUNCTIVE"
970 ],
971 "enumDescriptions": [
972 "Mood is not applicable in the analyzed language or is n ot predicted.",
973 "Conditional",
974 "Imperative",
975 "Indicative",
976 "Interrogative",
977 "Jussive",
978 "Subjunctive"
979 ],
980 "type": "string"
981 },
982 "tag": {
983 "description": "The part of speech tag.",
984 "enum": [
985 "UNKNOWN",
986 "ADJ",
987 "ADP",
988 "ADV",
989 "CONJ",
990 "DET",
991 "NOUN",
992 "NUM",
993 "PRON",
994 "PRT",
995 "PUNCT",
996 "VERB",
997 "X",
998 "AFFIX"
999 ],
1000 "enumDescriptions": [
1001 "Unknown",
1002 "Adjective",
1003 "Adposition (preposition and postposition)",
1004 "Adverb",
1005 "Conjunction",
1006 "Determiner",
1007 "Noun (common and proper)",
1008 "Cardinal number",
1009 "Pronoun",
1010 "Particle or other function word",
1011 "Punctuation",
1012 "Verb (all tenses and modes)",
1013 "Other: foreign words, typos, abbreviations",
1014 "Affix"
1015 ],
1016 "type": "string"
1017 }
1018 },
1019 "type": "object"
1020 },
1021 "AnalyzeSyntaxRequest": {
1022 "description": "The syntax analysis request message.",
1023 "id": "AnalyzeSyntaxRequest",
1024 "properties": { 1064 "properties": {
1025 "encodingType": { 1065 "encodingType": {
1026 "description": "The encoding type used by the API to calcula te offsets.", 1066 "description": "The encoding type used by the API to calcula te offsets.",
1027 "enum": [ 1067 "enum": [
1028 "NONE", 1068 "NONE",
1029 "UTF8", 1069 "UTF8",
1030 "UTF16", 1070 "UTF16",
1031 "UTF32" 1071 "UTF32"
1032 ], 1072 ],
1033 "enumDescriptions": [ 1073 "enumDescriptions": [
1034 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.", 1074 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
1035 "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.", 1075 "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.",
1036 "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.", 1076 "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.",
1037 "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." 1077 "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."
1038 ], 1078 ],
1039 "type": "string" 1079 "type": "string"
1040 }, 1080 },
1041 "document": { 1081 "document": {
1042 "$ref": "Document", 1082 "$ref": "Document",
1043 "description": "Input document." 1083 "description": "Input document."
1044 } 1084 }
1045 }, 1085 },
1046 "type": "object" 1086 "type": "object"
1047 },
1048 "AnalyzeSentimentResponse": {
1049 "description": "The sentiment analysis response message.",
1050 "id": "AnalyzeSentimentResponse",
1051 "properties": {
1052 "language": {
1053 "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.",
1054 "type": "string"
1055 },
1056 "sentences": {
1057 "description": "The sentiment for all the sentences in the d ocument.",
1058 "items": {
1059 "$ref": "Sentence"
1060 },
1061 "type": "array"
1062 },
1063 "documentSentiment": {
1064 "$ref": "Sentiment",
1065 "description": "The overall sentiment of the input document. "
1066 }
1067 },
1068 "type": "object"
1069 },
1070 "AnalyzeEntitiesResponse": {
1071 "description": "The entity analysis response message.",
1072 "id": "AnalyzeEntitiesResponse",
1073 "properties": {
1074 "language": {
1075 "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.",
1076 "type": "string"
1077 },
1078 "entities": {
1079 "description": "The recognized entities in the input documen t.",
1080 "items": {
1081 "$ref": "Entity"
1082 },
1083 "type": "array"
1084 }
1085 },
1086 "type": "object"
1087 } 1087 }
1088 }, 1088 },
1089 "servicePath": "", 1089 "servicePath": "",
1090 "title": "Google Cloud Natural Language API", 1090 "title": "Google Cloud Natural Language API",
1091 "version": "v1beta1" 1091 "version": "v1beta1"
1092 } 1092 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/dns__v2beta1.json ('k') | discovery/googleapis_beta/language__v1beta2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698