OLD | NEW |
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": { |
| 29 "description": "OAuth 2.0 token for the current user.", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "bearer_token": { |
| 34 "description": "OAuth bearer token.", |
| 35 "location": "query", |
| 36 "type": "string" |
| 37 }, |
28 "upload_protocol": { | 38 "upload_protocol": { |
29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
30 "location": "query", | 40 "location": "query", |
31 "type": "string" | 41 "type": "string" |
32 }, | 42 }, |
33 "prettyPrint": { | 43 "prettyPrint": { |
34 "default": "true", | 44 "default": "true", |
35 "description": "Returns response with indentations and line breaks."
, | 45 "description": "Returns response with indentations and line breaks."
, |
36 "location": "query", | 46 "location": "query", |
37 "type": "boolean" | 47 "type": "boolean" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 "proto" | 83 "proto" |
74 ], | 84 ], |
75 "enumDescriptions": [ | 85 "enumDescriptions": [ |
76 "Responses with Content-Type of application/json", | 86 "Responses with Content-Type of application/json", |
77 "Media download with context-dependent Content-Type", | 87 "Media download with context-dependent Content-Type", |
78 "Responses with Content-Type of application/x-protobuf" | 88 "Responses with Content-Type of application/x-protobuf" |
79 ], | 89 ], |
80 "location": "query", | 90 "location": "query", |
81 "type": "string" | 91 "type": "string" |
82 }, | 92 }, |
| 93 "access_token": { |
| 94 "description": "OAuth access token.", |
| 95 "location": "query", |
| 96 "type": "string" |
| 97 }, |
83 "key": { | 98 "key": { |
84 "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.", | 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.", |
85 "location": "query", | 100 "location": "query", |
86 "type": "string" | 101 "type": "string" |
87 }, | 102 }, |
88 "access_token": { | |
89 "description": "OAuth access token.", | |
90 "location": "query", | |
91 "type": "string" | |
92 }, | |
93 "quotaUser": { | 103 "quotaUser": { |
94 "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.", | 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.", |
95 "location": "query", | 105 "location": "query", |
96 "type": "string" | 106 "type": "string" |
97 }, | 107 }, |
98 "pp": { | 108 "pp": { |
99 "default": "true", | 109 "default": "true", |
100 "description": "Pretty-print response.", | 110 "description": "Pretty-print response.", |
101 "location": "query", | 111 "location": "query", |
102 "type": "boolean" | 112 "type": "boolean" |
103 }, | |
104 "oauth_token": { | |
105 "description": "OAuth 2.0 token for the current user.", | |
106 "location": "query", | |
107 "type": "string" | |
108 }, | |
109 "bearer_token": { | |
110 "description": "OAuth bearer token.", | |
111 "location": "query", | |
112 "type": "string" | |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "documents": { | 117 "documents": { |
118 "methods": { | 118 "methods": { |
| 119 "annotateText": { |
| 120 "description": "A convenience method that provides all the f
eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on
e call.", |
| 121 "httpMethod": "POST", |
| 122 "id": "language.documents.annotateText", |
| 123 "parameterOrder": [], |
| 124 "parameters": {}, |
| 125 "path": "v1/documents:annotateText", |
| 126 "request": { |
| 127 "$ref": "AnnotateTextRequest" |
| 128 }, |
| 129 "response": { |
| 130 "$ref": "AnnotateTextResponse" |
| 131 }, |
| 132 "scopes": [ |
| 133 "https://www.googleapis.com/auth/cloud-platform" |
| 134 ] |
| 135 }, |
119 "analyzeEntities": { | 136 "analyzeEntities": { |
120 "description": "Finds named entities (currently finds proper
names) in the text,\nentity types, salience, mentions for each entity, and othe
r properties.", | 137 "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.", |
121 "httpMethod": "POST", | 138 "httpMethod": "POST", |
122 "id": "language.documents.analyzeEntities", | 139 "id": "language.documents.analyzeEntities", |
123 "parameterOrder": [], | 140 "parameterOrder": [], |
124 "parameters": {}, | 141 "parameters": {}, |
125 "path": "v1/documents:analyzeEntities", | 142 "path": "v1/documents:analyzeEntities", |
126 "request": { | 143 "request": { |
127 "$ref": "AnalyzeEntitiesRequest" | 144 "$ref": "AnalyzeEntitiesRequest" |
128 }, | 145 }, |
129 "response": { | 146 "response": { |
130 "$ref": "AnalyzeEntitiesResponse" | 147 "$ref": "AnalyzeEntitiesResponse" |
(...skipping 28 matching lines...) Expand all Loading... |
159 "path": "v1/documents:analyzeSentiment", | 176 "path": "v1/documents:analyzeSentiment", |
160 "request": { | 177 "request": { |
161 "$ref": "AnalyzeSentimentRequest" | 178 "$ref": "AnalyzeSentimentRequest" |
162 }, | 179 }, |
163 "response": { | 180 "response": { |
164 "$ref": "AnalyzeSentimentResponse" | 181 "$ref": "AnalyzeSentimentResponse" |
165 }, | 182 }, |
166 "scopes": [ | 183 "scopes": [ |
167 "https://www.googleapis.com/auth/cloud-platform" | 184 "https://www.googleapis.com/auth/cloud-platform" |
168 ] | 185 ] |
169 }, | |
170 "annotateText": { | |
171 "description": "A convenience method that provides all the f
eatures that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in on
e call.", | |
172 "httpMethod": "POST", | |
173 "id": "language.documents.annotateText", | |
174 "parameterOrder": [], | |
175 "parameters": {}, | |
176 "path": "v1/documents:annotateText", | |
177 "request": { | |
178 "$ref": "AnnotateTextRequest" | |
179 }, | |
180 "response": { | |
181 "$ref": "AnnotateTextResponse" | |
182 }, | |
183 "scopes": [ | |
184 "https://www.googleapis.com/auth/cloud-platform" | |
185 ] | |
186 } | 186 } |
187 } | 187 } |
188 } | 188 } |
189 }, | 189 }, |
190 "revision": "20170301", | 190 "revision": "20170320", |
191 "rootUrl": "https://language.googleapis.com/", | 191 "rootUrl": "https://language.googleapis.com/", |
192 "schemas": { | 192 "schemas": { |
193 "EntityMention": { | |
194 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", | |
195 "id": "EntityMention", | |
196 "properties": { | |
197 "text": { | |
198 "$ref": "TextSpan", | |
199 "description": "The mention text." | |
200 }, | |
201 "type": { | |
202 "description": "The type of the entity mention.", | |
203 "enum": [ | |
204 "TYPE_UNKNOWN", | |
205 "PROPER", | |
206 "COMMON" | |
207 ], | |
208 "enumDescriptions": [ | |
209 "Unknown", | |
210 "Proper name", | |
211 "Common noun (or noun compound)" | |
212 ], | |
213 "type": "string" | |
214 } | |
215 }, | |
216 "type": "object" | |
217 }, | |
218 "Features": { | |
219 "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.", | |
220 "id": "Features", | |
221 "properties": { | |
222 "extractEntities": { | |
223 "description": "Extract entities.", | |
224 "type": "boolean" | |
225 }, | |
226 "extractSyntax": { | |
227 "description": "Extract syntax information.", | |
228 "type": "boolean" | |
229 }, | |
230 "extractDocumentSentiment": { | |
231 "description": "Extract document-level sentiment.", | |
232 "type": "boolean" | |
233 } | |
234 }, | |
235 "type": "object" | |
236 }, | |
237 "Document": { | |
238 "description": "####################################################
############ #\n\nRepresents the input to API methods.", | |
239 "id": "Document", | |
240 "properties": { | |
241 "language": { | |
242 "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.", | |
243 "type": "string" | |
244 }, | |
245 "type": { | |
246 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", | |
247 "enum": [ | |
248 "TYPE_UNSPECIFIED", | |
249 "PLAIN_TEXT", | |
250 "HTML" | |
251 ], | |
252 "enumDescriptions": [ | |
253 "The content type is not specified.", | |
254 "Plain text", | |
255 "HTML" | |
256 ], | |
257 "type": "string" | |
258 }, | |
259 "content": { | |
260 "description": "The content of the input in string format.", | |
261 "type": "string" | |
262 }, | |
263 "gcsContentUri": { | |
264 "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.", | |
265 "type": "string" | |
266 } | |
267 }, | |
268 "type": "object" | |
269 }, | |
270 "Sentence": { | |
271 "description": "Represents a sentence in the input document.", | |
272 "id": "Sentence", | |
273 "properties": { | |
274 "text": { | |
275 "$ref": "TextSpan", | |
276 "description": "The sentence text." | |
277 }, | |
278 "sentiment": { | |
279 "$ref": "Sentiment", | |
280 "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." | |
281 } | |
282 }, | |
283 "type": "object" | |
284 }, | |
285 "AnalyzeEntitiesRequest": { | |
286 "description": "The entity analysis request message.", | |
287 "id": "AnalyzeEntitiesRequest", | |
288 "properties": { | |
289 "encodingType": { | |
290 "description": "The encoding type used by the API to calcula
te offsets.", | |
291 "enum": [ | |
292 "NONE", | |
293 "UTF8", | |
294 "UTF16", | |
295 "UTF32" | |
296 ], | |
297 "enumDescriptions": [ | |
298 "If `EncodingType` is not specified, encoding-dependent
information (such as\n`begin_offset`) will be set at `-1`.", | |
299 "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.", | |
300 "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.", | |
301 "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." | |
302 ], | |
303 "type": "string" | |
304 }, | |
305 "document": { | |
306 "$ref": "Document", | |
307 "description": "Input document." | |
308 } | |
309 }, | |
310 "type": "object" | |
311 }, | |
312 "Sentiment": { | |
313 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", | |
314 "id": "Sentiment", | |
315 "properties": { | |
316 "score": { | |
317 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", | |
318 "format": "float", | |
319 "type": "number" | |
320 }, | |
321 "magnitude": { | |
322 "description": "A non-negative number in the [0, +inf) range
, which represents\nthe absolute magnitude of sentiment regardless of score (pos
itive or\nnegative).", | |
323 "format": "float", | |
324 "type": "number" | |
325 } | |
326 }, | |
327 "type": "object" | |
328 }, | |
329 "PartOfSpeech": { | 193 "PartOfSpeech": { |
330 "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", | 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", |
331 "id": "PartOfSpeech", | 195 "id": "PartOfSpeech", |
332 "properties": { | 196 "properties": { |
333 "form": { | |
334 "description": "The grammatical form.", | |
335 "enum": [ | |
336 "FORM_UNKNOWN", | |
337 "ADNOMIAL", | |
338 "AUXILIARY", | |
339 "COMPLEMENTIZER", | |
340 "FINAL_ENDING", | |
341 "GERUND", | |
342 "REALIS", | |
343 "IRREALIS", | |
344 "SHORT", | |
345 "LONG", | |
346 "ORDER", | |
347 "SPECIFIC" | |
348 ], | |
349 "enumDescriptions": [ | |
350 "Form is not applicable in the analyzed language or is n
ot predicted.", | |
351 "Adnomial", | |
352 "Auxiliary", | |
353 "Complementizer", | |
354 "Final ending", | |
355 "Gerund", | |
356 "Realis", | |
357 "Irrealis", | |
358 "Short form", | |
359 "Long form", | |
360 "Order form", | |
361 "Specific form" | |
362 ], | |
363 "type": "string" | |
364 }, | |
365 "number": { | |
366 "description": "The grammatical number.", | |
367 "enum": [ | |
368 "NUMBER_UNKNOWN", | |
369 "SINGULAR", | |
370 "PLURAL", | |
371 "DUAL" | |
372 ], | |
373 "enumDescriptions": [ | |
374 "Number is not applicable in the analyzed language or is
not predicted.", | |
375 "Singular", | |
376 "Plural", | |
377 "Dual" | |
378 ], | |
379 "type": "string" | |
380 }, | |
381 "voice": { | |
382 "description": "The grammatical voice.", | |
383 "enum": [ | |
384 "VOICE_UNKNOWN", | |
385 "ACTIVE", | |
386 "CAUSATIVE", | |
387 "PASSIVE" | |
388 ], | |
389 "enumDescriptions": [ | |
390 "Voice is not applicable in the analyzed language or is
not predicted.", | |
391 "Active", | |
392 "Causative", | |
393 "Passive" | |
394 ], | |
395 "type": "string" | |
396 }, | |
397 "aspect": { | |
398 "description": "The grammatical aspect.", | |
399 "enum": [ | |
400 "ASPECT_UNKNOWN", | |
401 "PERFECTIVE", | |
402 "IMPERFECTIVE", | |
403 "PROGRESSIVE" | |
404 ], | |
405 "enumDescriptions": [ | |
406 "Aspect is not applicable in the analyzed language or is
not predicted.", | |
407 "Perfective", | |
408 "Imperfective", | |
409 "Progressive" | |
410 ], | |
411 "type": "string" | |
412 }, | |
413 "mood": { | 197 "mood": { |
414 "description": "The grammatical mood.", | 198 "description": "The grammatical mood.", |
415 "enum": [ | 199 "enum": [ |
416 "MOOD_UNKNOWN", | 200 "MOOD_UNKNOWN", |
417 "CONDITIONAL_MOOD", | 201 "CONDITIONAL_MOOD", |
418 "IMPERATIVE", | 202 "IMPERATIVE", |
419 "INDICATIVE", | 203 "INDICATIVE", |
420 "INTERROGATIVE", | 204 "INTERROGATIVE", |
421 "JUSSIVE", | 205 "JUSSIVE", |
422 "SUBJUNCTIVE" | 206 "SUBJUNCTIVE" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 "RECIPROCITY_UNKNOWN", | 366 "RECIPROCITY_UNKNOWN", |
583 "RECIPROCAL", | 367 "RECIPROCAL", |
584 "NON_RECIPROCAL" | 368 "NON_RECIPROCAL" |
585 ], | 369 ], |
586 "enumDescriptions": [ | 370 "enumDescriptions": [ |
587 "Reciprocity is not applicable in the analyzed language
or is not\npredicted.", | 371 "Reciprocity is not applicable in the analyzed language
or is not\npredicted.", |
588 "Reciprocal", | 372 "Reciprocal", |
589 "Non-reciprocal" | 373 "Non-reciprocal" |
590 ], | 374 ], |
591 "type": "string" | 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" |
592 } | 456 } |
593 }, | 457 }, |
594 "type": "object" | 458 "type": "object" |
595 }, | 459 }, |
596 "AnalyzeSyntaxRequest": { | 460 "AnalyzeSyntaxRequest": { |
597 "description": "The syntax analysis request message.", | 461 "description": "The syntax analysis request message.", |
598 "id": "AnalyzeSyntaxRequest", | 462 "id": "AnalyzeSyntaxRequest", |
599 "properties": { | 463 "properties": { |
600 "encodingType": { | 464 "encodingType": { |
601 "description": "The encoding type used by the API to calcula
te offsets.", | 465 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 }, | 503 }, |
640 "type": "array" | 504 "type": "array" |
641 } | 505 } |
642 }, | 506 }, |
643 "type": "object" | 507 "type": "object" |
644 }, | 508 }, |
645 "AnalyzeEntitiesResponse": { | 509 "AnalyzeEntitiesResponse": { |
646 "description": "The entity analysis response message.", | 510 "description": "The entity analysis response message.", |
647 "id": "AnalyzeEntitiesResponse", | 511 "id": "AnalyzeEntitiesResponse", |
648 "properties": { | 512 "properties": { |
649 "language": { | |
650 "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.", | |
651 "type": "string" | |
652 }, | |
653 "entities": { | 513 "entities": { |
654 "description": "The recognized entities in the input documen
t.", | 514 "description": "The recognized entities in the input documen
t.", |
655 "items": { | 515 "items": { |
656 "$ref": "Entity" | 516 "$ref": "Entity" |
657 }, | 517 }, |
658 "type": "array" | 518 "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" |
659 } | 523 } |
660 }, | 524 }, |
661 "type": "object" | 525 "type": "object" |
662 }, | 526 }, |
663 "AnalyzeSyntaxResponse": { | 527 "AnalyzeSyntaxResponse": { |
664 "description": "The syntax analysis response message.", | 528 "description": "The syntax analysis response message.", |
665 "id": "AnalyzeSyntaxResponse", | 529 "id": "AnalyzeSyntaxResponse", |
666 "properties": { | 530 "properties": { |
667 "language": { | 531 "language": { |
668 "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.", | 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.", |
(...skipping 13 matching lines...) Expand all Loading... |
682 }, | 546 }, |
683 "type": "array" | 547 "type": "array" |
684 } | 548 } |
685 }, | 549 }, |
686 "type": "object" | 550 "type": "object" |
687 }, | 551 }, |
688 "Entity": { | 552 "Entity": { |
689 "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.", | 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.", |
690 "id": "Entity", | 554 "id": "Entity", |
691 "properties": { | 555 "properties": { |
692 "name": { | |
693 "description": "The representative name for the entity.", | |
694 "type": "string" | |
695 }, | |
696 "type": { | 556 "type": { |
697 "description": "The entity type.", | 557 "description": "The entity type.", |
698 "enum": [ | 558 "enum": [ |
699 "UNKNOWN", | 559 "UNKNOWN", |
700 "PERSON", | 560 "PERSON", |
701 "LOCATION", | 561 "LOCATION", |
702 "ORGANIZATION", | 562 "ORGANIZATION", |
703 "EVENT", | 563 "EVENT", |
704 "WORK_OF_ART", | 564 "WORK_OF_ART", |
705 "CONSUMER_GOOD", | 565 "CONSUMER_GOOD", |
(...skipping 22 matching lines...) Expand all Loading... |
728 "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.", | 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.", |
729 "format": "float", | 589 "format": "float", |
730 "type": "number" | 590 "type": "number" |
731 }, | 591 }, |
732 "mentions": { | 592 "mentions": { |
733 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", | 593 "description": "The mentions of this entity in the input doc
ument. The API currently\nsupports proper noun mentions.", |
734 "items": { | 594 "items": { |
735 "$ref": "EntityMention" | 595 "$ref": "EntityMention" |
736 }, | 596 }, |
737 "type": "array" | 597 "type": "array" |
| 598 }, |
| 599 "name": { |
| 600 "description": "The representative name for the entity.", |
| 601 "type": "string" |
738 } | 602 } |
739 }, | 603 }, |
740 "type": "object" | 604 "type": "object" |
741 }, | 605 }, |
742 "AnnotateTextRequest": { | 606 "AnnotateTextRequest": { |
743 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", | 607 "description": "The request message for the text annotation API, whi
ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one
call.", |
744 "id": "AnnotateTextRequest", | 608 "id": "AnnotateTextRequest", |
745 "properties": { | 609 "properties": { |
746 "encodingType": { | 610 "encodingType": { |
747 "description": "The encoding type used by the API to calcula
te offsets.", | 611 "description": "The encoding type used by the API to calcula
te offsets.", |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 "type": "string" | 864 "type": "string" |
1001 }, | 865 }, |
1002 "headTokenIndex": { | 866 "headTokenIndex": { |
1003 "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.", | 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.", |
1004 "format": "int32", | 868 "format": "int32", |
1005 "type": "integer" | 869 "type": "integer" |
1006 } | 870 } |
1007 }, | 871 }, |
1008 "type": "object" | 872 "type": "object" |
1009 }, | 873 }, |
1010 "TextSpan": { | |
1011 "description": "Represents an output piece of text.", | |
1012 "id": "TextSpan", | |
1013 "properties": { | |
1014 "beginOffset": { | |
1015 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", | |
1016 "format": "int32", | |
1017 "type": "integer" | |
1018 }, | |
1019 "content": { | |
1020 "description": "The content of the output text.", | |
1021 "type": "string" | |
1022 } | |
1023 }, | |
1024 "type": "object" | |
1025 }, | |
1026 "Token": { | 874 "Token": { |
1027 "description": "Represents the smallest syntactic building block of
the text.", | 875 "description": "Represents the smallest syntactic building block of
the text.", |
1028 "id": "Token", | 876 "id": "Token", |
1029 "properties": { | 877 "properties": { |
| 878 "partOfSpeech": { |
| 879 "$ref": "PartOfSpeech", |
| 880 "description": "Parts of speech tag for this token." |
| 881 }, |
1030 "text": { | 882 "text": { |
1031 "$ref": "TextSpan", | 883 "$ref": "TextSpan", |
1032 "description": "The token text." | 884 "description": "The token text." |
1033 }, | 885 }, |
1034 "dependencyEdge": { | 886 "dependencyEdge": { |
1035 "$ref": "DependencyEdge", | 887 "$ref": "DependencyEdge", |
1036 "description": "Dependency tree parse for this token." | 888 "description": "Dependency tree parse for this token." |
1037 }, | 889 }, |
1038 "lemma": { | 890 "lemma": { |
1039 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", | 891 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_
%28morphology%29) of the token.", |
1040 "type": "string" | 892 "type": "string" |
1041 }, | |
1042 "partOfSpeech": { | |
1043 "$ref": "PartOfSpeech", | |
1044 "description": "Parts of speech tag for this token." | |
1045 } | 893 } |
1046 }, | 894 }, |
1047 "type": "object" | 895 "type": "object" |
| 896 }, |
| 897 "TextSpan": { |
| 898 "description": "Represents an output piece of text.", |
| 899 "id": "TextSpan", |
| 900 "properties": { |
| 901 "beginOffset": { |
| 902 "description": "The API calculates the beginning offset of t
he content in the original\ndocument according to the EncodingType specified in
the API request.", |
| 903 "format": "int32", |
| 904 "type": "integer" |
| 905 }, |
| 906 "content": { |
| 907 "description": "The content of the output text.", |
| 908 "type": "string" |
| 909 } |
| 910 }, |
| 911 "type": "object" |
1048 }, | 912 }, |
1049 "Status": { | 913 "Status": { |
1050 "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.", | 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.", |
1051 "id": "Status", | 915 "id": "Status", |
1052 "properties": { | 916 "properties": { |
1053 "code": { | 917 "code": { |
1054 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 918 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
1055 "format": "int32", | 919 "format": "int32", |
1056 "type": "integer" | 920 "type": "integer" |
1057 }, | 921 }, |
1058 "message": { | 922 "message": { |
1059 "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.", | 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.", |
1060 "type": "string" | 924 "type": "string" |
1061 }, | 925 }, |
1062 "details": { | 926 "details": { |
1063 "description": "A list of messages that carry the error deta
ils. There will be a\ncommon set of message types for APIs to use.", | 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.", |
1064 "items": { | 928 "items": { |
1065 "additionalProperties": { | 929 "additionalProperties": { |
1066 "description": "Properties of the object. Contains f
ield @type with type URL.", | 930 "description": "Properties of the object. Contains f
ield @type with type URL.", |
1067 "type": "any" | 931 "type": "any" |
1068 }, | 932 }, |
1069 "type": "object" | 933 "type": "object" |
1070 }, | 934 }, |
1071 "type": "array" | 935 "type": "array" |
1072 } | 936 } |
1073 }, | 937 }, |
1074 "type": "object" | 938 "type": "object" |
| 939 }, |
| 940 "EntityMention": { |
| 941 "description": "Represents a mention for an entity in the text. Curr
ently, proper noun\nmentions are supported.", |
| 942 "id": "EntityMention", |
| 943 "properties": { |
| 944 "text": { |
| 945 "$ref": "TextSpan", |
| 946 "description": "The mention text." |
| 947 }, |
| 948 "type": { |
| 949 "description": "The type of the entity mention.", |
| 950 "enum": [ |
| 951 "TYPE_UNKNOWN", |
| 952 "PROPER", |
| 953 "COMMON" |
| 954 ], |
| 955 "enumDescriptions": [ |
| 956 "Unknown", |
| 957 "Proper name", |
| 958 "Common noun (or noun compound)" |
| 959 ], |
| 960 "type": "string" |
| 961 } |
| 962 }, |
| 963 "type": "object" |
| 964 }, |
| 965 "Features": { |
| 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.", |
| 967 "id": "Features", |
| 968 "properties": { |
| 969 "extractSyntax": { |
| 970 "description": "Extract syntax information.", |
| 971 "type": "boolean" |
| 972 }, |
| 973 "extractDocumentSentiment": { |
| 974 "description": "Extract document-level sentiment.", |
| 975 "type": "boolean" |
| 976 }, |
| 977 "extractEntities": { |
| 978 "description": "Extract entities.", |
| 979 "type": "boolean" |
| 980 } |
| 981 }, |
| 982 "type": "object" |
| 983 }, |
| 984 "Document": { |
| 985 "description": "####################################################
############ #\n\nRepresents the input to API methods.", |
| 986 "id": "Document", |
| 987 "properties": { |
| 988 "type": { |
| 989 "description": "Required. If the type is not set or is `TYPE
_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", |
| 990 "enum": [ |
| 991 "TYPE_UNSPECIFIED", |
| 992 "PLAIN_TEXT", |
| 993 "HTML" |
| 994 ], |
| 995 "enumDescriptions": [ |
| 996 "The content type is not specified.", |
| 997 "Plain text", |
| 998 "HTML" |
| 999 ], |
| 1000 "type": "string" |
| 1001 }, |
| 1002 "content": { |
| 1003 "description": "The content of the input in string format.", |
| 1004 "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 } |
| 1014 }, |
| 1015 "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 }, |
| 1032 "Sentiment": { |
| 1033 "description": "Represents the feeling associated with the entire te
xt or entities in\nthe text.", |
| 1034 "id": "Sentiment", |
| 1035 "properties": { |
| 1036 "score": { |
| 1037 "description": "Sentiment score between -1.0 (negative senti
ment) and 1.0\n(positive sentiment).", |
| 1038 "format": "float", |
| 1039 "type": "number" |
| 1040 }, |
| 1041 "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).", |
| 1043 "format": "float", |
| 1044 "type": "number" |
| 1045 } |
| 1046 }, |
| 1047 "type": "object" |
| 1048 }, |
| 1049 "AnalyzeEntitiesRequest": { |
| 1050 "description": "The entity analysis request message.", |
| 1051 "id": "AnalyzeEntitiesRequest", |
| 1052 "properties": { |
| 1053 "encodingType": { |
| 1054 "description": "The encoding type used by the API to calcula
te offsets.", |
| 1055 "enum": [ |
| 1056 "NONE", |
| 1057 "UTF8", |
| 1058 "UTF16", |
| 1059 "UTF32" |
| 1060 ], |
| 1061 "enumDescriptions": [ |
| 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.", |
| 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." |
| 1066 ], |
| 1067 "type": "string" |
| 1068 }, |
| 1069 "document": { |
| 1070 "$ref": "Document", |
| 1071 "description": "Input document." |
| 1072 } |
| 1073 }, |
| 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 } |
OLD | NEW |