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

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

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/kgsearch__v1.json ('k') | discovery/googleapis/logging__v2.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://language.googleapis.com/", 12 "baseUrl": "https://language.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "canonicalName": "Cloud Natural Language", 14 "canonicalName": "Cloud Natural Language",
15 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, and text annotations.", 15 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, 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 "fields": {
29 "description": "Selector specifying which fields to include in a par tial response.",
30 "location": "query",
31 "type": "string"
32 },
33 "uploadType": {
34 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
35 "location": "query",
36 "type": "string"
37 },
38 "$.xgafv": {
39 "description": "V1 error format.",
40 "enum": [
41 "1",
42 "2"
43 ],
44 "enumDescriptions": [
45 "v1 error format",
46 "v2 error format"
47 ],
48 "location": "query",
49 "type": "string"
50 },
51 "callback": {
52 "description": "JSONP",
53 "location": "query",
54 "type": "string"
55 },
28 "alt": { 56 "alt": {
29 "default": "json", 57 "default": "json",
30 "description": "Data format for response.", 58 "description": "Data format for response.",
31 "enum": [ 59 "enum": [
32 "json", 60 "json",
33 "media", 61 "media",
34 "proto" 62 "proto"
35 ], 63 ],
36 "enumDescriptions": [ 64 "enumDescriptions": [
37 "Responses with Content-Type of application/json", 65 "Responses with Content-Type of application/json",
38 "Media download with context-dependent Content-Type", 66 "Media download with context-dependent Content-Type",
39 "Responses with Content-Type of application/x-protobuf" 67 "Responses with Content-Type of application/x-protobuf"
40 ], 68 ],
41 "location": "query", 69 "location": "query",
42 "type": "string" 70 "type": "string"
43 }, 71 },
72 "access_token": {
73 "description": "OAuth access token.",
74 "location": "query",
75 "type": "string"
76 },
44 "key": { 77 "key": {
45 "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.", 78 "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.",
46 "location": "query", 79 "location": "query",
47 "type": "string" 80 "type": "string"
48 }, 81 },
49 "access_token": {
50 "description": "OAuth access token.",
51 "location": "query",
52 "type": "string"
53 },
54 "quotaUser": { 82 "quotaUser": {
55 "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.", 83 "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.",
56 "location": "query", 84 "location": "query",
57 "type": "string" 85 "type": "string"
58 }, 86 },
59 "pp": { 87 "pp": {
60 "default": "true", 88 "default": "true",
61 "description": "Pretty-print response.", 89 "description": "Pretty-print response.",
62 "location": "query", 90 "location": "query",
63 "type": "boolean" 91 "type": "boolean"
64 }, 92 },
93 "oauth_token": {
94 "description": "OAuth 2.0 token for the current user.",
95 "location": "query",
96 "type": "string"
97 },
65 "bearer_token": { 98 "bearer_token": {
66 "description": "OAuth bearer token.", 99 "description": "OAuth bearer token.",
67 "location": "query", 100 "location": "query",
68 "type": "string" 101 "type": "string"
69 }, 102 },
70 "oauth_token": {
71 "description": "OAuth 2.0 token for the current user.",
72 "location": "query",
73 "type": "string"
74 },
75 "upload_protocol": { 103 "upload_protocol": {
76 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 104 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
77 "location": "query", 105 "location": "query",
78 "type": "string" 106 "type": "string"
79 }, 107 },
80 "prettyPrint": { 108 "prettyPrint": {
81 "default": "true", 109 "default": "true",
82 "description": "Returns response with indentations and line breaks." , 110 "description": "Returns response with indentations and line breaks." ,
83 "location": "query", 111 "location": "query",
84 "type": "boolean" 112 "type": "boolean"
85 },
86 "uploadType": {
87 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
88 "location": "query",
89 "type": "string"
90 },
91 "fields": {
92 "description": "Selector specifying which fields to include in a par tial response.",
93 "location": "query",
94 "type": "string"
95 },
96 "callback": {
97 "description": "JSONP",
98 "location": "query",
99 "type": "string"
100 },
101 "$.xgafv": {
102 "description": "V1 error format.",
103 "enum": [
104 "1",
105 "2"
106 ],
107 "enumDescriptions": [
108 "v1 error format",
109 "v2 error format"
110 ],
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 "analyzeSyntax": {
120 "description": "Analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependenc y trees, and other\nproperties.",
121 "httpMethod": "POST",
122 "id": "language.documents.analyzeSyntax",
123 "parameterOrder": [],
124 "parameters": {},
125 "path": "v1/documents:analyzeSyntax",
126 "request": {
127 "$ref": "AnalyzeSyntaxRequest"
128 },
129 "response": {
130 "$ref": "AnalyzeSyntaxResponse"
131 },
132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform"
134 ]
135 },
119 "analyzeSentiment": { 136 "analyzeSentiment": {
120 "description": "Analyzes the sentiment of the provided text. ", 137 "description": "Analyzes the sentiment of the provided text. ",
121 "httpMethod": "POST", 138 "httpMethod": "POST",
122 "id": "language.documents.analyzeSentiment", 139 "id": "language.documents.analyzeSentiment",
123 "parameterOrder": [], 140 "parameterOrder": [],
124 "parameters": {}, 141 "parameters": {},
125 "path": "v1/documents:analyzeSentiment", 142 "path": "v1/documents:analyzeSentiment",
126 "request": { 143 "request": {
127 "$ref": "AnalyzeSentimentRequest" 144 "$ref": "AnalyzeSentimentRequest"
128 }, 145 },
(...skipping 30 matching lines...) Expand all
159 "path": "v1/documents:analyzeEntities", 176 "path": "v1/documents:analyzeEntities",
160 "request": { 177 "request": {
161 "$ref": "AnalyzeEntitiesRequest" 178 "$ref": "AnalyzeEntitiesRequest"
162 }, 179 },
163 "response": { 180 "response": {
164 "$ref": "AnalyzeEntitiesResponse" 181 "$ref": "AnalyzeEntitiesResponse"
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 "analyzeSyntax": {
171 "description": "Analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependenc y trees, and other\nproperties.",
172 "httpMethod": "POST",
173 "id": "language.documents.analyzeSyntax",
174 "parameterOrder": [],
175 "parameters": {},
176 "path": "v1/documents:analyzeSyntax",
177 "request": {
178 "$ref": "AnalyzeSyntaxRequest"
179 },
180 "response": {
181 "$ref": "AnalyzeSyntaxResponse"
182 },
183 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform"
185 ]
186 } 186 }
187 } 187 }
188 } 188 }
189 }, 189 },
190 "revision": "20170601", 190 "revision": "20170619",
191 "rootUrl": "https://language.googleapis.com/", 191 "rootUrl": "https://language.googleapis.com/",
192 "schemas": { 192 "schemas": {
193 "Features": { 193 "Features": {
194 "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.", 194 "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.",
195 "id": "Features", 195 "id": "Features",
196 "properties": { 196 "properties": {
197 "extractEntities": {
198 "description": "Extract entities.",
199 "type": "boolean"
200 },
197 "extractSyntax": { 201 "extractSyntax": {
198 "description": "Extract syntax information.", 202 "description": "Extract syntax information.",
199 "type": "boolean" 203 "type": "boolean"
200 }, 204 },
201 "extractDocumentSentiment": { 205 "extractDocumentSentiment": {
202 "description": "Extract document-level sentiment.", 206 "description": "Extract document-level sentiment.",
203 "type": "boolean" 207 "type": "boolean"
204 },
205 "extractEntities": {
206 "description": "Extract entities.",
207 "type": "boolean"
208 } 208 }
209 }, 209 },
210 "type": "object" 210 "type": "object"
211 }, 211 },
212 "EntityMention": { 212 "EntityMention": {
213 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.", 213 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.",
214 "id": "EntityMention", 214 "id": "EntityMention",
215 "properties": { 215 "properties": {
216 "text": { 216 "text": {
217 "$ref": "TextSpan", 217 "$ref": "TextSpan",
218 "description": "The mention text." 218 "description": "The mention text."
219 }, 219 },
220 "type": { 220 "type": {
221 "description": "The type of the entity mention.", 221 "description": "The type of the entity mention.",
222 "enum": [ 222 "enum": [
223 "TYPE_UNKNOWN", 223 "TYPE_UNKNOWN",
224 "PROPER", 224 "PROPER",
225 "COMMON" 225 "COMMON"
226 ], 226 ],
227 "enumDescriptions": [ 227 "enumDescriptions": [
228 "Unknown", 228 "Unknown",
229 "Proper name", 229 "Proper name",
230 "Common noun (or noun compound)" 230 "Common noun (or noun compound)"
231 ], 231 ],
232 "type": "string" 232 "type": "string"
233 } 233 }
234 }, 234 },
235 "type": "object" 235 "type": "object"
236 }, 236 },
237 "Sentence": {
238 "description": "Represents a sentence in the input document.",
239 "id": "Sentence",
240 "properties": {
241 "text": {
242 "$ref": "TextSpan",
243 "description": "The sentence text."
244 },
245 "sentiment": {
246 "$ref": "Sentiment",
247 "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."
248 }
249 },
250 "type": "object"
251 },
237 "Document": { 252 "Document": {
238 "description": "#################################################### ############ #\n\nRepresents the input to API methods.", 253 "description": "#################################################### ############ #\n\nRepresents the input to API methods.",
239 "id": "Document", 254 "id": "Document",
240 "properties": { 255 "properties": {
241 "gcsContentUri": {
242 "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.",
243 "type": "string"
244 },
245 "language": { 256 "language": {
246 "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[Language Support](/natural-language/docs/languages)\nlists currently supported languages for each API method.\nIf the language (either spe cified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.", 257 "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[Language Support](/natural-language/docs/languages)\nlists currently supported languages for each API method.\nIf the language (either spe cified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
247 "type": "string" 258 "type": "string"
248 }, 259 },
249 "type": { 260 "type": {
250 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", 261 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
251 "enum": [ 262 "enum": [
252 "TYPE_UNSPECIFIED", 263 "TYPE_UNSPECIFIED",
253 "PLAIN_TEXT", 264 "PLAIN_TEXT",
254 "HTML" 265 "HTML"
255 ], 266 ],
256 "enumDescriptions": [ 267 "enumDescriptions": [
257 "The content type is not specified.", 268 "The content type is not specified.",
258 "Plain text", 269 "Plain text",
259 "HTML" 270 "HTML"
260 ], 271 ],
261 "type": "string" 272 "type": "string"
262 }, 273 },
263 "content": { 274 "content": {
264 "description": "The content of the input in string format.", 275 "description": "The content of the input in string format.",
265 "type": "string" 276 "type": "string"
277 },
278 "gcsContentUri": {
279 "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.",
280 "type": "string"
266 } 281 }
267 }, 282 },
268 "type": "object" 283 "type": "object"
269 }, 284 },
270 "Sentence": { 285 "AnalyzeEntitiesRequest": {
271 "description": "Represents a sentence in the input document.", 286 "description": "The entity analysis request message.",
272 "id": "Sentence", 287 "id": "AnalyzeEntitiesRequest",
273 "properties": { 288 "properties": {
274 "text": { 289 "document": {
275 "$ref": "TextSpan", 290 "$ref": "Document",
276 "description": "The sentence text." 291 "description": "Input document."
277 }, 292 },
278 "sentiment": { 293 "encodingType": {
279 "$ref": "Sentiment", 294 "description": "The encoding type used by the API to calcula te offsets.",
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." 295 "enum": [
296 "NONE",
297 "UTF8",
298 "UTF16",
299 "UTF32"
300 ],
301 "enumDescriptions": [
302 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
303 "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.",
304 "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.",
305 "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."
306 ],
307 "type": "string"
281 } 308 }
282 }, 309 },
283 "type": "object" 310 "type": "object"
284 }, 311 },
285 "Sentiment": { 312 "Sentiment": {
286 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.", 313 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.",
287 "id": "Sentiment", 314 "id": "Sentiment",
288 "properties": { 315 "properties": {
289 "score": { 316 "score": {
290 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).", 317 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).",
291 "format": "float", 318 "format": "float",
292 "type": "number" 319 "type": "number"
293 }, 320 },
294 "magnitude": { 321 "magnitude": {
295 "description": "A non-negative number in the [0, +inf) range , which represents\nthe absolute magnitude of sentiment regardless of score (pos itive or\nnegative).", 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).",
296 "format": "float", 323 "format": "float",
297 "type": "number" 324 "type": "number"
298 } 325 }
299 }, 326 },
300 "type": "object" 327 "type": "object"
301 }, 328 },
302 "AnalyzeEntitiesRequest": {
303 "description": "The entity analysis request message.",
304 "id": "AnalyzeEntitiesRequest",
305 "properties": {
306 "encodingType": {
307 "description": "The encoding type used by the API to calcula te offsets.",
308 "enum": [
309 "NONE",
310 "UTF8",
311 "UTF16",
312 "UTF32"
313 ],
314 "enumDescriptions": [
315 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
316 "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.",
317 "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.",
318 "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."
319 ],
320 "type": "string"
321 },
322 "document": {
323 "$ref": "Document",
324 "description": "Input document."
325 }
326 },
327 "type": "object"
328 },
329 "PartOfSpeech": { 329 "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", 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",
331 "id": "PartOfSpeech", 331 "id": "PartOfSpeech",
332 "properties": { 332 "properties": {
333 "reciprocity": {
334 "description": "The grammatical reciprocity.",
335 "enum": [
336 "RECIPROCITY_UNKNOWN",
337 "RECIPROCAL",
338 "NON_RECIPROCAL"
339 ],
340 "enumDescriptions": [
341 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
342 "Reciprocal",
343 "Non-reciprocal"
344 ],
345 "type": "string"
346 },
333 "form": { 347 "form": {
334 "description": "The grammatical form.", 348 "description": "The grammatical form.",
335 "enum": [ 349 "enum": [
336 "FORM_UNKNOWN", 350 "FORM_UNKNOWN",
337 "ADNOMIAL", 351 "ADNOMIAL",
338 "AUXILIARY", 352 "AUXILIARY",
339 "COMPLEMENTIZER", 353 "COMPLEMENTIZER",
340 "FINAL_ENDING", 354 "FINAL_ENDING",
341 "GERUND", 355 "GERUND",
342 "REALIS", 356 "REALIS",
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 "enumDescriptions": [ 582 "enumDescriptions": [
569 "Tense is not applicable in the analyzed language or is not predicted.", 583 "Tense is not applicable in the analyzed language or is not predicted.",
570 "Conditional", 584 "Conditional",
571 "Future", 585 "Future",
572 "Past", 586 "Past",
573 "Present", 587 "Present",
574 "Imperfect", 588 "Imperfect",
575 "Pluperfect" 589 "Pluperfect"
576 ], 590 ],
577 "type": "string" 591 "type": "string"
578 },
579 "reciprocity": {
580 "description": "The grammatical reciprocity.",
581 "enum": [
582 "RECIPROCITY_UNKNOWN",
583 "RECIPROCAL",
584 "NON_RECIPROCAL"
585 ],
586 "enumDescriptions": [
587 "Reciprocity is not applicable in the analyzed language or is not\npredicted.",
588 "Reciprocal",
589 "Non-reciprocal"
590 ],
591 "type": "string"
592 } 592 }
593 }, 593 },
594 "type": "object" 594 "type": "object"
595 }, 595 },
596 "AnalyzeSyntaxRequest": { 596 "AnalyzeSyntaxRequest": {
597 "description": "The syntax analysis request message.", 597 "description": "The syntax analysis request message.",
598 "id": "AnalyzeSyntaxRequest", 598 "id": "AnalyzeSyntaxRequest",
599 "properties": { 599 "properties": {
600 "encodingType": { 600 "encodingType": {
601 "description": "The encoding type used by the API to calcula te offsets.", 601 "description": "The encoding type used by the API to calcula te offsets.",
(...skipping 15 matching lines...) Expand all
617 "$ref": "Document", 617 "$ref": "Document",
618 "description": "Input document." 618 "description": "Input document."
619 } 619 }
620 }, 620 },
621 "type": "object" 621 "type": "object"
622 }, 622 },
623 "AnalyzeSentimentResponse": { 623 "AnalyzeSentimentResponse": {
624 "description": "The sentiment analysis response message.", 624 "description": "The sentiment analysis response message.",
625 "id": "AnalyzeSentimentResponse", 625 "id": "AnalyzeSentimentResponse",
626 "properties": { 626 "properties": {
627 "language": {
628 "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.",
629 "type": "string"
630 },
631 "sentences": { 627 "sentences": {
632 "description": "The sentiment for all the sentences in the d ocument.", 628 "description": "The sentiment for all the sentences in the d ocument.",
633 "items": { 629 "items": {
634 "$ref": "Sentence" 630 "$ref": "Sentence"
635 }, 631 },
636 "type": "array" 632 "type": "array"
637 }, 633 },
638 "documentSentiment": { 634 "documentSentiment": {
639 "$ref": "Sentiment", 635 "$ref": "Sentiment",
640 "description": "The overall sentiment of the input document. " 636 "description": "The overall sentiment of the input document. "
637 },
638 "language": {
639 "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.",
640 "type": "string"
641 } 641 }
642 }, 642 },
643 "type": "object" 643 "type": "object"
644 }, 644 },
645 "AnalyzeEntitiesResponse": { 645 "AnalyzeEntitiesResponse": {
646 "description": "The entity analysis response message.", 646 "description": "The entity analysis response message.",
647 "id": "AnalyzeEntitiesResponse", 647 "id": "AnalyzeEntitiesResponse",
648 "properties": { 648 "properties": {
649 "entities": { 649 "entities": {
650 "description": "The recognized entities in the input documen t.", 650 "description": "The recognized entities in the input documen t.",
651 "items": { 651 "items": {
652 "$ref": "Entity" 652 "$ref": "Entity"
653 }, 653 },
654 "type": "array" 654 "type": "array"
655 }, 655 },
656 "language": { 656 "language": {
657 "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.", 657 "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.",
658 "type": "string" 658 "type": "string"
659 } 659 }
660 }, 660 },
661 "type": "object" 661 "type": "object"
662 }, 662 },
663 "AnalyzeSyntaxResponse": {
664 "description": "The syntax analysis response message.",
665 "id": "AnalyzeSyntaxResponse",
666 "properties": {
667 "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.",
669 "type": "string"
670 },
671 "sentences": {
672 "description": "Sentences in the input document.",
673 "items": {
674 "$ref": "Sentence"
675 },
676 "type": "array"
677 },
678 "tokens": {
679 "description": "Tokens, along with their syntactic informati on, in the input document.",
680 "items": {
681 "$ref": "Token"
682 },
683 "type": "array"
684 }
685 },
686 "type": "object"
687 },
688 "Entity": { 663 "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.", 664 "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", 665 "id": "Entity",
691 "properties": { 666 "properties": {
692 "mentions": { 667 "mentions": {
693 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.", 668 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
694 "items": { 669 "items": {
695 "$ref": "EntityMention" 670 "$ref": "EntityMention"
696 }, 671 },
697 "type": "array" 672 "type": "array"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 "type": "object" 707 "type": "object"
733 }, 708 },
734 "salience": { 709 "salience": {
735 "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.", 710 "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.",
736 "format": "float", 711 "format": "float",
737 "type": "number" 712 "type": "number"
738 } 713 }
739 }, 714 },
740 "type": "object" 715 "type": "object"
741 }, 716 },
717 "AnalyzeSyntaxResponse": {
718 "description": "The syntax analysis response message.",
719 "id": "AnalyzeSyntaxResponse",
720 "properties": {
721 "language": {
722 "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.",
723 "type": "string"
724 },
725 "sentences": {
726 "description": "Sentences in the input document.",
727 "items": {
728 "$ref": "Sentence"
729 },
730 "type": "array"
731 },
732 "tokens": {
733 "description": "Tokens, along with their syntactic informati on, in the input document.",
734 "items": {
735 "$ref": "Token"
736 },
737 "type": "array"
738 }
739 },
740 "type": "object"
741 },
742 "AnnotateTextRequest": { 742 "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.", 743 "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", 744 "id": "AnnotateTextRequest",
745 "properties": { 745 "properties": {
746 "encodingType": { 746 "encodingType": {
747 "description": "The encoding type used by the API to calcula te offsets.", 747 "description": "The encoding type used by the API to calcula te offsets.",
748 "enum": [ 748 "enum": [
749 "NONE", 749 "NONE",
750 "UTF8", 750 "UTF8",
751 "UTF16", 751 "UTF16",
(...skipping 11 matching lines...) Expand all
763 "$ref": "Document", 763 "$ref": "Document",
764 "description": "Input document." 764 "description": "Input document."
765 }, 765 },
766 "features": { 766 "features": {
767 "$ref": "Features", 767 "$ref": "Features",
768 "description": "The enabled features." 768 "description": "The enabled features."
769 } 769 }
770 }, 770 },
771 "type": "object" 771 "type": "object"
772 }, 772 },
773 "AnalyzeSentimentRequest": {
774 "description": "The sentiment analysis request message.",
775 "id": "AnalyzeSentimentRequest",
776 "properties": {
777 "encodingType": {
778 "description": "The encoding type used by the API to calcula te sentence offsets.",
779 "enum": [
780 "NONE",
781 "UTF8",
782 "UTF16",
783 "UTF32"
784 ],
785 "enumDescriptions": [
786 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
787 "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.",
788 "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.",
789 "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."
790 ],
791 "type": "string"
792 },
793 "document": {
794 "$ref": "Document",
795 "description": "Input document."
796 }
797 },
798 "type": "object"
799 },
773 "AnnotateTextResponse": { 800 "AnnotateTextResponse": {
774 "description": "The text annotations response message.", 801 "description": "The text annotations response message.",
775 "id": "AnnotateTextResponse", 802 "id": "AnnotateTextResponse",
776 "properties": { 803 "properties": {
777 "language": {
778 "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.",
779 "type": "string"
780 },
781 "sentences": { 804 "sentences": {
782 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.", 805 "description": "Sentences in the input document. Populated i f the user enables\nAnnotateTextRequest.Features.extract_syntax.",
783 "items": { 806 "items": {
784 "$ref": "Sentence" 807 "$ref": "Sentence"
785 }, 808 },
786 "type": "array" 809 "type": "array"
787 }, 810 },
788 "tokens": { 811 "tokens": {
789 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.", 812 "description": "Tokens, along with their syntactic informati on, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.F eatures.extract_syntax.",
790 "items": { 813 "items": {
791 "$ref": "Token" 814 "$ref": "Token"
792 }, 815 },
793 "type": "array" 816 "type": "array"
794 }, 817 },
795 "entities": { 818 "entities": {
796 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.", 819 "description": "Entities, along with their semantic informat ion, in the input document.\nPopulated if the user enables\nAnnotateTextRequest. Features.extract_entities.",
797 "items": { 820 "items": {
798 "$ref": "Entity" 821 "$ref": "Entity"
799 }, 822 },
800 "type": "array" 823 "type": "array"
801 }, 824 },
802 "documentSentiment": { 825 "documentSentiment": {
803 "$ref": "Sentiment", 826 "$ref": "Sentiment",
804 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt." 827 "description": "The overall sentiment for the document. Popu lated if the user enables\nAnnotateTextRequest.Features.extract_document_sentime nt."
828 },
829 "language": {
830 "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.",
831 "type": "string"
805 } 832 }
806 }, 833 },
807 "type": "object" 834 "type": "object"
808 },
809 "AnalyzeSentimentRequest": {
810 "description": "The sentiment analysis request message.",
811 "id": "AnalyzeSentimentRequest",
812 "properties": {
813 "encodingType": {
814 "description": "The encoding type used by the API to calcula te sentence offsets.",
815 "enum": [
816 "NONE",
817 "UTF8",
818 "UTF16",
819 "UTF32"
820 ],
821 "enumDescriptions": [
822 "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
823 "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.",
824 "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.",
825 "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."
826 ],
827 "type": "string"
828 },
829 "document": {
830 "$ref": "Document",
831 "description": "Input document."
832 }
833 },
834 "type": "object"
835 }, 835 },
836 "DependencyEdge": { 836 "DependencyEdge": {
837 "description": "Represents dependency parse tree information for a t oken. (For more\ninformation on dependency labels, see\nhttp://www.aclweb.org/an thology/P13-2017", 837 "description": "Represents dependency parse tree information for a t oken. (For more\ninformation on dependency labels, see\nhttp://www.aclweb.org/an thology/P13-2017",
838 "id": "DependencyEdge", 838 "id": "DependencyEdge",
839 "properties": { 839 "properties": {
840 "headTokenIndex": { 840 "headTokenIndex": {
841 "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.", 841 "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.",
842 "format": "int32", 842 "format": "int32",
843 "type": "integer" 843 "type": "integer"
844 }, 844 },
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 "Nominalized clausal passive", 1000 "Nominalized clausal passive",
1001 "Compound of numeric modifier", 1001 "Compound of numeric modifier",
1002 "Copula", 1002 "Copula",
1003 "Dislocated relation (for fronted/topicalized elements)" 1003 "Dislocated relation (for fronted/topicalized elements)"
1004 ], 1004 ],
1005 "type": "string" 1005 "type": "string"
1006 } 1006 }
1007 }, 1007 },
1008 "type": "object" 1008 "type": "object"
1009 }, 1009 },
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 },
1010 "Token": { 1026 "Token": {
1011 "description": "Represents the smallest syntactic building block of the text.", 1027 "description": "Represents the smallest syntactic building block of the text.",
1012 "id": "Token", 1028 "id": "Token",
1013 "properties": { 1029 "properties": {
1014 "partOfSpeech": {
1015 "$ref": "PartOfSpeech",
1016 "description": "Parts of speech tag for this token."
1017 },
1018 "text": { 1030 "text": {
1019 "$ref": "TextSpan", 1031 "$ref": "TextSpan",
1020 "description": "The token text." 1032 "description": "The token text."
1021 }, 1033 },
1022 "dependencyEdge": { 1034 "dependencyEdge": {
1023 "$ref": "DependencyEdge", 1035 "$ref": "DependencyEdge",
1024 "description": "Dependency tree parse for this token." 1036 "description": "Dependency tree parse for this token."
1025 }, 1037 },
1026 "lemma": { 1038 "lemma": {
1027 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.", 1039 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.",
1028 "type": "string" 1040 "type": "string"
1041 },
1042 "partOfSpeech": {
1043 "$ref": "PartOfSpeech",
1044 "description": "Parts of speech tag for this token."
1029 } 1045 }
1030 }, 1046 },
1031 "type": "object" 1047 "type": "object"
1032 },
1033 "TextSpan": {
1034 "description": "Represents an output piece of text.",
1035 "id": "TextSpan",
1036 "properties": {
1037 "beginOffset": {
1038 "description": "The API calculates the beginning offset of t he content in the original\ndocument according to the EncodingType specified in the API request.",
1039 "format": "int32",
1040 "type": "integer"
1041 },
1042 "content": {
1043 "description": "The content of the output text.",
1044 "type": "string"
1045 }
1046 },
1047 "type": "object"
1048 }, 1048 },
1049 "Status": { 1049 "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` that can be used for common error conditions.\n\n# Lang uage 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` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\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\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience 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 m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.", 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` that can be used for common error conditions.\n\n# Lang uage 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` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\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\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience 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 m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
1051 "id": "Status", 1051 "id": "Status",
1052 "properties": { 1052 "properties": {
1053 "message": {
1054 "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.",
1055 "type": "string"
1056 },
1057 "details": { 1053 "details": {
1058 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 1054 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
1059 "items": { 1055 "items": {
1060 "additionalProperties": { 1056 "additionalProperties": {
1061 "description": "Properties of the object. Contains f ield @type with type URL.", 1057 "description": "Properties of the object. Contains f ield @type with type URL.",
1062 "type": "any" 1058 "type": "any"
1063 }, 1059 },
1064 "type": "object" 1060 "type": "object"
1065 }, 1061 },
1066 "type": "array" 1062 "type": "array"
1067 }, 1063 },
1068 "code": { 1064 "code": {
1069 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 1065 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
1070 "format": "int32", 1066 "format": "int32",
1071 "type": "integer" 1067 "type": "integer"
1068 },
1069 "message": {
1070 "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.",
1071 "type": "string"
1072 } 1072 }
1073 }, 1073 },
1074 "type": "object" 1074 "type": "object"
1075 } 1075 }
1076 }, 1076 },
1077 "servicePath": "", 1077 "servicePath": "",
1078 "title": "Google Cloud Natural Language API", 1078 "title": "Google Cloud Natural Language API",
1079 "version": "v1" 1079 "version": "v1"
1080 } 1080 }
OLDNEW
« no previous file with comments | « discovery/googleapis/kgsearch__v1.json ('k') | discovery/googleapis/logging__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698